Updated all dependencies

This commit is contained in:
Erik C. Thauvin 2023-09-29 15:31:33 -07:00
parent 84d3f69215
commit c5a6e2220c
15 changed files with 99 additions and 27 deletions

View file

@ -1,7 +1,7 @@
plugins {
id 'java'
id 'application'
id 'com.github.ben-manes.versions' version '0.47.0'
id 'com.github.ben-manes.versions' version '0.48.0'
}
// ./gradlew run
@ -11,11 +11,6 @@ defaultTasks 'run'
final def semverProcessor = 'net.thauvin.erik:semver:1.2.1-SNAPSHOT'
sourceCompatibility = 17
targetCompatibility = 17
mainClassName = 'com.example.App'
repositories {
mavenLocal()
mavenCentral()
@ -27,12 +22,21 @@ dependencies {
implementation semverProcessor
}
tasks.withType(JavaCompile) {
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
application {
mainClassName = 'com.example.App'
}
tasks.withType(JavaCompile).configureEach {
options.generatedSourceOutputDirectory.set(file("${projectDir}/src/generated/java"))
options.compilerArgs += ["-Asemver.project.dir=$projectDir"]
}
task runExample(type: JavaExec) {
tasks.register("runExample", JavaExec) {
group = 'application'
classpath = sourceSets.main.runtimeClasspath
mainClass.set('com.example.Example')