I’m trying to build it with gradle. It seems I need jbullet and now 50 more lines can break my build.
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'eclipse'
apply plugin: 'idea'
mainClassName = 'spaceworld.SpaceUFO'
repositories {
jcenter()
}
ext.jmeVersion = "[3.1,)"
project(":assets") {
apply plugin: "java"
buildDir = rootProject.file("build/assets")
sourceSets {
main {
resources {
srcDir '.'
}
}
}
}
repositories {
mavenCentral()
maven {
url "https://mvnrepository.com/artifact/cz.advel.jbullet/jbullet"
}
}
dependencies {
compile "org.jmonkeyengine:jme3-core:$jmeVersion"
compile "org.jmonkeyengine:jme3-desktop:$jmeVersion"
compile "org.jmonkeyengine:jme3-lwjgl:$jmeVersion"
compile "org.jmonkeyengine:jme3-blender:$jmeVersion"
compile "org.jmonkeyengine:jme3-bullet:$jmeVersion"
compile "org.jmonkeyengine:jme3-plugins:$jmeVersion"
compile "org.jmonkeyengine:jme3-networking:$jmeVersion"
compile "org.jmonkeyengine:jme3-jbullet:$jmeVersion"
compile group: "cz.advel.jbullet", name: "jbullet", version: "20101010"
compile files('libs/cai-nmgen-0.2.0.jar')
runtime project(':assets')
}
task wrapper(type: Wrapper) {
}
task createDirs << {
def pkg = 'spaceworld'
def dirs = [
file("./src/main/java/$pkg"),
file("./src/main/resources"),
file("./assets/Interface"),
file("./assets/MatDefs"),
file("./assets/Materials"),
file("./assets/Models"),
file("./assets/Scenes"),
file("./assets/Shaders"),
file("./assets/Sounds"),
file("./assets/Textures"),
]
dirs.each {
if (!it.exists()) {
println "Creating " + it
it.mkdirs()
}
if (it.listFiles().length == 0) {
def stub = new File(it, 'removeme.txt')
println "Creating stub file to allow git checkin, file:$stub"
stub.text = "Remove me when there are files here."
}
}
}
output
dac@dac-Latitude-E7450 ~/p/spaceworld> gradle run
:compileJava
Invalid cookie header: "Set-Cookie: MVN_SESSION=171bc686eec8880f192a2660b9893d5eb5cf954a-uid=15b55b51-392c-11e6-b338-a16379e0552f; Max-Age=31536000; Expires=Fri, 23 Jun 2017 10:20:18 GMT; Path=/; HTTPOnly". Invalid 'expires' attribute: Fri, 23 Jun 2017 10:20:18 GMT
Invalid cookie header: "Set-Cookie: MVN_SESSION=213bdf090f4219c71de836a12c69a6c702013db2-uid=15c9f4c1-392c-11e6-ad17-715c8ec83dfc; Max-Age=31536000; Expires=Fri, 23 Jun 2017 10:20:18 GMT; Path=/; HTTPOnly". Invalid 'expires' attribute: Fri, 23 Jun 2017 10:20:18 GMT
Invalid cookie header: "Set-Cookie: MVN_SESSION=7ad5e2b8bdd9ea16db19f168d43e2995f86bb32f-uid=15fd87e1-392c-11e6-ad17-715c8ec83dfc; Max-Age=31536000; Expires=Fri, 23 Jun 2017 10:20:19 GMT; Path=/; HTTPOnly". Invalid 'expires' attribute: Fri, 23 Jun 2017 10:20:19 GMT
Invalid cookie header: "Set-Cookie: MVN_SESSION=41b5afb5f82bd80eddc1d67bcc3a1ad64167c994-uid=1610c1c1-392c-11e6-b338-a16379e0552f; Max-Age=31536000; Expires=Fri, 23 Jun 2017 10:20:19 GMT; Path=/; HTTPOnly". Invalid 'expires' attribute: Fri, 23 Jun 2017 10:20:19 GMT
Invalid cookie header: "Set-Cookie: MVN_SESSION=2e68ec7137ffe8ca84e07e1eb87f93d60d1d32a7-uid=16565640-392c-11e6-ad17-715c8ec83dfc; Max-Age=31536000; Expires=Fri, 23 Jun 2017 10:20:19 GMT; Path=/; HTTPOnly". Invalid 'expires' attribute: Fri, 23 Jun 2017 10:20:19 GMT
Invalid cookie header: "Set-Cookie: MVN_SESSION=42d0691a75a75ee25aa95029120971fd958b0d71-uid=16691af1-392c-11e6-ad17-715c8ec83dfc; Max-Age=31536000; Expires=Fri, 23 Jun 2017 10:20:19 GMT; Path=/; HTTPOnly". Invalid 'expires' attribute: Fri, 23 Jun 2017 10:20:19 GMT
Invalid cookie header: "Set-Cookie: MVN_SESSION=cdf2a35d6994c4a57952121f742162d95d33c204-uid=16984141-392c-11e6-b338-a16379e0552f; Max-Age=31536000; Expires=Fri, 23 Jun 2017 10:20:20 GMT; Path=/; HTTPOnly". Invalid 'expires' attribute: Fri, 23 Jun 2017 10:20:20 GMT
Invalid cookie header: "Set-Cookie: MVN_SESSION=29d8aa5de91bc7190a069ccee32623d8c5bd7da6-uid=16ab2d00-392c-11e6-b338-a16379e0552f; Max-Age=31536000; Expires=Fri, 23 Jun 2017 10:20:20 GMT; Path=/; HTTPOnly". Invalid 'expires' attribute: Fri, 23 Jun 2017 10:20:20 GMT
Invalid cookie header: "Set-Cookie: MVN_SESSION=642778f6e77630ac63eb9597bcb6d76409cb9322-uid=16cb3820-392c-11e6-ad17-715c8ec83dfc; Max-Age=31536000; Expires=Fri, 23 Jun 2017 10:20:20 GMT; Path=/; HTTPOnly". Invalid 'expires' attribute: Fri, 23 Jun 2017 10:20:20 GMT
Invalid cookie header: "Set-Cookie: MVN_SESSION=dcbc321d7aed38a1478ef6f55c3fdeee19dd5a79-uid=16dec020-392c-11e6-b338-a16379e0552f; Max-Age=31536000; Expires=Fri, 23 Jun 2017 10:20:20 GMT; Path=/; HTTPOnly". Invalid 'expires' attribute: Fri, 23 Jun 2017 10:20:20 GMT
Invalid cookie header: "Set-Cookie: MVN_SESSION=fa3f61c251bc1678e8a751c99ebb0cb65a5483d4-uid=170ab221-392c-11e6-b338-a16379e0552f; Max-Age=31536000; Expires=Fri, 23 Jun 2017 10:20:20 GMT; Path=/; HTTPOnly". Invalid 'expires' attribute: Fri, 23 Jun 2017 10:20:20 GMT
Invalid cookie header: "Set-Cookie: MVN_SESSION=5f7f8ad32de569b8d2ce2010b2da8781022b06e6-uid=171d9de0-392c-11e6-b338-a16379e0552f; Max-Age=31536000; Expires=Fri, 23 Jun 2017 10:20:21 GMT; Path=/; HTTPOnly". Invalid 'expires' attribute: Fri, 23 Jun 2017 10:20:21 GMT
Invalid cookie header: "Set-Cookie: MVN_SESSION=b29fe6df488d4b85b9e3cd0e1cf7864fcaca38b0-uid=1746d0c0-392c-11e6-ad17-715c8ec83dfc; Max-Age=31536000; Expires=Fri, 23 Jun 2017 10:20:21 GMT; Path=/; HTTPOnly". Invalid 'expires' attribute: Fri, 23 Jun 2017 10:20:21 GMT
Invalid cookie header: "Set-Cookie: MVN_SESSION=8de8c6b0d821d8274e167cb0541f34da2b207b15-uid=1759e390-392c-11e6-ad17-715c8ec83dfc; Max-Age=31536000; Expires=Fri, 23 Jun 2017 10:20:21 GMT; Path=/; HTTPOnly". Invalid 'expires' attribute: Fri, 23 Jun 2017 10:20:21 GMT
Invalid cookie header: "Set-Cookie: MVN_SESSION=d12edd35787b0076f52f28c644074d76f09e9e74-uid=17a25e41-392c-11e6-ad17-715c8ec83dfc; Max-Age=31536000; Expires=Fri, 23 Jun 2017 10:20:21 GMT; Path=/; HTTPOnly". Invalid 'expires' attribute: Fri, 23 Jun 2017 10:20:21 GMT
Invalid cookie header: "Set-Cookie: MVN_SESSION=5bc3ecf387a22256e08c3034670b809b1c7a2998-uid=17b6d0a1-392c-11e6-b338-a16379e0552f; Max-Age=31536000; Expires=Fri, 23 Jun 2017 10:20:22 GMT; Path=/; HTTPOnly". Invalid 'expires' attribute: Fri, 23 Jun 2017 10:20:22 GMT
Download https://jcenter.bintray.com/cz/advel/jbullet/jbullet/20101010/jbullet-20101010.pom
Download https://jcenter.bintray.com/asm/asm-all/3.1/asm-all-3.1.pom
Download https://jcenter.bintray.com/asm/asm-parent/3.1/asm-parent-3.1.pom
Download https://jcenter.bintray.com/ant/ant/1.6.5/ant-1.6.5.pom
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Could not find any matches for org.jmonkeyengine:jme3-jbullet:[3.1,) as no versions of org.jmonkeyengine:jme3-jbullet are available.
Searched in the following locations:
https://jcenter.bintray.com/org/jmonkeyengine/jme3-jbullet/maven-metadata.xml
https://jcenter.bintray.com/org/jmonkeyengine/jme3-jbullet/
https://repo1.maven.org/maven2/org/jmonkeyengine/jme3-jbullet/maven-metadata.xml
https://repo1.maven.org/maven2/org/jmonkeyengine/jme3-jbullet/
https://mvnrepository.com/artifact/cz.advel.jbullet/jbullet/org/jmonkeyengine/jme3-jbullet/maven-metadata.xml
https://mvnrepository.com/artifact/cz.advel.jbullet/jbullet/org/jmonkeyengine/jme3-jbullet/
Required by:
:spaceworld:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 13.407 secs
It is beyond grotesque that I must learn 2 new build systems when it worked without a build system.