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')
|
||||
|
|
|
@ -9,7 +9,7 @@ import java.util.Date;
|
|||
|
||||
public final class ExampleVersion {
|
||||
public static final String PROJECT = "Java Example";
|
||||
public static final Date BUILDDATE = new Date(1692564205424L);
|
||||
public static final Date BUILDDATE = new Date(1696019617021L);
|
||||
public static final String VERSION = "8.4.97-alpha+T800";
|
||||
|
||||
/**
|
||||
|
|
|
@ -14,7 +14,7 @@ import java.util.Date;
|
|||
*/
|
||||
public final class GeneratedVersion {
|
||||
public static final String PROJECT = "Java App";
|
||||
public static final Date BUILDDATE = new Date(1692564205452L);
|
||||
public static final Date BUILDDATE = new Date(1696019617081L);
|
||||
public static final int MAJOR = 11;
|
||||
public static final int MINOR = 11;
|
||||
public static final int PATCH = 20;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue