Gradlew, Could not resolve all dependencies for configuration ':engine:runtime'

BrownWIzard

New Member
Hi guys,

I just found out about terasology... I just forked the project and cloned it in my local git.

I am familiar with git and java, but not gradlew... once I cloned the master branch I tried to execute `gradlew idea` (and even `gradlew eclipse`) but both attempts failed.. gradlew says it could not GET some dependencies..

Can somebody help?

Code:
C:\Users\Rosdi\Documents\GitHub\Terasology [master]> ./gradlew.bat eclipse
Processing facade facades:PC, including it as a sub-project
Module modules:Core has a build file so counting it complete and including it
Iterating over something else: engine
Iterating over something else: engine-tests
Iterating over something else: facades
Iterating over something else: libs
Iterating over something else: meta
Iterating over something else: modules
Iterating over subprojects - Found a facade: PC
Iterating over subprojects - Found a module: Core
Error listing versions of org.terasology:CrashReporter using class org.gradle.api.internal.artifacts.repositories.resolver.MavenVersionLister$1. Will attempt an alternate way to list versions. This behaviour has been deprecated and is scheduled to be removed in Gradle 2.0

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Rosdi\Documents\GitHub\Terasology\engine\build.gradle' line: 144

* What went wrong:
A problem occurred evaluating project ':engine'.
> Could not resolve all dependencies for configuration ':engine:runtime'.
   > Could not resolve org.terasology:gestalt-module:1.2.3-SNAPSHOT.
     Required by:
         Terasology:engine:unspecified
      > Unable to load Maven meta-data from http://artifactory.terasology.org:8081/artifactory/repo/org/terasology/gestalt-module/1.2.3-SNAPSHOT/maven-metadata.xml.
         > Could not GET 'http://artifactory.terasology.org:8081/artifactory/repo/org/terasology/gestalt-module/1.2.3-SNAPSHOT/maven-metadata.xml'.
            > Connection to http://artifactory.terasology.org:8081 refused
   > Could not resolve org.eaxy:eaxy:0.1.
     Required by:
         Terasology:engine:unspecified
      > Could not GET 'http://artifactory.terasology.org:8081/artifactory/repo/org/eaxy/eaxy/0.1/eaxy-0.1.pom'.
         > Connection to http://artifactory.terasology.org:8081 refused
   > Could not resolve org.newdawn.slick:slick:237.
     Required by:
         Terasology:engine:unspecified
      > Could not GET 'http://artifactory.terasology.org:8081/artifactory/repo/org/newdawn/slick/slick/237/slick-237.pom'.
         > Connection to http://artifactory.terasology.org:8081 refused
   > Could not resolve org.terasology.bullet:tera-bullet:1.0.3.
     Required by:
         Terasology:engine:unspecified
      > Could not GET 'http://artifactory.terasology.org:8081/artifactory/repo/org/terasology/bullet/tera-bullet/1.0.3/tera-bullet-1.0.3.pom'.
         > Connection to http://artifactory.terasology.org:8081 refused
   > Could not resolve ec.util:MersenneTwister:20.
     Required by:
         Terasology:engine:unspecified
      > Could not GET 'http://artifactory.terasology.org:8081/artifactory/repo/ec/util/MersenneTwister/20/MersenneTwister-20.pom'.
         > Connection to http://artifactory.terasology.org:8081 refused
   > Could not resolve org.terasology:CrashReporter:+.
     Required by:
         Terasology:engine:unspecified
      > Failed to list versions for org.terasology:CrashReporter.
         > Could not list versions using M2 pattern 'http://artifactory.terasology.org:8081/artifactory/repo/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]'.
            > Could not GET 'http://artifactory.terasology.org:8081/artifactory/repo/org/terasology/CrashReporter/'.
               > Connection to http://artifactory.terasology.org:8081 refused

* 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: 29.351 secs
C:\Users\Rosdi\Documents\GitHub\Terasology [master]> .\gradlew -v

------------------------------------------------------------
Gradle 1.10
------------------------------------------------------------

Build time:   2013-12-17 09:28:15 UTC
Build number: none
Revision:     36ced393628875ff15575fa03d16c1349ffe8bb6

Groovy:       1.8.6
Ant:          Apache Ant(TM) version 1.9.2 compiled on July 8 2013
Ivy:          2.2.0
JVM:          1.8.0_25 (Oracle Corporation 25.25-b02)
OS:           Windows 8.1 6.3 x86

C:\Users\Rosdi\Documents\GitHub\Terasology [master]>
 

Cervator

Org Co-Founder & Project Lead
Contributor
Design
Logistics
SpecOps
Yep sorry about that - Artifactory ran out of memory :)

I should put in a weekly restart or something, just in case.
 

BrownWIzard

New Member
Thanks!.. I have managed to build it... but the game plays extremely slow on my pc? It is unplayable.. I tested this with the terasology launcher..
I have intel core i5 and a crappy intel hd graphic.. is that the culprit? I can play minecraft fine at lowest settings though...
 

Cervator

Org Co-Founder & Project Lead
Contributor
Design
Logistics
SpecOps
We've had pretty poor experiences with Intel graphics, yeah :(

It might be possible for us to better target the sources of performance trouble with an Intel HD setup that does work (usually lower ends just crash or fail to work while higher run fine). Three things to try:
  1. Look in the "rendering" section of the game config file (config.cfg in the game data dir, which when running from source is the same dir as project root) and toggle everything "true" to "false" - some of the options have no in-game settings yet
  2. Start a world with no modules or gameplay template active, so just with the Core module enabled and maybe use heightmap or even flat instead of perlin
  3. Press F3 to get into debug mode, then F4 to get some added metrics. What's the top culprits eating processor time?
 

Amm

New Member
Hi guys,

I am having the same problem BrownWizard experienced, it has been persistent for a few weeks. I did not start looking for a solution until today. I periodically tried to run the command ./gradlew idea. I understood that the server that hosts those files were offline, but upon seeing this thread, I wonder if it maybe is a problem on my side, however my problem looks the same:


Code:
$ ./gradlew idea
Module modules:Core has a build file so counting it complete and including it
Processing facade facades:PC, including it as a sub-project
Iterating over subprojects - Found a facade: PC
Iterating over subprojects - Found a module: Core

FAILURE: Build failed with an exception.

* Where:
Build file '/home/abraham/workspace/Terasology/engine/build.gradle' line: 142

* What went wrong:
A problem occurred evaluating project ':engine'.
> Could not resolve all dependencies for configuration ':engine:runtime'.
   > Could not resolve java3d:vecmath:1.5.2.
     Required by:
         Terasology:engine:unspecified
      > Could not GET 'http://www.movingblocks.net:8081/artifactory/repo/java3d/vecmath/1.5.2/vecmath-1.5.2.pom'.
         > www.movingblocks.net: Name or service not known
   > Could not resolve org.newdawn.slick:slick:237.
     Required by:
         Terasology:engine:unspecified
      > Could not GET 'http://www.movingblocks.net:8081/artifactory/repo/org/newdawn/slick/slick/237/slick-237.pom'.
         > www.movingblocks.net
   > Could not resolve org.terasology.bullet:tera-bullet:1.0.0.
     Required by:
         Terasology:engine:unspecified
      > Could not GET 'http://www.movingblocks.net:8081/artifactory/repo/org/terasology/bullet/tera-bullet/1.0.0/tera-bullet-1.0.0.pom'.
         > www.movingblocks.net
   > Could not resolve ec.util:MersenneTwister:20.
     Required by:
         Terasology:engine:unspecified
      > Could not GET 'http://www.movingblocks.net:8081/artifactory/repo/ec/util/MersenneTwister/20/MersenneTwister-20.pom'.
         > www.movingblocks.net

* 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: 6.372 secs
thanks in advance.
 

Cervator

Org Co-Founder & Project Lead
Contributor
Design
Logistics
SpecOps
Hi @Amm - yes it does look like your problem is different, as http://artifactory.terasology.org is currently available and is up at least most the time :)

However, in your log Gradle is trying to retrieve stuff from http://www.movingblocks.net:8081/artifactory which is an old address that no longer works, so you probably have some old code in place locally that hasn't gotten the URL update yet.

Try to pull the latest code from our main repo or just reclone. Try gradlew again and see if it works :)

If you have old modules locally they may also have outdated build.gradle files. You can either refetch those (easier) or update their build.gradle files from the Core module after you update the main project. Usually "gradlew refresh" will do that for you, but if Gradle fails then that doesn't work.
 
Top