Bumped JUnit to version 5.11.1 Bumped Kapt to version 1.9.24 Bumped PMD extension to version 1.1.6 Bumped Gradle to version 8.10.2
40 lines
943 B
Groovy
40 lines
943 B
Groovy
plugins {
|
|
id 'java'
|
|
id 'application'
|
|
id 'com.github.ben-manes.versions' version '0.51.0'
|
|
}
|
|
|
|
defaultTasks 'run'
|
|
|
|
final def semverProcessor = 'net.thauvin.erik:semver:1.2.2-SNAPSHOT'
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") }
|
|
}
|
|
|
|
dependencies {
|
|
annotationProcessor semverProcessor
|
|
implementation semverProcessor
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
application {
|
|
mainClass = 'com.example.App'
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.generatedSourceOutputDirectory.set(file("${projectDir}/src/generated/java"))
|
|
options.compilerArgs += ["-Asemver.project.dir=$projectDir"]
|
|
}
|
|
|
|
tasks.register("runExample", JavaExec) {
|
|
group = 'application'
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
mainClass.set('com.example.Example')
|
|
}
|