diff --git a/docs/Changelog.md b/docs/Changelog.md index 04477eca..00923ec4 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -15,6 +15,7 @@ - Render theme area tessellation option [#37](https://github.com/mapsforge/vtm/issues/37) - Graphics API platform enhancements [#92](https://github.com/mapsforge/vtm/issues/92) - vtm-jts module [#53](https://github.com/mapsforge/vtm/issues/53) +- vtm-http module [#140](https://github.com/mapsforge/vtm/issues/140) - Internal render themes various enhancements - Many other minor improvements and bug fixes - [Solved issues](https://github.com/mapsforge/vtm/issues?q=is%3Aissue+is%3Aclosed+milestone%3A0.6.0) diff --git a/settings.gradle b/settings.gradle index 6babee72..f84cbb46 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,5 +1,6 @@ rootProject.name = 'vtm-parent' include ':vtm' +include ':vtm-http' include ':vtm-jts' include ':vtm-tests' include ':vtm-extras' diff --git a/vtm-http/build.gradle b/vtm-http/build.gradle new file mode 100644 index 00000000..e16fd1fd --- /dev/null +++ b/vtm-http/build.gradle @@ -0,0 +1,18 @@ +apply plugin: 'java' +apply plugin: 'maven' + +dependencies { + compile project(':vtm') + compile 'com.squareup.okhttp:okhttp:1.5.2' +} + +sourceSets { + main.java.srcDirs = ['src'] +} + +// Automated Gradle project deployment to Sonatype OSSRH +if (isReleaseVersion && project.hasProperty("SONATYPE_USERNAME")) { + afterEvaluate { + project.apply from: "${rootProject.projectDir}/deploy.gradle" + } +} diff --git a/vtm/src/org/oscim/tiling/source/OkHttpEngine.java b/vtm-http/src/org/oscim/tiling/source/OkHttpEngine.java similarity index 100% rename from vtm/src/org/oscim/tiling/source/OkHttpEngine.java rename to vtm-http/src/org/oscim/tiling/source/OkHttpEngine.java diff --git a/vtm-playground/build.gradle b/vtm-playground/build.gradle index ce8d2c79..041c0d89 100644 --- a/vtm-playground/build.gradle +++ b/vtm-playground/build.gradle @@ -4,6 +4,7 @@ apply plugin: 'application' dependencies { compile project(':vtm-desktop') compile project(':vtm-extras') + compile project(':vtm-http') compile project(':vtm-jeo') compile project(':vtm-jts') compile 'org.slf4j:slf4j-simple:1.7.21' diff --git a/vtm-tests/build.gradle b/vtm-tests/build.gradle index df6279c5..9cc36d6d 100644 --- a/vtm-tests/build.gradle +++ b/vtm-tests/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'java' dependencies { - compile project(':vtm') + compile project(':vtm-http') compile 'com.squareup.okhttp:okhttp:1.5.2' testCompile 'com.squareup.okhttp:mockwebserver:1.5.2' testCompile 'junit:junit:4.11' diff --git a/vtm/build.gradle b/vtm/build.gradle index 9b2c0d40..1a21b8ff 100644 --- a/vtm/build.gradle +++ b/vtm/build.gradle @@ -6,7 +6,6 @@ configurations { providedCompile } dependencies { compile 'org.slf4j:slf4j-api:1.7.21' providedCompile 'com.google.code.findbugs:annotations:2.0.1' - providedCompile 'com.squareup.okhttp:okhttp:1.5.2' } sourceSets {