Importing Gradle project failed due to an error connecting to the Gradle build.
Could not fetch model of type 'EclipseProject' using Gradle distribution
'https://services.gradle.org/distributions/gradle-2.6-rc-1-bin.zip'.
Could not resolve all dependencies for configuration ':testRuntime'.
Configuration with name 'default' not found."
Build in build/distributions/L2J_Server_2015-08-03.zip
:clean UP-TO-DATE
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Could not find tools.jar
* 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: 0.761 secs
So far if anyone is interested a guide in details:
1) Install Gradle Buildship
* Open Eclipse
* Go to Help menu -> Eclipse Marketplace
* Search for Gradle Buildship
* Install the first plugin that appears
* Restart eclipse when it asks
2) Clone project
* Clone https://github.com/L2J/L2J_Server.git and https://github.com/L2J/L2J_DataPack.git as you would normally do
* Go to File menu -> Import...
* Expand Gradle -> Gradle Project
* Select the directory where you cloned L2J_Server and click finish
* Once done do the same to L2J_DataPack
3) Build project
* In the line of tabs (where you see Console, Problems etc) press Gradle Tasks
* Right click the project and click Run Default Gradle Tasks
Check this > L2J dont have 42 libs
Gradle is compiling, but this wrong, but is joining other libs with the project L2J, before upgrading L2J was 15 libs only
The versions of the libs are also previous...
Before: Server 7 MB
Importing Gradle project failed due to an error connecting to the Gradle build.
Could not fetch model of type 'EclipseProject' using Gradle distribution
'https://services.gradle.org/distributions/gradle-2.6-rc-1-bin.zip'.
Could not resolve all dependencies for configuration ':testRuntime'.
Configuration with name 'default' not found."
Build in build/distributions/L2J_Server_2015-08-03.zip
:clean UP-TO-DATE
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Could not find tools.jar
* 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: 0.761 secs
+1
Last edited by u3games on Wed Aug 05, 2015 4:49 pm, edited 1 time in total.
Importing Gradle project failed due to an error connecting to the Gradle build.
Could not fetch model of type 'EclipseProject' using Gradle distribution
'https://services.gradle.org/distributions/gradle-2.6-rc-1-bin.zip'.
Could not resolve all dependencies for configuration ':testRuntime'.
Configuration with name 'default' not found."
Build in build/distributions/L2J_Server_2015-08-03.zip
:clean UP-TO-DATE
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Could not find tools.jar
* 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: 0.761 secs
+1
Fix!
Change "build" and "settings", change "L2J_Server" for name of proyect. My case... "server_x10_core"
Avanael92 wrote:I didn't change anything, but I'm getting another error when importing datapack:
Now I'm having two L2J_Server in Gradle Tasks, but one in Navigator. Anyone got this too?
1- I tried to do & same error
2- I have this error
Description Resource Path Location Type
A cycle was detected in the build path of project 'L2J_DataPack'. The cycle consists of projects {L2J_DataPack, L2J_Server} L2J_DataPack Build path Build Path Problem
Description Resource Path Location Type
A cycle was detected in the build path of project 'L2J_Server'. The cycle consists of projects {L2J_DataPack, L2J_Server} L2J_Server Build path Build Path Problem