chore(build): update to Gradle 8.12 and set CI to use JDK 17 (#308)

Upgraded the build system to Gradle 8.12 and updated the CI pipeline to use JDK 17 for improved compatibility and performance.
This commit is contained in:
SpaiR authored and GitHub committed 2024-12-27 15:00:01 +02:00
1 parent 9a77b8d4a2
commit 7190b51a72
6 files changed
+22 -18

No files matched your search

+7 -4
View File
@@ -7,8 +7,8 @@ ext {
}
allprojects {
group 'imgui-java'
version 'git describe --tags --always'.execute().text.trim().substring(1)
group = 'imgui-java'
version = 'git describe --tags --always'.execute().text.trim().substring(1)
repositories {
mavenCentral()
@@ -21,16 +21,19 @@ allprojects {
into 'META-INF'
}
def jdkMetadata = tasks.withType(JavaCompile).find().javaCompiler.get().metadata
def buildJdk = "${jdkMetadata.javaRuntimeVersion} (${jdkMetadata.vendor})".toString()
manifest {
attributes (
'Implementation-Title': project.name,
'Implementation-Version': project.version,
'Build-Timestamp': new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(System.currentTimeMillis()),
'Build-Revision': 'git rev-parse HEAD'.execute().text.trim(),
'Build-Jdk': "${System.getProperty('java.version')} (${System.getProperty('java.vendor')})",
'Build-Jdk': buildJdk,
'Source-Compatibility': tasks.withType(JavaCompile).find().sourceCompatibility,
'Target-Compatibility': tasks.withType(JavaCompile).find().targetCompatibility,
'Created-By': "Gradle ${gradle.gradleVersion}"
'Created-By': "Gradle ${gradle.gradleVersion} "
)
}
}