The library in question is at 0.0.1-SNAPSHOT and doesn't seem to be published to a public Maven repository. What you can do is to build the library yourself (mvn install
) and then pull it into Gradle by declaring a mavenLocal()
repository.
Resolving hipchat gradle dependency
-
30-08-2022 - |
Question
Please pardon my ignorance. But I am trying to use hipchat api. I am trying to follow:
It has a pom.xml with following content:
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.hipchat</groupId>
<artifactId>jHipchat</artifactId>
<version>0.0.1-SNAPSHOT</version>
I want to have a gradle equivalent for it. Please help me. If I try to use the above group and name, then gradle build fails with :
- What went wrong: Could not resolve all dependencies for configuration ':compile'.
Could not find com.github.hipchat:jHipchat:0.0.1-SNAPSHOT. Required by: :new_core:unspecified
Please help.
Relevant parts of build.gradle:
buildscript {
repositories {
mavenCentral()
}
}
repositories {
mavenCentral()
}
dependencies {
compile group:'com.github.hipchat', name: 'jHipchat', version: '0.0.1-SNAPSHOT'
}
I tried git clone the hipchat source and did mvn package. But it could not build successfully with various failures.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow