Skip to content

Commit 8a560ca

Browse files
committed
[API] Fix dependency tree issue for imgui-java-app
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.
1 parent fea86b1 commit 8a560ca

File tree

6 files changed

+27
-13
lines changed

6 files changed

+27
-13
lines changed

build.gradle

-7
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ allprojects {
1212
mavenCentral()
1313
}
1414

15-
tasks.withType(JavaCompile).tap {
16-
configureEach {
17-
sourceCompatibility = JavaVersion.VERSION_1_8
18-
targetCompatibility = JavaVersion.VERSION_1_8
19-
}
20-
}
21-
2215
tasks.withType(Jar).tap {
2316
configureEach {
2417
from(project.rootDir) {

example/build.gradle

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ plugins {
22
id 'application'
33
}
44

5-
repositories {
6-
mavenCentral()
5+
java {
6+
toolchain {
7+
languageVersion.set(JavaLanguageVersion.of(8))
8+
}
79
}
810

911
application {

imgui-app/build.gradle

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
plugins {
22
id 'java-library'
3-
id 'com.github.johnrengelman.shadow' version '7.0.0'
3+
id 'com.github.johnrengelman.shadow' version '7.1.2'
44
id 'checkstyle'
55
id 'maven-publish'
66
id 'signing'
77
}
88

9-
repositories {
10-
mavenCentral()
9+
java {
10+
toolchain {
11+
languageVersion.set(JavaLanguageVersion.of(8))
12+
}
1113
}
1214

1315
dependencies {
@@ -44,7 +46,6 @@ jar {
4446

4547
shadowJar {
4648
with jar
47-
archiveClassifier.set(null)
4849
}
4950

5051
apply from: "$rootDir/publish.gradle"

imgui-binding-natives/build.gradle

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ plugins {
44
id 'signing'
55
}
66

7+
java {
8+
toolchain {
9+
languageVersion.set(JavaLanguageVersion.of(8))
10+
}
11+
}
12+
713
def packageName = 'imgui-java-natives-linux'
814
def packageDesc = 'Native binaries for imgui-java binding for Linux'
915
def moduleName = 'imgui.natives.linux'

imgui-binding/build.gradle

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ plugins {
77
id 'signing'
88
}
99

10+
java {
11+
toolchain {
12+
languageVersion.set(JavaLanguageVersion.of(8))
13+
}
14+
}
15+
1016
dependencies {
1117
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.2'
1218
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.5.2'

imgui-lwjgl3/build.gradle

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ plugins {
55
id 'signing'
66
}
77

8+
java {
9+
toolchain {
10+
languageVersion.set(JavaLanguageVersion.of(8))
11+
}
12+
}
13+
814
dependencies {
915
implementation platform("org.lwjgl:lwjgl-bom:$lwjglVersion")
1016

0 commit comments

Comments
 (0)