resolve #75 resolve #127 Removed shadowing for `imgui-java-app.jar` which is published to Maven Central. Shadow Jar now has a prefix `-all` - for those one who prefer to use raw jars instead dependencies in maven/gradle.
47 lines
1.3 KiB
Groovy
47 lines
1.3 KiB
Groovy
import java.text.SimpleDateFormat
|
|
|
|
ext {
|
|
lwjglVersion = '3.3.1'
|
|
}
|
|
|
|
allprojects {
|
|
group 'imgui-java'
|
|
version 'git describe --tags --always'.execute().text.trim().substring(1)
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
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('buildAll') { t ->
|
|
t.group = 'build'
|
|
t.description = 'Build all project sources.'
|
|
|
|
t.dependsOn ':imgui-app:shadowJar'
|
|
|
|
['app', 'binding', 'lwjgl3'].each { module ->
|
|
['build', 'sourcesJar', 'javadocJar'].each { task ->
|
|
t.dependsOn ":imgui-$module:$task"
|
|
}
|
|
}
|
|
}
|