Skip to content

Commit

Permalink
Gradle 4 / Android plugin 3 transitive dependencies, fix #433
Browse files Browse the repository at this point in the history
  • Loading branch information
devemux86 committed Jan 2, 2018
1 parent 791f054 commit a67b2f2
Show file tree
Hide file tree
Showing 22 changed files with 33 additions and 71 deletions.
1 change: 1 addition & 0 deletions docs/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## New since 0.9.1

- Gradle fix transitive dependencies [#433](https://github.com/mapsforge/vtm/issues/433)
- libGDX 1.9.8 [#464](https://github.com/mapsforge/vtm/issues/464)
- Many other minor improvements and bug fixes
- [Solved issues](https://github.com/mapsforge/vtm/issues?q=is%3Aclosed+milestone%3A0.10.0)
Expand Down
2 changes: 1 addition & 1 deletion jni/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'java-library'

dependencies {
implementation "com.badlogicgames.gdx:gdx-jnigen:$gdxVersion"
api "com.badlogicgames.gdx:gdx-jnigen:$gdxVersion"
}

sourceSets {
Expand Down
6 changes: 0 additions & 6 deletions vtm-android-example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ dependencies {
implementation project(':vtm-json')
implementation project(':vtm-jts')
implementation project(':vtm-themes')
implementation('org.jeo:jeo:0-SNAPSHOT') {
exclude group: 'org.slf4j', module: 'slf4j-jdk14'
}
implementation('org.jeo:jeo-render:0-SNAPSHOT') {
exclude group: 'org.slf4j', module: 'slf4j-jdk14'
}
implementation "org.slf4j:slf4j-android:$slf4jVersion"

implementation project(':vtm-android-gdx')
Expand Down
3 changes: 1 addition & 2 deletions vtm-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ apply plugin: 'com.github.dcendents.android-maven'

dependencies {
api project(':vtm')
implementation 'com.caverock:androidsvg:1.2.2-beta-1'
implementation "org.slf4j:slf4j-api:$slf4jVersion"
api 'com.caverock:androidsvg:1.2.2-beta-1'
}

android {
Expand Down
2 changes: 1 addition & 1 deletion vtm-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apply plugin: 'com.android.application'

dependencies {
implementation project(':vtm-android')
implementation project(':vtm-themes')
implementation project(':vtm-extras')
implementation project(':vtm-themes')
implementation 'com.squareup.okhttp3:okhttp:3.8.0'
implementation "org.slf4j:slf4j-android:$slf4jVersion"
}
Expand Down
9 changes: 2 additions & 7 deletions vtm-desktop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@ apply plugin: 'maven'

dependencies {
api project(':vtm-gdx')
file('natives').eachDir() { dir ->
api files(dir.path)
}
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
implementation 'com.metsci.ext.com.kitfox.svg:svg-salamander:0.1.19'
implementation "org.slf4j:slf4j-api:$slf4jVersion"
api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
api 'com.metsci.ext.com.kitfox.svg:svg-salamander:0.1.19'
}

sourceSets {
Expand Down
9 changes: 4 additions & 5 deletions vtm-extras/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ apply plugin: 'maven'

dependencies {
api project(':vtm')
implementation 'com.fasterxml.jackson.core:jackson-core:2.8.4'
implementation 'com.google.protobuf:protobuf-java:2.6.1'
implementation 'com.vividsolutions:jts:1.13'
implementation 'org.openstreetmap.osmosis:osmosis-osm-binary:0.45'
implementation "org.slf4j:slf4j-api:$slf4jVersion"
api 'com.fasterxml.jackson.core:jackson-core:2.8.4'
api 'com.google.protobuf:protobuf-java:2.6.1'
api 'com.vividsolutions:jts:1.13'
api 'org.openstreetmap.osmosis:osmosis-osm-binary:0.45'
}

sourceSets {
Expand Down
3 changes: 1 addition & 2 deletions vtm-gdx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ apply plugin: 'maven'
dependencies {
api project(':vtm')
api project(':vtm-themes')
implementation "com.badlogicgames.gdx:gdx:$gdxVersion"
implementation "org.slf4j:slf4j-api:$slf4jVersion"
api "com.badlogicgames.gdx:gdx:$gdxVersion"
}

sourceSets {
Expand Down
3 changes: 1 addition & 2 deletions vtm-http/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ apply plugin: 'maven'

dependencies {
api project(':vtm')
implementation 'com.squareup.okhttp3:okhttp:3.8.0'
implementation "org.slf4j:slf4j-api:$slf4jVersion"
api 'com.squareup.okhttp3:okhttp:3.8.0'
}

sourceSets {
Expand Down
9 changes: 1 addition & 8 deletions vtm-ios-example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,8 @@ launchIOSDevice.dependsOn build
createIPA.dependsOn build

dependencies {
implementation project(':vtm')
implementation project(':vtm-gdx')
implementation project(':vtm-jts')
implementation project(':vtm-ios')
implementation project(':vtm-themes')
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
implementation "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
implementation "com.mobidevelop.robovm:robovm-rt:$roboVMVersion"
implementation "com.mobidevelop.robovm:robovm-cocoatouch:$roboVMVersion"
implementation project(':vtm-jts')
implementation "org.slf4j:slf4j-simple:$slf4jVersion"
}

Expand Down
9 changes: 4 additions & 5 deletions vtm-ios/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ createIPA.dependsOn build

dependencies {
api project(':vtm-gdx')
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
implementation "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
implementation "com.mobidevelop.robovm:robovm-rt:$roboVMVersion"
implementation "com.mobidevelop.robovm:robovm-cocoatouch:$roboVMVersion"
implementation "org.slf4j:slf4j-api:$slf4jVersion"
api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
api "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
api "com.mobidevelop.robovm:robovm-cocoatouch:$roboVMVersion"
api "com.mobidevelop.robovm:robovm-rt:$roboVMVersion"
}

task copyVtmResources(type: Copy) {
Expand Down
4 changes: 2 additions & 2 deletions vtm-jeo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ apply plugin: 'maven'

dependencies {
api project(':vtm')
implementation('org.jeo:jeo:0-SNAPSHOT') {
api('org.jeo:jeo:0-SNAPSHOT') {
exclude group: 'org.slf4j', module: 'slf4j-jdk14'
}
implementation('org.jeo:jeo-carto:0-SNAPSHOT') {
api('org.jeo:jeo-carto:0-SNAPSHOT') {
exclude group: 'org.slf4j', module: 'slf4j-jdk14'
}
}
Expand Down
2 changes: 1 addition & 1 deletion vtm-json/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'maven'

dependencies {
api project(':vtm')
implementation 'com.fasterxml.jackson.core:jackson-core:2.8.4'
api 'com.fasterxml.jackson.core:jackson-core:2.8.4'
}

sourceSets {
Expand Down
3 changes: 1 addition & 2 deletions vtm-jts/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ apply plugin: 'maven'

dependencies {
api project(':vtm')
implementation 'com.vividsolutions:jts:1.13'
implementation "org.slf4j:slf4j-api:$slf4jVersion"
api 'com.vividsolutions:jts:1.13'
}

sourceSets {
Expand Down
10 changes: 4 additions & 6 deletions vtm-playground/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ apply plugin: 'application'

dependencies {
implementation project(':vtm-desktop')
implementation project(':vtm-extras')
file("${rootDir}/vtm-desktop/natives").eachDir() { dir ->
implementation files(dir.path)
}
implementation project(':vtm-http')
implementation project(':vtm-jeo')
implementation project(':vtm-json')
implementation project(':vtm-jts')
implementation "com.badlogicgames.gdx:gdx:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
implementation 'com.squareup.okhttp3:okhttp:3.8.0'
implementation 'org.jeo:jeo:0-SNAPSHOT'
implementation 'org.jeo:jeo-render:0-SNAPSHOT'
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
implementation "org.slf4j:slf4j-jdk14:$slf4jVersion"
}

Expand Down
2 changes: 0 additions & 2 deletions vtm-playground/src/simplelogger.properties

This file was deleted.

1 change: 0 additions & 1 deletion vtm-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apply plugin: 'java'

dependencies {
implementation project(':vtm-http')
implementation 'com.squareup.okhttp3:okhttp:3.8.0'
testImplementation 'com.squareup.okhttp3:mockwebserver:3.8.0'
testImplementation 'junit:junit:4.12'
testImplementation 'org.easytesting:fest-assert-core:2.0M10'
Expand Down
6 changes: 4 additions & 2 deletions vtm-theme-comparator/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ repositories {

dependencies {
implementation project(':vtm-desktop')
file("${rootDir}/vtm-desktop/natives").eachDir() { dir ->
implementation files(dir.path)
}
implementation 'ch.qos.logback:logback-classic:1.2.3'
implementation "com.badlogicgames.gdx:gdx:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
implementation 'com.fifesoft:rsyntaxtextarea:2.6.1'
implementation 'com.jtattoo:JTattoo:1.6.11'

Expand Down
4 changes: 0 additions & 4 deletions vtm-web-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ sourceSets {

dependencies {
providedCompile project(':vtm-web')
providedCompile "com.badlogicgames.gdx:gdx:$gdxVersion:sources"
providedCompile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources"
providedCompile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion"
providedCompile "org.slf4j:slf4j-api:$slf4jVersion"
providedCompile 'ru.finam:slf4j-gwt:1.7.7.1'
}

Expand Down
5 changes: 0 additions & 5 deletions vtm-web-js/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ sourceSets {

dependencies {
providedCompile project(':vtm-web')
providedCompile project(':vtm-extras')
providedCompile "com.badlogicgames.gdx:gdx:$gdxVersion:sources"
providedCompile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources"
providedCompile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion"
providedCompile "org.slf4j:slf4j-api:$slf4jVersion"
providedCompile 'org.timepedia.exporter:gwtexporter:2.5.1'
providedCompile 'ru.finam:slf4j-gwt:1.7.7.1'
}
Expand Down
9 changes: 3 additions & 6 deletions vtm-web/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ sourceSets {

dependencies {
api project(':vtm-gdx')
api project(':vtm-extras')
implementation "com.badlogicgames.gdx:gdx:$gdxVersion:sources"
implementation "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources"
implementation "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion"
implementation "org.slf4j:slf4j-api:$slf4jVersion"
implementation 'ru.finam:slf4j-gwt:1.7.7.1'
api "com.badlogicgames.gdx:gdx:$gdxVersion:sources"
api "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion"
api "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources"
}

// explicit dependencies for org.gradle.configureondemand=true
Expand Down
2 changes: 1 addition & 1 deletion vtm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'java-library'
apply plugin: 'maven'

dependencies {
implementation "org.slf4j:slf4j-api:$slf4jVersion"
api "org.slf4j:slf4j-api:$slf4jVersion"
compileOnly 'com.google.code.findbugs:jsr305:3.0.1'
}

Expand Down

0 comments on commit a67b2f2

Please sign in to comment.