Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (755)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  [libgdx/gradle] Won't load gdx nightlies  (Read 2224 times)
0 Members and 1 Guest are viewing this topic.
Offline atombrot
« Posted 2014-04-12 19:51:16 »

I'm trying to convert my libgdx project to the new gradle build format. I'm more or less done, but I'm running into a strange problem. I used gradle for the first time today, so it might be that I overlooked something obvious.

What I want is that my project uses the libgdx nightlies. When I check out the project on my build server and build it with gradle this seems to be working fine. But on my development machine it looks like gradle is using the stable releases instead of the nightlies.

Why I think that? I got some compile errors when building with gradle on my machine. I knew the places in the code, because I had changed them, when I updated my project from the stable 0.9.9 release to the nightlies. All of my changes had to be reverted...

One error I get is related with the scene2d actor SelectBox. I was using the class with a generic paramter, but now suddenly the compiler tells me, that select box does not has any generic types. I checked in the gdx github and it seems that the changes that introduced the generic type were added this february. I also checked some other cases with the same result, that the gdx lib does not match the code on github.

Here is my build.gradle file:

What I have tried so far:
- Refresh references via eclipse
- Refresh references via command line
- Clear the gradle cache
- Clone the repository once more on both systems (dev machine / build server) and testing the gradle build with that version.

Everything yielded the same results and what's giving me most headaches is that the behavior is different on the server. I would appreciate the help, if somebody knows what I'm doing wrong.
Offline atombrot
« Reply #1 - Posted 2014-04-12 21:15:37 »

I think I have found the problem. I have tried to setup libgdx with maven some time ago, but I didn't manage to get it running, so (after I wasted some time) i decided to not use maven. From then I had an older snapshot release in my local maven repository. I wasn't aware of that. After deleting the badlogicgames folder in my local repo, gradle loaded the most recent nightlies.

Now this leads me to another question. How do I tell gradle to force update the snapshot releases? I tried the refresh references buttons in eclipse and in the command line, but it seems that this didn't really work. Any clues?
Pages: [1]
  ignore  |  Print  

DesertCoockie (52 views)
2018-05-13 18:23:11

nelsongames (83 views)
2018-04-24 18:15:36

nelsongames (74 views)
2018-04-24 18:14:32

ivj94 (759 views)
2018-03-24 14:47:39

ivj94 (87 views)
2018-03-24 14:46:31

ivj94 (643 views)
2018-03-24 14:43:53

Solater (102 views)
2018-03-17 05:04:08

nelsongames (184 views)
2018-03-05 17:56:34

Gornova (426 views)
2018-03-02 22:15:33

buddyBro (1086 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!