Gradle build refactoring, closes #46
This commit is contained in:
parent
11d7002841
commit
eca77a0afc
51
build.gradle
51
build.gradle
@ -1,70 +1,39 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
mavenLocal()
|
||||
jcenter()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.3'
|
||||
|
||||
classpath 'com.android.tools.build:gradle:2.1.2'
|
||||
|
||||
// for aar/maven stuff
|
||||
// https://github.com/dcendents/android-maven-gradle-plugin
|
||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
|
||||
}
|
||||
}
|
||||
|
||||
def filterProjects(filter) {
|
||||
return subprojects.findAll { project -> filter.contains(project.name) }
|
||||
}
|
||||
|
||||
//apply from:'jdee.gradle'
|
||||
|
||||
allprojects {
|
||||
group = 'org.oscim'
|
||||
version = '0.6.0-SNAPSHOT'
|
||||
|
||||
ext.gdxVersion = "1.9.3"
|
||||
ext.androidBuildVersionTools = "23.0.3"
|
||||
|
||||
repositories {
|
||||
maven { url 'https://github.com/hjanetzek/maven-repo/raw/master/' }
|
||||
mavenCentral()
|
||||
// Jeo
|
||||
// maven { url 'http://repo.boundlessgeo.com/main' }
|
||||
mavenLocal()
|
||||
// Local andoird repo
|
||||
maven { url "${System.env.ANDROID_HOME}/extras/android/m2repository" }
|
||||
ext.gdxVersion = "1.9.3"
|
||||
}
|
||||
|
||||
// create IntelliJ project settings - untested
|
||||
apply plugin: 'idea'
|
||||
}
|
||||
def androidCompileSdk() { return 23 }
|
||||
|
||||
def androidMinSdk() { return 10 }
|
||||
def androidTargetSdk() { return 23 }
|
||||
|
||||
def androidTargetSdk() { return 22 }
|
||||
|
||||
def versionCode() { return 50 }
|
||||
|
||||
def versionName() { return version }
|
||||
|
||||
subprojects {
|
||||
// create eclipse project settings
|
||||
apply plugin: 'eclipse'
|
||||
|
||||
task copySettings(type: Copy) {
|
||||
from "$rootDir/eclipse"
|
||||
into ".settings"
|
||||
include '**/*'
|
||||
repositories {
|
||||
maven { url 'https://github.com/opensciencemap/maven-repo/raw/master/' }
|
||||
jcenter()
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_7
|
||||
targetCompatibility = JavaVersion.VERSION_1_7
|
||||
}
|
||||
|
||||
eclipseProject.dependsOn copySettings
|
||||
|
||||
// create emacs JDEE project settings
|
||||
// http://ignatyev-dev.blogspot.de/2013/07/gradle-projects-in-jdee.html
|
||||
//apply from:'../jdee.gradle'
|
||||
}
|
||||
|
@ -1,16 +1,10 @@
|
||||
repositories {
|
||||
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs = ['src']
|
||||
main.resources.srcDirs = ['src']
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile "com.badlogicgames.gdx:gdx-jnigen:$gdxVersion"
|
||||
}
|
||||
|
||||
eclipse.project.name = 'vtm-jni'
|
||||
sourceSets {
|
||||
main.java.srcDirs = ['src']
|
||||
main.resources.srcDirs = ['src']
|
||||
}
|
||||
|
@ -1,28 +1,30 @@
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
configurations {
|
||||
providedCompile
|
||||
eclipseCompile
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':vtm-android')
|
||||
compile project(':vtm-jeo')
|
||||
compile project(':vtm-extras')
|
||||
compile project(':vtm-jeo')
|
||||
compile project(':vtm-themes')
|
||||
compile files("${rootDir}/vtm-android/vtm-natives-android.jar")
|
||||
|
||||
compile 'com.android.support:support-v4:22.+'
|
||||
compile 'com.android.support:appcompat-v7:22.+'
|
||||
//eclipseCompile project(':appcompat')
|
||||
|
||||
compile 'com.noveogroup.android:android-logger:1.3.4'
|
||||
compile 'com.android.support:support-v4:24.0.0'
|
||||
compile 'com.android.support:appcompat-v7:24.0.0'
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion androidTargetSdk()
|
||||
compileSdkVersion androidCompileSdk()
|
||||
buildToolsVersion "$androidBuildVersionTools"
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_7
|
||||
targetCompatibility JavaVersion.VERSION_1_7
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
versionCode versionCode()
|
||||
versionName versionName()
|
||||
minSdkVersion androidMinSdk()
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
manifest.srcFile 'AndroidManifest.xml'
|
||||
@ -31,74 +33,19 @@ android {
|
||||
res.srcDirs = ['res']
|
||||
assets.srcDirs = ['assets']
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_7
|
||||
targetCompatibility JavaVersion.VERSION_1_7
|
||||
}
|
||||
|
||||
debug.setRoot('build-types/debug')
|
||||
release.setRoot('build-types/release')
|
||||
}
|
||||
// remove duplicates
|
||||
|
||||
lintOptions { abortOnError false }
|
||||
|
||||
packagingOptions {
|
||||
exclude 'META-INF/services/org.jeo.data.Driver'
|
||||
exclude 'META-INF/LICENSE'
|
||||
exclude 'META-INF/NOTICE'
|
||||
}
|
||||
|
||||
// ignore deprecated
|
||||
lintOptions.abortOnError false
|
||||
}
|
||||
|
||||
eclipse {
|
||||
classpath {
|
||||
plusConfigurations += [ configurations.compile, configurations.eclipseCompile ]
|
||||
|
||||
defaultOutputDir = file('bin/classes')
|
||||
|
||||
containers = ['com.android.ide.eclipse.adt.ANDROID_FRAMEWORK',
|
||||
'com.android.ide.eclipse.adt.LIBRARIES',
|
||||
'com.android.ide.eclipse.adt.DEPENDENCIES']
|
||||
|
||||
file {
|
||||
// Manipulation of the classpath XML before merging local
|
||||
// and generated copies
|
||||
beforeMerged { classpath ->
|
||||
// Remove all source entries to avoid overlap
|
||||
classpath.entries.removeAll() { e ->
|
||||
e.kind == 'src'
|
||||
}
|
||||
}
|
||||
|
||||
// only used to explode jni .so into aar
|
||||
whenMerged {
|
||||
classpath ->
|
||||
classpath.entries.findAll { e ->
|
||||
e.path.contains('ANDROID_FRAMEWORK')
|
||||
}*.exported = false
|
||||
classpath.entries.removeAll() { e ->
|
||||
e.path.contains('support')
|
||||
}
|
||||
}
|
||||
|
||||
// Direct manipulation of the generated classpath XML
|
||||
withXml {
|
||||
def node = it.asNode()
|
||||
node.appendNode('classpathentry kind="src" path="src"')
|
||||
node.appendNode('classpathentry kind="src" path="gen"')
|
||||
}
|
||||
}
|
||||
}
|
||||
project {
|
||||
natures = ['com.android.ide.eclipse.adt.AndroidNature',
|
||||
'org.eclipse.jdt.core.javanature']
|
||||
|
||||
buildCommand 'com.android.ide.eclipse.adt.ResourceManagerBuilder'
|
||||
buildCommand 'com.android.ide.eclipse.adt.PreCompilerBuilder'
|
||||
buildCommand 'com.android.ide.eclipse.adt.ApkBuilder'
|
||||
}
|
||||
}
|
||||
task run(dependsOn: 'installDebug') {
|
||||
doFirst {
|
||||
println(">> adb run...")
|
||||
|
@ -1,108 +1,43 @@
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
configurations { providedCompile }
|
||||
|
||||
dependencies {
|
||||
compile project(':vtm-gdx')
|
||||
compile project(':vtm-themes')
|
||||
compile 'com.noveogroup.android:android-logger:1.3.4'
|
||||
compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
|
||||
//compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
|
||||
//compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
|
||||
//compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
|
||||
compile files('gdx-natives-android.jar')
|
||||
compile files("${rootDir}/vtm-android/vtm-natives-android.jar")
|
||||
compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
|
||||
compile files('gdx-natives-android.jar')
|
||||
}
|
||||
|
||||
//task copyLibs(type: Copy) {
|
||||
// from "$rootDir/vtm-ext-libs/vtm-gdx-android"
|
||||
// into "libs"
|
||||
// include '**/*'
|
||||
//}
|
||||
|
||||
//tasks.withType(JavaCompile) { compileTask ->
|
||||
// compileTask.dependsOn copyLibs }
|
||||
|
||||
android {
|
||||
compileSdkVersion androidTargetSdk()
|
||||
compileSdkVersion androidCompileSdk()
|
||||
buildToolsVersion "$androidBuildVersionTools"
|
||||
lintOptions { abortOnError false }
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
manifest.srcFile 'AndroidManifest.xml'
|
||||
java.srcDirs = ['src', 'assets']
|
||||
resources.srcDirs = ['src', 'assets']
|
||||
aidl.srcDirs = ['src', 'assets']
|
||||
renderscript.srcDirs = ['src', 'assets']
|
||||
res.srcDirs = ['res']
|
||||
assets.srcDirs = ['assets']
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_7
|
||||
targetCompatibility JavaVersion.VERSION_1_7
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
versionCode versionCode()
|
||||
versionName versionName()
|
||||
minSdkVersion androidMinSdk()
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
manifest.srcFile 'AndroidManifest.xml'
|
||||
java.srcDirs = ['src']
|
||||
resources.srcDirs = ['src', 'assets']
|
||||
aidl.srcDirs = ['src', 'assets']
|
||||
renderscript.srcDirs = ['src', 'assets']
|
||||
res.srcDirs = ['res']
|
||||
assets.srcDirs = ['assets']
|
||||
}
|
||||
debug.setRoot('build-types/debug')
|
||||
release.setRoot('build-types/release')
|
||||
}
|
||||
}
|
||||
|
||||
// Including configurations into Eclipse
|
||||
eclipse {
|
||||
|
||||
// Configuring Eclipse classpath
|
||||
classpath {
|
||||
plusConfigurations += [ configurations.compile ]
|
||||
|
||||
defaultOutputDir = file('bin/classes')
|
||||
|
||||
containers = ['com.android.ide.eclipse.adt.ANDROID_FRAMEWORK',
|
||||
'com.android.ide.eclipse.adt.LIBRARIES',
|
||||
'com.android.ide.eclipse.adt.DEPENDENCIES']
|
||||
|
||||
file {
|
||||
beforeMerged { classpath ->
|
||||
// Remove all source entries to avoid overlap
|
||||
classpath.entries.removeAll() { c ->
|
||||
c.kind == 'src'
|
||||
}
|
||||
}
|
||||
|
||||
// only used to explode jni .so into aar
|
||||
whenMerged { classpath ->
|
||||
classpath.entries.findAll { entry ->
|
||||
entry.path.contains('ANDROID_FRAMEWORK') ||
|
||||
entry.path.contains('support') ||
|
||||
entry.path.contains('native-libs')
|
||||
}*.exported = false
|
||||
|
||||
classpath.entries.removeAll { entry ->
|
||||
entry.path.contains('gdx-2') }
|
||||
}
|
||||
|
||||
// Direct manipulation of the generated classpath XML
|
||||
withXml {
|
||||
def node = it.asNode()
|
||||
node.appendNode('classpathentry kind="src" path="src"')
|
||||
node.appendNode('classpathentry kind="src" path="gen"')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
project {
|
||||
natures = ['com.android.ide.eclipse.adt.AndroidNature',
|
||||
'org.eclipse.jdt.core.javanature']
|
||||
|
||||
buildCommand 'com.android.ide.eclipse.adt.ResourceManagerBuilder'
|
||||
buildCommand 'com.android.ide.eclipse.adt.PreCompilerBuilder'
|
||||
buildCommand 'com.android.ide.eclipse.adt.ApkBuilder'
|
||||
// use extracted jni .so in eclipse
|
||||
linkedResource name: 'libs', type: '2',
|
||||
locationUri: 'PARENT-1-PROJECT_LOC/vtm-ext-libs/vtm-gdx-android'
|
||||
|
||||
}
|
||||
lintOptions { abortOnError false }
|
||||
}
|
||||
|
||||
task run(dependsOn: 'installDebug') {
|
||||
|
@ -1,26 +1,28 @@
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
configurations {
|
||||
providedCompile
|
||||
eclipseCompile
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':vtm-android')
|
||||
compile project(':vtm-themes')
|
||||
compile files("${rootDir}/vtm-android/vtm-natives-android.jar")
|
||||
|
||||
compile 'com.android.support:support-v4:22.+'
|
||||
compile 'com.android.support:appcompat-v7:22.+'
|
||||
//eclipseCompile project(':appcompat')
|
||||
|
||||
compile 'com.noveogroup.android:android-logger:1.3.4'
|
||||
compile 'com.android.support:support-v4:24.0.0'
|
||||
compile 'com.android.support:appcompat-v7:24.0.0'
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion androidTargetSdk()
|
||||
compileSdkVersion androidCompileSdk()
|
||||
buildToolsVersion "$androidBuildVersionTools"
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_7
|
||||
targetCompatibility JavaVersion.VERSION_1_7
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
versionCode versionCode()
|
||||
versionName versionName()
|
||||
minSdkVersion androidMinSdk()
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
manifest.srcFile 'AndroidManifest.xml'
|
||||
@ -29,70 +31,11 @@ android {
|
||||
res.srcDirs = ['res']
|
||||
assets.srcDirs = ['assets']
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_7
|
||||
targetCompatibility JavaVersion.VERSION_1_7
|
||||
}
|
||||
|
||||
debug.setRoot('build-types/debug')
|
||||
release.setRoot('build-types/release')
|
||||
}
|
||||
|
||||
// ignore deprecated
|
||||
lintOptions.abortOnError false
|
||||
}
|
||||
|
||||
//Including configurations into Eclipse
|
||||
eclipse {
|
||||
|
||||
// Configuring Eclipse classpath
|
||||
classpath {
|
||||
plusConfigurations += [ configurations.compile, configurations.eclipseCompile ]
|
||||
|
||||
defaultOutputDir = file('bin/classes')
|
||||
|
||||
containers = ['com.android.ide.eclipse.adt.ANDROID_FRAMEWORK',
|
||||
'com.android.ide.eclipse.adt.LIBRARIES',
|
||||
'com.android.ide.eclipse.adt.DEPENDENCIES']
|
||||
|
||||
file {
|
||||
// Manipulation of the classpath XML before merging local
|
||||
// and generated copies
|
||||
beforeMerged { classpath ->
|
||||
// Remove all source entries to avoid overlap
|
||||
classpath.entries.removeAll() { e ->
|
||||
e.kind == 'src'
|
||||
}
|
||||
}
|
||||
|
||||
// only used to explode jni .so into aar
|
||||
whenMerged {
|
||||
classpath ->
|
||||
classpath.entries.findAll { e ->
|
||||
e.path.contains('ANDROID_FRAMEWORK')
|
||||
}*.exported = false
|
||||
classpath.entries.removeAll() { e ->
|
||||
e.path.contains('support')
|
||||
}
|
||||
}
|
||||
|
||||
// Direct manipulation of the generated classpath XML
|
||||
withXml {
|
||||
def node = it.asNode()
|
||||
node.appendNode('classpathentry kind="src" path="src"')
|
||||
node.appendNode('classpathentry kind="src" path="gen"')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
project {
|
||||
natures = ['com.android.ide.eclipse.adt.AndroidNature',
|
||||
'org.eclipse.jdt.core.javanature']
|
||||
buildCommand 'com.android.ide.eclipse.adt.ResourceManagerBuilder'
|
||||
buildCommand 'com.android.ide.eclipse.adt.PreCompilerBuilder'
|
||||
buildCommand 'com.android.ide.eclipse.adt.ApkBuilder'
|
||||
}
|
||||
lintOptions { abortOnError false }
|
||||
}
|
||||
|
||||
task run(dependsOn: 'installDebug') {
|
||||
|
@ -1,22 +1,25 @@
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'com.github.dcendents.android-maven'
|
||||
|
||||
configurations {
|
||||
eclipseCompile
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':vtm')
|
||||
provided files('vtm-natives-android.jar')
|
||||
|
||||
compile 'com.android.support:support-v4:21.+'
|
||||
//eclipseCompile project(':appcompat')
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion androidTargetSdk()
|
||||
compileSdkVersion androidCompileSdk()
|
||||
buildToolsVersion = "$androidBuildVersionTools"
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_7
|
||||
targetCompatibility JavaVersion.VERSION_1_7
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
versionCode versionCode()
|
||||
versionName versionName()
|
||||
minSdkVersion androidMinSdk()
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
manifest.srcFile 'AndroidManifest.xml'
|
||||
@ -29,66 +32,7 @@ android {
|
||||
release.setRoot('build-types/release')
|
||||
}
|
||||
|
||||
lintOptions.abortOnError false
|
||||
}
|
||||
|
||||
eclipse {
|
||||
classpath {
|
||||
plusConfigurations += [ configurations.compile, configurations.eclipseCompile ]
|
||||
|
||||
//noExportConfigurations += [ configurations.provided ]
|
||||
|
||||
//customizing the classes output directory:
|
||||
defaultOutputDir = file('bin/classes')
|
||||
|
||||
containers = ['com.android.ide.eclipse.adt.ANDROID_FRAMEWORK',
|
||||
'com.android.ide.eclipse.adt.LIBRARIES',
|
||||
'com.android.ide.eclipse.adt.DEPENDENCIES']
|
||||
|
||||
file {
|
||||
// Manipulation of the classpath XML before merging local
|
||||
// and generated copies
|
||||
beforeMerged { classpath ->
|
||||
// Remove all source entries to avoid overlap
|
||||
classpath.entries.removeAll() { e ->
|
||||
e.kind == 'src'
|
||||
}
|
||||
}
|
||||
|
||||
// only used to explode jni .so into aar
|
||||
whenMerged {
|
||||
classpath ->
|
||||
classpath.entries.findAll { e ->
|
||||
e.path.contains('native-libs') ||
|
||||
e.path.contains('ANDROID_FRAMEWORK')
|
||||
}*.exported = false
|
||||
classpath.entries.removeAll() { e ->
|
||||
e.path.contains('support')
|
||||
}
|
||||
}
|
||||
|
||||
// Direct manipulation of the generated classpath XML
|
||||
withXml {
|
||||
// Since non-default source directories are used
|
||||
// they need to be manually added to the classpath XML
|
||||
def node = it.asNode()
|
||||
// Main source directory and generated code directory
|
||||
node.appendNode('classpathentry kind="src" path="src"')
|
||||
node.appendNode('classpathentry kind="src" path="gen"')
|
||||
}
|
||||
}
|
||||
}
|
||||
project {
|
||||
natures = ['com.android.ide.eclipse.adt.AndroidNature',
|
||||
'org.eclipse.jdt.core.javanature']
|
||||
buildCommand 'com.android.ide.eclipse.adt.ResourceManagerBuilder'
|
||||
buildCommand 'com.android.ide.eclipse.adt.PreCompilerBuilder'
|
||||
buildCommand 'com.android.ide.eclipse.adt.ApkBuilder'
|
||||
|
||||
// use extracted jni .so in eclipse
|
||||
linkedResource name: 'libs', type: '2',
|
||||
locationUri: 'PARENT-1-PROJECT_LOC/vtm-ext-libs/vtm-android'
|
||||
}
|
||||
lintOptions { abortOnError false }
|
||||
}
|
||||
|
||||
android.libraryVariants.all { variant ->
|
||||
|
@ -1,40 +1,23 @@
|
||||
repositories {
|
||||
// libgdx
|
||||
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'maven'
|
||||
apply plugin: 'application'
|
||||
|
||||
dependencies {
|
||||
compile project(':vtm-gdx')
|
||||
compile project(':vtm-themes')
|
||||
compile files('vtm-natives-desktop.jar')
|
||||
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
||||
compile "com.badlogicgames.gdx:gdx-backend-jglfw:$gdxVersion"
|
||||
compile 'org.slf4j:slf4j-simple:1.7.21'
|
||||
}
|
||||
|
||||
mainClassName = 'org.oscim.gdx.GdxMapApp'
|
||||
|
||||
// package vtm native libs into jar
|
||||
//task copyLibs(type: Copy) {
|
||||
// from(zipTree("../vtm-ext-libs/gdx/vtm-jni-natives.jar"))
|
||||
// into("${buildDir}/assets")
|
||||
//}
|
||||
|
||||
//tasks.withType(JavaCompile) { compileTask ->
|
||||
// compileTask.dependsOn copyLibs
|
||||
//}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
java.srcDirs = ['src']
|
||||
//main.resources.srcDirs = ["${buildDir}/assets"]
|
||||
output.resourcesDir = 'assets'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':vtm-gdx')
|
||||
compile project(':vtm-themes')
|
||||
//compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
|
||||
compile "com.badlogicgames.gdx:gdx-backend-jglfw:$gdxVersion"
|
||||
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
||||
compile 'org.slf4j:slf4j-simple:1.7.6'
|
||||
compile files('vtm-natives-desktop.jar')
|
||||
}
|
||||
|
||||
run { ignoreExitValue = true }
|
||||
|
@ -1,16 +1,15 @@
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'maven'
|
||||
|
||||
dependencies {
|
||||
compile project(':vtm')
|
||||
compile 'com.fasterxml.jackson.core:jackson-core:2.3.0'
|
||||
compile 'com.google.protobuf:protobuf-java:2.4.1'
|
||||
compile 'com.vividsolutions:jts:1.13'
|
||||
compile 'org.openstreetmap.osmosis:osmosis-osm-binary:0.44.1'
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs = ['src']
|
||||
main.resources.srcDirs = ['src']
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':vtm')
|
||||
compile 'com.google.protobuf:protobuf-java:2.4.1'
|
||||
compile 'org.openstreetmap.osmosis:osmosis-osm-binary:0.43.1'
|
||||
compile 'com.fasterxml.jackson.core:jackson-core:2.3.0'
|
||||
compile 'com.vividsolutions:jts:1.13'
|
||||
}
|
||||
|
||||
|
@ -1,17 +1,13 @@
|
||||
repositories {
|
||||
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'maven'
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs = ['src']
|
||||
main.resources.srcDirs = ['src']
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':vtm')
|
||||
compile project(':vtm-themes')
|
||||
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs = ['src']
|
||||
main.resources.srcDirs = ['src']
|
||||
}
|
||||
|
@ -1,8 +1,5 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
@ -10,8 +7,8 @@ buildscript {
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: "java"
|
||||
apply plugin: "robovm"
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'robovm'
|
||||
|
||||
sourceSets.main.java.srcDirs = ["src/"]
|
||||
|
||||
@ -33,17 +30,13 @@ dependencies {
|
||||
compile project(':vtm')
|
||||
compile project(':vtm-gdx')
|
||||
compile project(':vtm-themes')
|
||||
compile 'org.slf4j:slf4j-simple:1.7.5'
|
||||
compile 'org.slf4j:slf4j-simple:1.7.21'
|
||||
compile "com.mobidevelop.robovm:robovm-rt:$roboVMVersion"
|
||||
compile "com.mobidevelop.robovm:robovm-cocoatouch:$roboVMVersion"
|
||||
compile "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
|
||||
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
task copyLibs(type: Copy) {
|
||||
from(zipTree("vtm-natives-ios.jar"))
|
||||
into("${buildDir}/natives")
|
||||
|
@ -1,12 +1,6 @@
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'maven'
|
||||
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs = ['src']
|
||||
main.resources.srcDirs = ['src']
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':vtm')
|
||||
compile('org.jeo:jeo:0-SNAPSHOT') {
|
||||
@ -17,7 +11,7 @@ dependencies {
|
||||
}
|
||||
}
|
||||
|
||||
// eclipse.classpath.file.whenMerged { classpath ->
|
||||
// classpath.entries.findAll { entry ->
|
||||
// entry.path.contains('vtm-0.5.9-SNAPSHOT.jar') }*.exported = false
|
||||
// }
|
||||
sourceSets {
|
||||
main.java.srcDirs = ['src']
|
||||
main.resources.srcDirs = ['src']
|
||||
}
|
||||
|
@ -1,23 +1,14 @@
|
||||
repositories {
|
||||
// libgdx
|
||||
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'application'
|
||||
|
||||
dependencies {
|
||||
compile project(':vtm-desktop')
|
||||
compile project(':vtm-extras')
|
||||
compile project(':vtm-jeo')
|
||||
}
|
||||
|
||||
mainClassName = 'org.oscim.gdx.GdxMapApp'
|
||||
|
||||
// package vtm native libs into jar
|
||||
task copyLibs(type: Copy) {
|
||||
from(zipTree("../vtm-desktop/vtm-natives-desktop.jar"))
|
||||
into("${buildDir}/assets")
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) { compileTask ->
|
||||
compileTask.dependsOn copyLibs
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
java.srcDirs = ['src']
|
||||
@ -25,10 +16,4 @@ sourceSets {
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':vtm-desktop')
|
||||
compile project(':vtm-extras')
|
||||
compile project(':vtm-jeo')
|
||||
}
|
||||
|
||||
run { ignoreExitValue = true }
|
||||
|
@ -3,10 +3,10 @@ apply plugin: 'java'
|
||||
dependencies {
|
||||
compile project(':vtm')
|
||||
compile 'com.squareup.okhttp:okhttp:1.5.2'
|
||||
testCompile 'junit:junit:4.11'
|
||||
testCompile 'org.mockito:mockito-all:1.9.5'
|
||||
testCompile 'org.easytesting:fest-assert-core:2.0M10'
|
||||
testCompile 'com.squareup.okhttp:mockwebserver:1.5.2'
|
||||
testCompile 'junit:junit:4.11'
|
||||
testCompile 'org.easytesting:fest-assert-core:2.0M10'
|
||||
testCompile 'org.mockito:mockito-all:1.9.5'
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
|
@ -1,7 +1,6 @@
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'maven'
|
||||
|
||||
|
||||
dependencies {
|
||||
compile project(':vtm')
|
||||
}
|
||||
|
@ -16,7 +16,6 @@ repositories {
|
||||
apply plugin: 'war'
|
||||
apply plugin: 'jetty'
|
||||
apply plugin: 'gwt'
|
||||
apply plugin: 'eclipse'
|
||||
|
||||
sourceSets {
|
||||
//main.java.srcDirs = ['src', 'src/org/oscim/gdx/emu']
|
||||
@ -38,7 +37,6 @@ evaluationDependsOn(':vtm-themes')
|
||||
evaluationDependsOn(':vtm-gdx')
|
||||
evaluationDependsOn(':vtm-web')
|
||||
|
||||
|
||||
gwt {
|
||||
gwtVersion = '2.6.1'
|
||||
modules 'org.oscim.web.VtmWebApp'
|
||||
@ -90,16 +88,3 @@ tasks.withType(JavaCompile) { compileTask ->
|
||||
compileTask.dependsOn copyVtmAssets
|
||||
compileTask.dependsOn copyWarSources
|
||||
}
|
||||
|
||||
// Configuring Eclipse classpath
|
||||
eclipse.classpath {
|
||||
|
||||
defaultOutputDir = file('war/WEB-INF/classes')
|
||||
|
||||
//file {
|
||||
// whenMerged { classpath ->
|
||||
// classpath.entries.findAll { entry ->
|
||||
// entry.path == 'src' }*.excludes = ['main','org/oscim/gdx/emu/']
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
@ -16,7 +16,6 @@ repositories {
|
||||
apply plugin: 'war'
|
||||
apply plugin: 'jetty'
|
||||
apply plugin: 'gwt'
|
||||
apply plugin: 'eclipse'
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs = ['src']
|
||||
@ -92,16 +91,3 @@ tasks.withType(JavaCompile) { compileTask ->
|
||||
compileTask.dependsOn copyVtmAssets
|
||||
compileTask.dependsOn copyWarSources
|
||||
}
|
||||
|
||||
// Configuring Eclipse classpath
|
||||
eclipse.classpath {
|
||||
|
||||
defaultOutputDir = file('war/WEB-INF/classes')
|
||||
|
||||
//file {
|
||||
// whenMerged { classpath ->
|
||||
// classpath.entries.findAll { entry ->
|
||||
// entry.path == 'src' }*.excludes = ['main','org/oscim/gdx/emu/']
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
@ -17,7 +17,6 @@ repositories {
|
||||
//apply plugin: 'jetty'
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'gwt-base'
|
||||
apply plugin: 'eclipse'
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs = ['src', 'src/org/oscim/gdx/emu']
|
||||
@ -82,16 +81,3 @@ gwt {
|
||||
// compileTask.dependsOn copyThemeAssets
|
||||
// compileTask.dependsOn copyVtmAssets
|
||||
//}
|
||||
|
||||
// Configuring Eclipse classpath
|
||||
eclipse.classpath {
|
||||
|
||||
defaultOutputDir = file('war/WEB-INF/classes')
|
||||
|
||||
file {
|
||||
whenMerged { classpath ->
|
||||
classpath.entries.findAll { entry ->
|
||||
entry.path == 'src' }*.excludes = ['main','org/oscim/gdx/emu/']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,10 +4,10 @@ apply plugin: 'maven'
|
||||
configurations { providedCompile }
|
||||
|
||||
dependencies {
|
||||
compile 'org.slf4j:slf4j-api:1.7.6'
|
||||
compile 'com.vividsolutions:jts:1.13'
|
||||
providedCompile 'com.squareup.okhttp:okhttp:1.5.2'
|
||||
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 {
|
||||
@ -15,24 +15,3 @@ sourceSets {
|
||||
main.resources.srcDirs = ['resources']
|
||||
main.compileClasspath += configurations.providedCompile
|
||||
}
|
||||
|
||||
eclipse.classpath {
|
||||
//you can tweak the classpath of the Eclipse project by adding extra configurations:
|
||||
plusConfigurations += [ configurations.providedCompile ]
|
||||
|
||||
file.whenMerged { classpath ->
|
||||
classpath.entries.findAll { entry ->
|
||||
entry.path.contains('annotations') ||
|
||||
entry.path.contains('okhttp') ||
|
||||
entry.path.contains('okio')
|
||||
}*.exported = false
|
||||
}
|
||||
|
||||
//if you don't want some classpath entries 'exported' in Eclipse
|
||||
noExportConfigurations += [ configurations.providedCompile ]
|
||||
|
||||
|
||||
//default settings for downloading sources and Javadoc:
|
||||
//downloadSources = true
|
||||
//downloadJavadoc = false
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user