Hi there,
As the title suggest I have a dependency that is published on maven central. The dependency is org.apache.gossip:gossip:0.1.2-incubating
. When i try to build the project It is not resolved by the Gradle. However the jar has been resolved by the maven and is located in my .m2 folder. Therefore I can use maven to build. I managed to fix this by adding mavenLocal() in my repositories but in remote server such as Travis it can’t be built.
My build.gradle file looks as following:
repositories {
// maven { url "https://repo.maven.apache.org/maven2" }
mavenCentral()
//mavenLocal()
}
dependencies {
compile group: 'org.apache.gossip', name: 'gossip', version: '0.1.2-incubating'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.8.2'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.8.2'
compile group: 'com.google.guava', name: 'guava', version: '23.0'
compile group: 'org.yaml', name: 'snakeyaml', version: '1.18'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
What I tried:
- Clean caches
- Kill daemon
- Deleted gradle folders both on ~ and in project root
- Removed .m2
- Try Gradle 2.7 and 4.1
But it won’t build both in my machine and Travis.
Output of build:
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve org.apache.gossip:gossip:0.1.2-incubating.
Required by:
project :
> Could not resolve org.apache.gossip:gossip:0.1.2-incubating.
> Could not parse POM https://repo.maven.apache.org/maven2/org/apache/gossip/gossip/0.1.2-incubating/gossip-0.1.2-incubating.pom
> Could not find org.apache:apache:RELEASE.
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/apache/apache/RELEASE/apache-RELEASE.pom
https://repo.maven.apache.org/maven2/org/apache/apache/RELEASE/apache-RELEASE.jar
Could you please help me to solve this problem? Thanks!