fix: revert removal of Jabel (for support of Java 11)
This commit is contained in:
parent
7ec0917e95
commit
a76c20e868
22
build.gradle
22
build.gradle
@ -19,6 +19,8 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
annotationProcessor 'com.github.bsideup.jabel:jabel-javac-plugin:0.4.2'
|
||||||
|
compileOnly 'com.github.bsideup.jabel:jabel-javac-plugin:0.4.2'
|
||||||
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
|
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
|
||||||
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
||||||
}
|
}
|
||||||
@ -32,15 +34,19 @@ java {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configure([tasks.compileJava]) {
|
||||||
|
options.release = 11
|
||||||
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes(
|
attributes(
|
||||||
'Main-Class': project.main_class,
|
'Main-Class': project.main_class,
|
||||||
'Build-Timestamp': new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()),
|
'Build-Timestamp': new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()),
|
||||||
'Build-Branch': versioning.info.branch,
|
'Build-Branch': versioning.info.branch,
|
||||||
'Build-Revision': versioning.info.commit,
|
'Build-Revision': versioning.info.commit,
|
||||||
'Build-Jdk': "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
|
'Build-Jdk': "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
|
||||||
'Build-Author': 'TopchetoEU'
|
'Build-Author': 'TopchetoEU'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -69,8 +75,8 @@ distTar {
|
|||||||
processResources {
|
processResources {
|
||||||
filesMatching "metadata.json", {
|
filesMatching "metadata.json", {
|
||||||
expand(
|
expand(
|
||||||
version: project.project_version,
|
version: project.project_version,
|
||||||
name: project.project_name
|
name: project.project_name
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user