Skip to content

Commit a344bcb

Browse files
committed
Fix build after updating from "compile" to "implementation"
See libgdx/libgdx#5491 (comment)
1 parent ec7757b commit a344bcb

3 files changed

Lines changed: 9 additions & 10 deletions

File tree

build.gradle

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,14 @@ project(":android") {
131131
}
132132

133133
project(":core") {
134-
apply plugin: "java"
135-
134+
apply plugin: "java-library"
136135

137136
dependencies {
138-
implementation "com.badlogicgames.gdx:gdx:$gdxVersion"
139-
implementation "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
140-
implementation "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
141-
implementation "com.badlogicgames.gdx:gdx-controllers:$gdxVersion"
142-
implementation "junit:junit:4.12"
143-
implementation 'com.google.code.gson:gson:2.8.5'
137+
api "com.badlogicgames.gdx:gdx:$gdxVersion"
138+
api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
139+
api "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
140+
api "com.badlogicgames.gdx:gdx-controllers:$gdxVersion"
141+
api "junit:junit:4.12"
142+
api 'com.google.code.gson:gson:2.8.5'
144143
}
145144
}

desktop/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ task run(dependsOn: classes, type: JavaExec) {
1717
task dist(type: Jar) {
1818
from files(sourceSets.main.output.classesDirs)
1919
from files(sourceSets.main.output.resourcesDir)
20-
from {configurations.compile.collect {zipTree(it)}}
20+
from {configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }}
2121
from files(project.assetsDir)
2222

2323
manifest {

tools/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ task run(dependsOn: classes, type: JavaExec) {
1717
task dist(type: Jar) {
1818
from files(sourceSets.main.output.classesDirs)
1919
from files(sourceSets.main.output.resourcesDir)
20-
from {configurations.compile.collect {zipTree(it)}}
20+
from {configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }}
2121
from files(project.assetsDir)
2222

2323
manifest {

0 commit comments

Comments
 (0)