Updated all dependencies
This commit is contained in:
parent
84d3f69215
commit
c5a6e2220c
15 changed files with 99 additions and 27 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue