Skip to content

Commit 6e708a8

Browse files
committed
JOGL Dependencies fix
The -main variants of JOGL trigger the natives to be included into the dependencies. Appended to the copyCore task to also include the dependency jars
1 parent f51c549 commit 6e708a8

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ dependencies {
9393

9494
tasks.register<Copy>("copyCore"){
9595
dependsOn(project(":core").tasks.jar)
96-
from("../core/build/libs/")
97-
include("*.jar")
96+
from(project(":core").layout.buildDirectory.dir("libs"))
97+
from(project(":core").configurations.runtimeClasspath)
9898
into(layout.buildDirectory.dir("resources-bundled/common/core/library"))
9999
}
100100
tasks.register<Download>("downloadJDK") {

core/build.gradle.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ sourceSets{
2525
}
2626

2727
dependencies {
28-
// TODO: Research on which jogl dependencies to include
29-
implementation("org.jogamp.gluegen:gluegen-rt:2.5.0")
30-
implementation("org.jogamp.jogl:jogl-all:2.5.0")
28+
implementation("org.jogamp.gluegen:gluegen-rt-main:2.5.0")
29+
implementation("org.jogamp.jogl:jogl-all-main:2.5.0")
3130

3231
testImplementation("junit:junit:4.13.2")
3332
}

0 commit comments

Comments
 (0)