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
54 lines
1.2 KiB
Kotlin
54 lines
1.2 KiB
Kotlin
plugins {
|
|
id("application")
|
|
id("com.github.ben-manes.versions") version "0.51.0"
|
|
kotlin("jvm") version "2.0.20"
|
|
kotlin("kapt") version "1.9.24"
|
|
}
|
|
|
|
defaultTasks(ApplicationPlugin.TASK_RUN_NAME)
|
|
|
|
val semverProcessor = "net.thauvin.erik:semver:1.2.2-SNAPSHOT"
|
|
|
|
dependencies {
|
|
kapt(semverProcessor)
|
|
implementation(semverProcessor)
|
|
|
|
implementation(kotlin("stdlib"))
|
|
}
|
|
|
|
kapt {
|
|
arguments {
|
|
arg("semver.project.dir", projectDir.absolutePath)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") }
|
|
}
|
|
|
|
application {
|
|
mainClass.set("com.example.App")
|
|
}
|
|
|
|
tasks {
|
|
register("runJava", JavaExec::class) {
|
|
group = "application"
|
|
mainClass.set("com.example.JavaApp")
|
|
classpath = sourceSets.main.get().runtimeClasspath
|
|
|
|
}
|
|
|
|
register("runJavaExample", JavaExec::class) {
|
|
group = "application"
|
|
mainClass.set("com.example.JavaExample")
|
|
classpath = sourceSets.main.get().runtimeClasspath
|
|
}
|
|
|
|
register("runExample", JavaExec::class) {
|
|
group = "application"
|
|
mainClass.set("com.example.Example")
|
|
classpath = sourceSets.main.get().runtimeClasspath
|
|
}
|
|
}
|