gradle: cleanups
This commit is contained in:
parent
f49c9e2b3a
commit
fccf3212e6
@ -2,11 +2,6 @@
|
|||||||
apply plugin: 'android-library'
|
apply plugin: 'android-library'
|
||||||
apply plugin: 'android-maven'
|
apply plugin: 'android-maven'
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
mavenLocal()
|
|
||||||
}
|
|
||||||
|
|
||||||
//http://stackoverflow.com/questions/20674650/how-to-configure-ndk-with-android-gradle-plugin-0-7
|
//http://stackoverflow.com/questions/20674650/how-to-configure-ndk-with-android-gradle-plugin-0-7
|
||||||
task nativeLibsToJar(type: Zip, description: 'create a jar with native libs') {
|
task nativeLibsToJar(type: Zip, description: 'create a jar with native libs') {
|
||||||
destinationDir file("$buildDir/native-libs")
|
destinationDir file("$buildDir/native-libs")
|
||||||
|
@ -1,34 +1,33 @@
|
|||||||
project(':vtm-gdx-desktop') {
|
|
||||||
apply plugin: 'java'
|
|
||||||
apply plugin: 'maven'
|
|
||||||
apply plugin: 'application'
|
|
||||||
|
|
||||||
mainClassName = 'org.oscim.gdx.GdxMapApp'
|
apply plugin: 'java'
|
||||||
|
apply plugin: 'maven'
|
||||||
|
apply plugin: 'application'
|
||||||
|
|
||||||
task copyAssets(type: Copy) {
|
mainClassName = 'org.oscim.gdx.GdxMapApp'
|
||||||
from "$rootDir/vtm/assets"
|
|
||||||
into "assets"
|
|
||||||
include '**/*'
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn copyAssets }
|
task copyAssets(type: Copy) {
|
||||||
|
from "$rootDir/vtm/assets"
|
||||||
|
into "assets"
|
||||||
|
include '**/*'
|
||||||
|
}
|
||||||
|
|
||||||
sourceSets {
|
tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn copyAssets }
|
||||||
main.java.srcDirs = ['src']
|
|
||||||
main.resources.srcDirs = ['src']
|
|
||||||
main.resources.srcDirs = ['assets']
|
|
||||||
output.resourcesDir = 'assets'
|
|
||||||
}
|
|
||||||
|
|
||||||
run { ignoreExitValue = true }
|
sourceSets {
|
||||||
|
main.java.srcDirs = ['src']
|
||||||
|
main.resources.srcDirs = ['src']
|
||||||
|
main.resources.srcDirs = ['assets']
|
||||||
|
output.resourcesDir = 'assets'
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
run { ignoreExitValue = true }
|
||||||
compile project(':vtm-gdx')
|
|
||||||
compile files('../vtm-ext-libs/gdx/gdx-backend-lwjgl.jar')
|
dependencies {
|
||||||
compile files('../vtm-ext-libs/gdx/gdx-backend-lwjgl-natives.jar')
|
compile project(':vtm-gdx')
|
||||||
compile files('../vtm-ext-libs/gdx/gdx-natives.jar')
|
compile files('../vtm-ext-libs/gdx/gdx-backend-lwjgl.jar')
|
||||||
compile files('../vtm-ext-libs/gdx/vtm-jni-natives.jar')
|
compile files('../vtm-ext-libs/gdx/gdx-backend-lwjgl-natives.jar')
|
||||||
compile 'org.slf4j:slf4j-api:1.7.5'
|
compile files('../vtm-ext-libs/gdx/gdx-natives.jar')
|
||||||
compile 'org.slf4j:slf4j-simple:1.7.5'
|
compile files('../vtm-ext-libs/gdx/vtm-jni-natives.jar')
|
||||||
}
|
compile 'org.slf4j:slf4j-api:1.7.5'
|
||||||
}
|
compile 'org.slf4j:slf4j-simple:1.7.5'
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user