buildship
buildship copied to clipboard
Gradle Plugin Broken Since 24.12
Copied from https://github.com/eclipse-platform/eclipse.platform/issues/1880
Let's make sure issue is not already fixed in latest builds first.
- [x] I verified I can reproduce this issue against latest Integration Build of Eclipse SDK (Tested with 24.12 & 25.03
Steps to reproduce
From a fresh installation and clean workspace:
- Import any Gradle project that has a few dependencies.
- Close the project or the IDE
- Make gradle to clean its cache.
- Open the project/IDE
- Try to refresh gradle so it tries to resolve the dependencies.
I expected: that it does resolve the depenencies.
But got: It failed.
Here is some relevant log output
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'IC2Classic'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve net.minecraftforge.gradle:ForgeGradle:5.1.+.
Required by:
project :
> Failed to list versions for net.minecraftforge.gradle:ForgeGradle.
> Unable to load Maven meta-data from https://maven.minecraftforge.net/net/minecraftforge/gradle/ForgeGradle/maven-metadata.xml.
> org.apache.http.ssl.SSLInitializationException: NONE (Das System kann die angegebene Datei nicht finden)
> Failed to list versions for net.minecraftforge.gradle:ForgeGradle.
> Unable to load Maven meta-data from https://repo.spongepowered.org/maven/net/minecraftforge/gradle/ForgeGradle/maven-metadata.xml.
> org.apache.http.ssl.SSLInitializationException: NONE (Das System kann die angegebene Datei nicht finden)
> Failed to list versions for net.minecraftforge.gradle:ForgeGradle.
> Unable to load Maven meta-data from https://plugins.gradle.org/m2/net/minecraftforge/gradle/ForgeGradle/maven-metadata.xml.
> org.apache.http.ssl.SSLInitializationException: NONE (Das System kann die angegebene Datei nicht finden)
> Failed to list versions for net.minecraftforge.gradle:ForgeGradle.
> Unable to load Maven meta-data from https://repo.maven.apache.org/maven2/net/minecraftforge/gradle/ForgeGradle/maven-metadata.xml.
> org.apache.http.ssl.SSLInitializationException: NONE (Das System kann die angegebene Datei nicht finden)
> Could not resolve org.spongepowered:mixingradle:0.7-SNAPSHOT.
Required by:
project :
> Could not resolve org.spongepowered:mixingradle:0.7-SNAPSHOT.
> Unable to load Maven meta-data from https://repo.spongepowered.org/maven/org/spongepowered/mixingradle/0.7-SNAPSHOT/maven-metadata.xml.
> org.apache.http.ssl.SSLInitializationException: NONE (Das System kann die angegebene Datei nicht finden)
> Could not resolve org.spongepowered:mixingradle:0.7-SNAPSHOT.
> Unable to load Maven meta-data from https://maven.minecraftforge.net/org/spongepowered/mixingradle/0.7-SNAPSHOT/maven-metadata.xml.
> org.apache.http.ssl.SSLInitializationException: NONE (Das System kann die angegebene Datei nicht finden)
> Could not resolve org.spongepowered:mixingradle:0.7-SNAPSHOT.
> Unable to load Maven meta-data from https://plugins.gradle.org/m2/org/spongepowered/mixingradle/0.7-SNAPSHOT/maven-metadata.xml.
> org.apache.http.ssl.SSLInitializationException: NONE (Das System kann die angegebene Datei nicht finden)
> Could not resolve org.spongepowered:mixingradle:0.7-SNAPSHOT.
> Unable to load Maven meta-data from https://repo.maven.apache.org/maven2/org/spongepowered/mixingradle/0.7-SNAPSHOT/maven-metadata.xml.
> org.apache.http.ssl.SSLInitializationException: NONE (Das System kann die angegebene Datei nicht finden)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
CONFIGURE FAILED in 620ms
Tested under this environment:
- Windows 10-11 both on latest versions.
- Eclipse 25.03 Version installed 5 days ago. Also when using the command line and running "gradlew.bat build" it works just fine and it will also fix IDE as well. Meaning its eclipse.
Community
- [x] I understand reporting an issue to this OSS project does not mandate anyone to fix it. Other contributors may consider the issue, or not, at their own convenience. The most efficient way to get it fixed is that I fix it myself and contribute it back as a good quality patch to the project.
I had this same issue and just figured out it is caused by having -Djavax.net.ssl.trustStore=NONE in the eclipse.ini file. Removing that line will resolve this issue as a work around
https://github.com/eclipse-buildship/buildship/issues/1337
@benjamin-king13 yep that fixed it. Thank you.