File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,15 +131,14 @@ project(":android") {
131131}
132132
133133project(" :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}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ task run(dependsOn: classes, type: JavaExec) {
1717task 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 {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ task run(dependsOn: classes, type: JavaExec) {
1717task 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 {
You can’t perform that action at this time.
0 commit comments