Skip to content

Commit

Permalink
Convert gradle plugin build file to Kotlin DSL
Browse files Browse the repository at this point in the history
  • Loading branch information
jshiell committed Aug 8, 2024
1 parent 5674a7b commit aacce0d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 46 deletions.
46 changes: 0 additions & 46 deletions buildSrc/build.gradle

This file was deleted.

34 changes: 34 additions & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
plugins {
id("java-gradle-plugin")
}

repositories {
mavenCentral()
}

dependencies {
implementation("commons-io:commons-io:2.11.0")
testImplementation("junit:junit:4.12")
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.addAll(listOf("-Xlint:unchecked", "-Xlint:deprecation"))
}

gradlePlugin {
plugins {
create("simplePlugin") {
id = "org.infernus.idea.checkstyle.build"
implementationClass = "org.infernus.idea.checkstyle.build.GradlePluginMain"
}
}
}

0 comments on commit aacce0d

Please sign in to comment.