[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.
This commit is contained in:
SpaiR committed 2022-12-14 12:01:50 +02:00
1 parent fea86b1de5
commit 8a560ca439
6 files changed
+27 -13

No files matched your search

-7
View File
@@ -12,13 +12,6 @@ allprojects {
mavenCentral() mavenCentral()
} }
tasks.withType(JavaCompile).tap {
configureEach {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
tasks.withType(Jar).tap { tasks.withType(Jar).tap {
configureEach { configureEach {
from(project.rootDir) { from(project.rootDir) {
+4 -2
View File
@@ -2,8 +2,10 @@ plugins {
id 'application' id 'application'
} }
repositories { java {
mavenCentral() toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
} }
application { application {
+5 -4
View File
@@ -1,13 +1,15 @@
plugins { plugins {
id 'java-library' id 'java-library'
id 'com.github.johnrengelman.shadow' version '7.0.0' id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'checkstyle' id 'checkstyle'
id 'maven-publish' id 'maven-publish'
id 'signing' id 'signing'
} }
repositories { java {
mavenCentral() toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
} }
dependencies { dependencies {
@@ -44,7 +46,6 @@ jar {
shadowJar { shadowJar {
with jar with jar
archiveClassifier.set(null)
} }
apply from: "$rootDir/publish.gradle" apply from: "$rootDir/publish.gradle"
+6
View File
@@ -4,6 +4,12 @@ plugins {
id 'signing' id 'signing'
} }
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
def packageName = 'imgui-java-natives-linux' def packageName = 'imgui-java-natives-linux'
def packageDesc = 'Native binaries for imgui-java binding for Linux' def packageDesc = 'Native binaries for imgui-java binding for Linux'
def moduleName = 'imgui.natives.linux' def moduleName = 'imgui.natives.linux'
+6
View File
@@ -7,6 +7,12 @@ plugins {
id 'signing' id 'signing'
} }
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
dependencies { dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.2' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.5.2' testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.5.2'
+6
View File
@@ -5,6 +5,12 @@ plugins {
id 'signing' id 'signing'
} }
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
dependencies { dependencies {
implementation platform("org.lwjgl:lwjgl-bom:$lwjglVersion") implementation platform("org.lwjgl:lwjgl-bom:$lwjglVersion")