gradle: dont copy assets
This commit is contained in:
@@ -9,28 +9,19 @@ apply plugin: 'application'
|
||||
|
||||
mainClassName = 'org.oscim.gdx.GdxMapApp'
|
||||
|
||||
// need to include themes for the example executable
|
||||
// TODO should be removed someday
|
||||
task copyAssets(type: Copy) {
|
||||
from "${rootDir}/vtm-themes/resources"
|
||||
into "${buildDir}"
|
||||
include '**/*'
|
||||
}
|
||||
|
||||
// package vtm native libs into jar
|
||||
task copyLibs(type: Copy) {
|
||||
from(zipTree("../vtm-ext-libs/gdx/vtm-jni-natives.jar"))
|
||||
into("${buildDir}/assets")
|
||||
}
|
||||
//task copyLibs(type: Copy) {
|
||||
// from(zipTree("../vtm-ext-libs/gdx/vtm-jni-natives.jar"))
|
||||
// into("${buildDir}/assets")
|
||||
//}
|
||||
|
||||
tasks.withType(JavaCompile) { compileTask ->
|
||||
compileTask.dependsOn copyAssets
|
||||
compileTask.dependsOn copyLibs
|
||||
}
|
||||
//tasks.withType(JavaCompile) { compileTask ->
|
||||
// compileTask.dependsOn copyLibs
|
||||
//}
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs = ['src']
|
||||
main.resources.srcDirs = ["${buildDir}/assets"]
|
||||
//main.resources.srcDirs = ["${buildDir}/assets"]
|
||||
output.resourcesDir = 'assets'
|
||||
}
|
||||
|
||||
@@ -40,11 +31,7 @@ dependencies {
|
||||
compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
|
||||
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
||||
compile 'org.slf4j:slf4j-simple:1.7.5'
|
||||
}
|
||||
|
||||
eclipse.project {
|
||||
linkedResource name: 'assets', type: '2',
|
||||
locationUri: 'PARENT-1-PROJECT_LOC/vtm-themes/resources/assets'
|
||||
compile files('../vtm-ext-libs/gdx/vtm-jni-natives.jar')
|
||||
}
|
||||
|
||||
run { ignoreExitValue = true }
|
||||
|
||||
Reference in New Issue
Block a user