I’m having some trouble adding this library as a dependency in gradle: https://bitbucket.org/JamMaster/commandler/overview, it works it I try to add it in a maven project.
The (working) pom.xml
looks like this:
<project ...>
...
<repositories>
<repository>
<id>spinalcraft-repo</id>
<url>http://maven.spinalcraft.com</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.jam.commandler</groupId>
<artifactId>Commandler</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</project>
My attempt at the equivalent build.gradle
, but it doesn’t work:
...
repositories {
mavenCentral()
maven { url = "http://maven.spinalcraft.com" }
}
dependencies {
compile "com.jam.commandler:Commandler:1.0.0"
}
The gradle error message:
Warning:<i><b>root project 'tipsplugin': Unable to build Kotlin project configuration</b>
Details: java.lang.reflect.InvocationTargetException: null
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':compileClasspath'.
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.jam.commandler:Commandler:1.0.0.
Required by:
project :
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.jam.commandler:Commandler:1.0.0.
Caused by: org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.MetaDataParseException: Could not parse POM C:\Users\Karel\.m2\repository\com\jam\commandler\Commandler\1.0.0\Commandler-1.0.0.pom
Caused by: org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.</i>
Warning:<i><b>root project 'tipsplugin': Unable to build Kotlin project configuration</b>
Details: java.lang.reflect.InvocationTargetException: null
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':compileClasspath'.
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.jam.commandler:Commandler:1.0.0.
Required by:
project :
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.jam.commandler:Commandler:1.0.0.
Caused by: org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.MetaDataParseException: Could not parse POM C:\Users\Karel\.m2\repository\com\jam\commandler\Commandler\1.0.0\Commandler-1.0.0.pom
Caused by: org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.</i>