Gradle 4 and Android plugin 3, fix #433

This commit is contained in:
Emux 2017-10-27 11:54:45 +03:00
parent df5bcd583f
commit cbdeb58c2f
27 changed files with 228 additions and 236 deletions

View File

@ -7,8 +7,8 @@ android:
- tools
- platform-tools
- tools
- build-tools-26.0.2
- android-26
- build-tools-27.0.0
- android-27
env:
global:
- GRADLE_OPTS="-Xmx2048m"

View File

@ -1,10 +1,11 @@
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.android.tools.build:gradle:3.0.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
}
}
@ -13,7 +14,7 @@ allprojects {
version = 'master-SNAPSHOT'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
ext.androidBuildVersionTools = "26.0.2"
ext.androidBuildVersionTools = "27.0.0"
ext.gdxVersion = "1.9.6"
ext.gwtVersion = "2.8.0"
ext.slf4jVersion = "1.7.25"
@ -27,22 +28,22 @@ allprojects {
}
}
def androidCompileSdk() { return 26 }
static def androidCompileSdk() { return 27 }
// Minimum API Level by Support Library
def androidMinSdk() { return 14 }
static def androidMinSdk() { return 14 }
def androidTargetSdk() { return 22 }
static def androidTargetSdk() { return 22 }
def versionCode() { return 50 }
static def versionCode() { return 1 }
def versionName() { return version }
subprojects {
repositories {
google()
maven { url 'https://repo.boundlessgeo.com/main' }
jcenter()
maven { url 'https://maven.google.com' }
}
tasks.withType(JavaCompile) {

View File

@ -21,6 +21,7 @@
- PolyLabel default disabled [#402](https://github.com/mapsforge/vtm/issues/402)
- vtm-theme-comparator module [#387](https://github.com/mapsforge/vtm/issues/387)
- Feature parameters [#403](https://github.com/mapsforge/vtm/issues/403)
- Gradle 4 / Android plugin 3 support [#433](https://github.com/mapsforge/vtm/issues/433)
- Internal render themes various improvements [#41](https://github.com/mapsforge/vtm/issues/41)
- Many other minor improvements and bug fixes
- [Solved issues](https://github.com/mapsforge/vtm/issues?q=is%3Aclosed+milestone%3A0.9.0)

View File

@ -8,42 +8,42 @@ Current version is [![Maven Central](https://img.shields.io/maven-central/v/org.
### Core
```groovy
compile 'org.mapsforge:vtm:[CURRENT-VERSION]'
compile 'org.mapsforge:vtm-themes:[CURRENT-VERSION]'
compile 'org.slf4j:slf4j-api:1.7.25'
implementation 'org.mapsforge:vtm:[CURRENT-VERSION]'
implementation 'org.mapsforge:vtm-themes:[CURRENT-VERSION]'
implementation 'org.slf4j:slf4j-api:1.7.25'
```
### Android
```groovy
compile 'org.mapsforge:vtm-android:[CURRENT-VERSION]'
compile 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-arm64-v8a'
compile 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-armeabi'
compile 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-armeabi-v7a'
compile 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-mips'
compile 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-mips64'
compile 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-x86'
compile 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-x86_64'
compile 'com.caverock:androidsvg:1.2.2-beta-1'
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]'
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-arm64-v8a'
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-armeabi'
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-armeabi-v7a'
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-mips'
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-mips64'
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-x86'
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-x86_64'
implementation 'com.caverock:androidsvg:1.2.2-beta-1'
```
### Android (with libGDX)
```groovy
compile 'org.mapsforge:vtm-android:[CURRENT-VERSION]'
compile 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-arm64-v8a'
compile 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-armeabi'
compile 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-armeabi-v7a'
compile 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-x86'
compile 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-x86_64'
compile 'org.mapsforge:vtm-gdx:[CURRENT-VERSION]'
compile 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]'
compile 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-arm64-v8a'
compile 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-armeabi'
compile 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-armeabi-v7a'
compile 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-x86'
compile 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-x86_64'
compile 'com.badlogicgames.gdx:gdx:1.9.6'
compile 'com.badlogicgames.gdx:gdx-backend-android:1.9.6'
compile 'com.caverock:androidsvg:1.2.2-beta-1'
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]'
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-arm64-v8a'
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-armeabi'
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-armeabi-v7a'
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-x86'
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-x86_64'
implementation 'org.mapsforge:vtm-gdx:[CURRENT-VERSION]'
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]'
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-arm64-v8a'
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-armeabi'
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-armeabi-v7a'
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-x86'
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-x86_64'
implementation 'com.badlogicgames.gdx:gdx:1.9.6'
implementation 'com.badlogicgames.gdx:gdx-backend-android:1.9.6'
implementation 'com.caverock:androidsvg:1.2.2-beta-1'
```
### iOS
@ -52,19 +52,19 @@ Detailed iOS instructions can be found [here](ios.md).
### Desktop
```groovy
compile 'org.mapsforge:vtm-gdx:[CURRENT-VERSION]'
compile 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]'
compile 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]:natives-linux'
compile 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]:natives-osx'
compile 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]:natives-windows'
compile 'com.badlogicgames.gdx:gdx:1.9.6'
compile 'com.badlogicgames.gdx:gdx-platform:1.9.6:natives-desktop'
compile 'com.badlogicgames.gdx:gdx-backend-lwjgl:1.9.6'
compile 'org.lwjgl.lwjgl:lwjgl:2.9.3'
compile 'org.lwjgl.lwjgl:lwjgl-platform:2.9.3:natives-linux'
compile 'org.lwjgl.lwjgl:lwjgl-platform:2.9.3:natives-osx'
compile 'org.lwjgl.lwjgl:lwjgl-platform:2.9.3:natives-windows'
compile 'com.metsci.ext.com.kitfox.svg:svg-salamander:0.1.19'
implementation 'org.mapsforge:vtm-gdx:[CURRENT-VERSION]'
implementation 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]'
implementation 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]:natives-linux'
implementation 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]:natives-osx'
implementation 'org.mapsforge:vtm-desktop:[CURRENT-VERSION]:natives-windows'
implementation 'com.badlogicgames.gdx:gdx:1.9.6'
implementation 'com.badlogicgames.gdx:gdx-platform:1.9.6:natives-desktop'
implementation 'com.badlogicgames.gdx:gdx-backend-lwjgl:1.9.6'
implementation 'org.lwjgl.lwjgl:lwjgl:2.9.3'
implementation 'org.lwjgl.lwjgl:lwjgl-platform:2.9.3:natives-linux'
implementation 'org.lwjgl.lwjgl:lwjgl-platform:2.9.3:natives-osx'
implementation 'org.lwjgl.lwjgl:lwjgl-platform:2.9.3:natives-windows'
implementation 'com.metsci.ext.com.kitfox.svg:svg-salamander:0.1.19'
```
## Snapshots
@ -80,7 +80,7 @@ repositories {
And declare the dependencies like:
```groovy
compile 'org.mapsforge:vtm:master-SNAPSHOT'
implementation 'org.mapsforge:vtm:master-SNAPSHOT'
...
```

View File

@ -1,6 +1,6 @@
#Fri Mar 03 12:50:23 EET 2017
#Thu Oct 26 11:57:58 EEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

View File

@ -1,7 +1,7 @@
apply plugin: 'java'
apply plugin: 'java-library'
dependencies {
compile "com.badlogicgames.gdx:gdx-jnigen:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-jnigen:$gdxVersion"
}
sourceSets {

View File

@ -5,24 +5,33 @@ repositories {
}
dependencies {
compile project(':vtm-android')
compile project(':vtm-http')
compile(project(':vtm-jeo')) {
implementation project(':vtm-android')
implementation project(':vtm-http')
implementation(project(':vtm-jeo')) {
exclude group: 'com.vividsolutions', module: 'jts'
}
compile project(':vtm-json')
compile project(':vtm-jts')
compile project(':vtm-themes')
compile 'com.noveogroup.android:android-logger:1.3.6'
compile 'com.android.support:support-v4:26.1.0'
implementation project(':vtm-json')
implementation project(':vtm-jts')
implementation project(':vtm-themes')
implementation 'com.noveogroup.android:android-logger:1.3.6'
implementation 'com.vividsolutions:jts-core:1.14.0'
implementation('org.jeo:jeo:0-SNAPSHOT') {
exclude group: 'com.vividsolutions', module: 'jts'
exclude group: 'org.slf4j', module: 'slf4j-jdk14'
}
implementation('org.jeo:jeo-render:0-SNAPSHOT') {
exclude group: 'com.vividsolutions', module: 'jts'
exclude group: 'org.slf4j', module: 'slf4j-jdk14'
}
implementation 'com.android.support:support-v4:27.0.0'
compile 'org.mapsforge:mapsforge-core:master-SNAPSHOT'
compile 'org.mapsforge:mapsforge-poi:master-SNAPSHOT'
compile 'org.mapsforge:mapsforge-poi-android:master-SNAPSHOT'
compile 'org.mapsforge:spatialite-android:master-SNAPSHOT'
compile 'org.mapsforge:spatialite-android:master-SNAPSHOT:natives-armeabi'
compile 'org.mapsforge:spatialite-android:master-SNAPSHOT:natives-armeabi-v7a'
compile 'org.mapsforge:spatialite-android:master-SNAPSHOT:natives-x86'
implementation 'org.mapsforge:mapsforge-core:master-SNAPSHOT'
implementation 'org.mapsforge:mapsforge-poi:master-SNAPSHOT'
implementation 'org.mapsforge:mapsforge-poi-android:master-SNAPSHOT'
implementation 'org.mapsforge:spatialite-android:master-SNAPSHOT'
implementation 'org.mapsforge:spatialite-android:master-SNAPSHOT:natives-armeabi'
implementation 'org.mapsforge:spatialite-android:master-SNAPSHOT:natives-armeabi-v7a'
implementation 'org.mapsforge:spatialite-android:master-SNAPSHOT:natives-x86'
}
android {

View File

@ -2,10 +2,10 @@ apply plugin: 'com.android.application'
apply plugin: 'com.github.dcendents.android-maven'
dependencies {
compile project(':vtm-android')
compile project(':vtm-gdx')
compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
compile 'com.noveogroup.android:android-logger:1.3.6'
api project(':vtm-android')
api project(':vtm-gdx')
implementation "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
runtimeOnly 'com.noveogroup.android:android-logger:1.3.6'
}
android {
@ -47,35 +47,21 @@ android {
android.applicationVariants.all { variant ->
def name = variant.buildType.name
if (name.equals("debug")) {
print "Skipping debug jar"
return; // Skip debug builds.
}
if (name == "debug")
return
def jar = project.tasks.create "jar${name.capitalize()}", Jar
jar.dependsOn variant.javaCompile
jar.from variant.javaCompile.destinationDir
jar.dependsOn variant.javaCompiler
jar.from variant.javaCompiler.destinationDir
jar.exclude 'android-logger.properties'
artifacts.add('archives', jar);
artifacts.add('archives', jar)
file('natives').eachDir() { dir ->
def nativesJar = project.tasks.create "nativesJar${name.capitalize()}-${dir.name}", Jar
nativesJar.classifier = "natives-${dir.name}"
nativesJar.from(dir.path)
artifacts.add('archives', nativesJar);
artifacts.add('archives', nativesJar)
}
def fatJar = project.tasks.create "fatJar${name.capitalize()}", Jar
fatJar.classifier = 'jar-with-dependencies'
fatJar.dependsOn variant.javaCompile
fatJar.from variant.javaCompile.destinationDir
fatJar.from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
file('natives').eachDir() { dir ->
fatJar.from(dir.path)
fatJar.from("${rootProject.projectDir}/vtm-android/natives/${dir.name}")
}
fatJar.exclude 'android-logger.properties'
artifacts.add('archives', fatJar);
}
afterEvaluate {

View File

@ -2,8 +2,9 @@ apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
dependencies {
compile project(':vtm')
compile 'com.caverock:androidsvg:1.2.2-beta-1'
api project(':vtm')
implementation 'com.caverock:androidsvg:1.2.2-beta-1'
implementation "org.slf4j:slf4j-api:$slf4jVersion"
}
android {
@ -39,32 +40,20 @@ android {
android.libraryVariants.all { variant ->
def name = variant.buildType.name
if (name.equals("debug")) {
print "Skipping debug jar"
return; // Skip debug builds.
}
if (name == "debug")
return
def jar = project.tasks.create "jar${name.capitalize()}", Jar
jar.dependsOn variant.javaCompile
jar.from variant.javaCompile.destinationDir
artifacts.add('archives', jar);
jar.dependsOn variant.javaCompiler
jar.from variant.javaCompiler.destinationDir
artifacts.add('archives', jar)
file('natives').eachDir() { dir ->
def nativesJar = project.tasks.create "nativesJar${name.capitalize()}-${dir.name}", Jar
nativesJar.classifier = "natives-${dir.name}"
nativesJar.from(dir.path)
artifacts.add('archives', nativesJar);
artifacts.add('archives', nativesJar)
}
def fatJar = project.tasks.create "fatJar${name.capitalize()}", Jar
fatJar.classifier = 'jar-with-dependencies'
fatJar.dependsOn variant.javaCompile
fatJar.from variant.javaCompile.destinationDir
fatJar.from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
file('natives').eachDir() { dir ->
fatJar.from(dir.path)
}
artifacts.add('archives', fatJar);
}
if (project.hasProperty("SONATYPE_USERNAME")) {

View File

@ -1,11 +1,11 @@
apply plugin: 'com.android.application'
dependencies {
compile project(':vtm-android')
compile project(':vtm-themes')
compile project(':vtm-extras')
compile 'com.noveogroup.android:android-logger:1.3.6'
compile 'com.squareup.okhttp3:okhttp:3.8.0'
implementation project(':vtm-android')
implementation project(':vtm-themes')
implementation project(':vtm-extras')
implementation 'com.noveogroup.android:android-logger:1.3.6'
implementation 'com.squareup.okhttp3:okhttp:3.8.0'
}
android {

View File

@ -1,14 +1,15 @@
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven'
dependencies {
compile project(':vtm-gdx')
api project(':vtm-gdx')
file('natives').eachDir() { dir ->
compile files(dir.path)
api files(dir.path)
}
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
compile 'com.metsci.ext.com.kitfox.svg:svg-salamander:0.1.19'
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"
}
sourceSets {
@ -28,21 +29,6 @@ file('natives').eachDir() { dir ->
}
}
task fatJar(type: Jar, dependsOn: classes) {
classifier = 'jar-with-dependencies'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
// Natives come from compile configuration
/*file('natives').eachDir() { dir ->
fatJar.from(dir.path)
}*/
exclude 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.SF'
with jar
}
artifacts {
archives fatJar
}
if (project.hasProperty("SONATYPE_USERNAME")) {
afterEvaluate {
project.apply from: "${rootProject.projectDir}/deploy.gradle"

View File

@ -1,12 +1,13 @@
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven'
dependencies {
compile project(':vtm')
compile 'com.fasterxml.jackson.core:jackson-core:2.8.4'
compile 'com.google.protobuf:protobuf-java:2.6.1'
compile 'com.vividsolutions:jts-core:1.14.0'
compile 'org.openstreetmap.osmosis:osmosis-osm-binary:0.45'
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-core:1.14.0'
implementation 'org.openstreetmap.osmosis:osmosis-osm-binary:0.45'
implementation "org.slf4j:slf4j-api:$slf4jVersion"
}
sourceSets {

View File

@ -1,10 +1,11 @@
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven'
dependencies {
compile project(':vtm')
compile project(':vtm-themes')
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
api project(':vtm')
api project(':vtm-themes')
implementation "com.badlogicgames.gdx:gdx:$gdxVersion"
implementation "org.slf4j:slf4j-api:$slf4jVersion"
}
sourceSets {

View File

@ -1,9 +1,10 @@
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven'
dependencies {
compile project(':vtm')
compile 'com.squareup.okhttp3:okhttp:3.8.0'
api project(':vtm')
implementation 'com.squareup.okhttp3:okhttp:3.8.0'
implementation "org.slf4j:slf4j-api:$slf4jVersion"
}
sourceSets {

View File

@ -25,15 +25,15 @@ launchIOSDevice.dependsOn build
createIPA.dependsOn build
dependencies {
compile project(':vtm')
compile project(':vtm-gdx')
compile project(':vtm-jts')
compile project(':vtm-ios')
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
compile "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
compile "com.mobidevelop.robovm:robovm-rt:$roboVMVersion"
compile "com.mobidevelop.robovm:robovm-cocoatouch:$roboVMVersion"
compile "org.slf4j:slf4j-simple:$slf4jVersion"
implementation project(':vtm')
implementation project(':vtm-gdx')
implementation project(':vtm-jts')
implementation project(':vtm-ios')
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-simple:$slf4jVersion"
}
task copyVtmResources(type: Copy) {

View File

@ -8,7 +8,7 @@ buildscript {
}
}
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven'
apply plugin: 'robovm'
@ -26,11 +26,12 @@ launchIOSDevice.dependsOn build
createIPA.dependsOn build
dependencies {
compile project(':vtm-gdx')
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
compile "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
compile "com.mobidevelop.robovm:robovm-rt:$roboVMVersion"
compile "com.mobidevelop.robovm:robovm-cocoatouch:$roboVMVersion"
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"
}
task copyVtmResources(type: Copy) {
@ -57,17 +58,8 @@ task nativesJar(type: Jar) {
from('natives')
}
task fatJar(type: Jar, dependsOn: classes) {
classifier = 'jar-with-dependencies'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
from('natives')
exclude 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.SF'
with jar
}
artifacts {
archives nativesJar
//archives fatJar
}
if (project.hasProperty("SONATYPE_USERNAME")) {

View File

@ -1,12 +1,12 @@
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven'
dependencies {
compile project(':vtm')
compile('org.jeo:jeo:0-SNAPSHOT') {
api project(':vtm')
implementation('org.jeo:jeo:0-SNAPSHOT') {
exclude group: 'org.slf4j', module: 'slf4j-jdk14'
}
compile('org.jeo:jeo-carto:0-SNAPSHOT') {
implementation('org.jeo:jeo-carto:0-SNAPSHOT') {
exclude group: 'org.slf4j', module: 'slf4j-jdk14'
}
}

View File

@ -1,9 +1,9 @@
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven'
dependencies {
compile project(':vtm')
compile 'com.fasterxml.jackson.core:jackson-core:2.8.4'
api project(':vtm')
implementation 'com.fasterxml.jackson.core:jackson-core:2.8.4'
}
sourceSets {

View File

@ -1,9 +1,10 @@
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven'
dependencies {
compile project(':vtm')
compile 'com.vividsolutions:jts-core:1.14.0'
api project(':vtm')
implementation 'com.vividsolutions:jts-core:1.14.0'
implementation "org.slf4j:slf4j-api:$slf4jVersion"
}
sourceSets {

View File

@ -1,13 +1,26 @@
apply plugin: 'java'
apply plugin: 'application'
dependencies {
compile project(':vtm-desktop')
compile project(':vtm-extras')
compile project(':vtm-http')
compile project(':vtm-jeo')
compile project(':vtm-json')
compile project(':vtm-jts')
compile "org.slf4j:slf4j-simple:$slf4jVersion"
implementation project(':vtm-desktop')
implementation project(':vtm-extras')
implementation project(':vtm-http')
implementation(project(':vtm-jeo')) {
exclude group: 'com.vividsolutions', module: 'jts'
}
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') {
exclude group: 'com.vividsolutions', module: 'jts'
exclude group: 'org.slf4j', module: 'slf4j-jdk14'
}
implementation('org.jeo:jeo-render:0-SNAPSHOT') {
exclude group: 'com.vividsolutions', module: 'jts'
exclude group: 'org.slf4j', module: 'slf4j-jdk14'
}
implementation "org.slf4j:slf4j-simple:$slf4jVersion"
}
sourceSets {
@ -16,3 +29,10 @@ sourceSets {
resources.srcDirs = ['resources']
}
}
mainClassName = "org.oscim.test.MapsforgeMultiTest"
run {
if (project.hasProperty("args")) {
args project.getProperty("args").split(",")
}
}

View File

@ -1,13 +1,13 @@
apply plugin: 'java'
dependencies {
compile project(':vtm-http')
compile 'com.squareup.okhttp3:okhttp:3.8.0'
testCompile 'com.squareup.okhttp3:mockwebserver:3.8.0'
testCompile 'junit:junit:4.12'
testCompile 'org.easytesting:fest-assert-core:2.0M10'
testCompile 'org.mockito:mockito-all:1.10.19'
testCompile "org.slf4j:slf4j-simple:$slf4jVersion"
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'
testImplementation 'org.mockito:mockito-all:1.10.19'
testImplementation "org.slf4j:slf4j-simple:$slf4jVersion"
}
sourceSets {

View File

@ -1,21 +1,23 @@
apply plugin: 'java'
apply plugin: 'application'
repositories {
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
compile project(':vtm-desktop')
compile 'ch.qos.logback:logback-classic:1.2.3'
compile 'com.fifesoft:rsyntaxtextarea:2.6.1'
compile 'com.jtattoo:JTattoo:1.6.11'
implementation project(':vtm-desktop')
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.fifesoft:rsyntaxtextarea:2.6.1'
implementation 'com.jtattoo:JTattoo:1.6.11'
compile 'org.mapsforge:mapsforge-core:master-SNAPSHOT'
compile 'org.mapsforge:mapsforge-map:master-SNAPSHOT'
compile("org.mapsforge:mapsforge-map-awt:master-SNAPSHOT")
compile 'org.mapsforge:mapsforge-map-reader:master-SNAPSHOT'
compile 'org.mapsforge:mapsforge-themes:master-SNAPSHOT'
compile 'net.sf.kxml:kxml2:2.3.0'
implementation 'org.mapsforge:mapsforge-core:master-SNAPSHOT'
implementation 'org.mapsforge:mapsforge-map:master-SNAPSHOT'
implementation 'org.mapsforge:mapsforge-map-awt:master-SNAPSHOT'
implementation 'org.mapsforge:mapsforge-map-reader:master-SNAPSHOT'
implementation 'org.mapsforge:mapsforge-themes:master-SNAPSHOT'
implementation 'net.sf.kxml:kxml2:2.3.0'
}
sourceSets {
@ -27,10 +29,12 @@ sourceSets {
task fatJar(type: Jar, dependsOn: classes) {
classifier = 'jar-with-dependencies'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
exclude 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.SF'
manifest {
attributes('Main-Class': 'org.oscim.theme.comparator.Main')
}
with jar
}
mainClassName = "org.oscim.theme.comparator.Main"

View File

@ -1,8 +1,8 @@
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven'
dependencies {
compile project(':vtm')
api project(':vtm')
}
sourceSets {

View File

@ -42,9 +42,9 @@ gwt {
noPrecompile = true
}
compiler {
enableClosureCompiler = false; // activates -XenableClosureCompiler
disableClassMetadata = true; // activates -XdisableClassMetadata
disableCastChecking = true; // activates -XdisableCastChecking
enableClosureCompiler = false // activates -XenableClosureCompiler
disableClassMetadata = true // activates -XdisableClassMetadata
disableCastChecking = true // activates -XdisableCastChecking
}
src += files(sourceSets.main.java.srcDirs)

View File

@ -44,9 +44,9 @@ gwt {
noPrecompile = true
}
compiler {
enableClosureCompiler = false; // activates -XenableClosureCompiler
disableClassMetadata = true; // activates -XdisableClassMetadata
disableCastChecking = true; // activates -XdisableCastChecking
enableClosureCompiler = false // activates -XenableClosureCompiler
disableClassMetadata = true // activates -XdisableClassMetadata
disableCastChecking = true // activates -XdisableCastChecking
}
src += files(sourceSets.main.java.srcDirs)

View File

@ -7,7 +7,7 @@ buildscript {
}
}
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven'
apply plugin: 'gwt-base'
@ -16,13 +16,13 @@ sourceSets {
}
dependencies {
compile project(':vtm-gdx')
compile project(':vtm-extras')
compile "com.badlogicgames.gdx:gdx:$gdxVersion:sources"
compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources"
compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion"
compile "org.slf4j:slf4j-api:$slf4jVersion"
compile 'ru.finam:slf4j-gwt:1.7.7.1'
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'
}
// explicit dependencies for org.gradle.configureondemand=true
@ -39,9 +39,9 @@ gwt {
noPrecompile = true
}
compiler {
enableClosureCompiler = false; // activates -XenableClosureCompiler
disableClassMetadata = true; // activates -XdisableClassMetadata
disableCastChecking = true; // activates -XdisableCastChecking
enableClosureCompiler = false // activates -XenableClosureCompiler
disableClassMetadata = true // activates -XdisableClassMetadata
disableCastChecking = true // activates -XdisableCastChecking
}
src += files(sourceSets.main.java.srcDirs)

View File

@ -1,8 +1,8 @@
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven'
dependencies {
compile "org.slf4j:slf4j-api:$slf4jVersion"
implementation "org.slf4j:slf4j-api:$slf4jVersion"
compileOnly 'com.google.code.findbugs:jsr305:3.0.1'
}