[Build] CI refactor (#149)

* [Build] CI refactor

* [Build] Fix GenerateLibs

* [Build] Up actions/checkout@v3

* [Build] Remove actions/gradle-build-action

* [Build] Uncomment publish/release jobs

* [Build] Delete obsolete jobs

* [Build] Add more info to the jar manifest

* [Build] Make checkout to fetch tags

* [Build] Return job to update binaries

* [Doc] Update README
This commit is contained in:
SpaiR authored and GitHub committed 2022-12-12 21:45:50 +02:00
1 parent 62377c7b1d
commit 2957cb4b88
24 files changed
+290 -352

No files matched your search

+26 -6
View File
@@ -1,4 +1,4 @@
import tool.UpVersion
import java.text.SimpleDateFormat
ext {
lwjglVersion = '3.3.1'
@@ -6,19 +6,39 @@ ext {
allprojects {
group 'imgui-java'
version property('version')
version 'git describe --tags --always'.execute().text.trim().substring(1)
repositories {
mavenCentral()
}
tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_1_8
tasks.withType(JavaCompile).tap {
configureEach {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
tasks.withType(Jar).tap {
configureEach {
from(project.rootDir) {
include 'LICENSE'
}
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')})",
'Created-By': "Gradle ${gradle.gradleVersion}"
)
}
}
}
}
tasks.register('upVersion', UpVersion)
tasks.register('buildAll') { t ->
t.group = 'build'
t.description = 'Build all project sources.'