Building golo project: how to add dependencies?
Baby question: How can I add missing dependencies to build maven or gradle golo project?
Currently gradle build command failed with this:
Execution failed for task ':compileGolo'.
> Could not resolve all dependencies for configuration ':golo'.
> Could not find org.eclipse.golo:golo:3.2.0-SNAPSHOT.
Searched in the following locations:
https://repo1.maven.org/maven2/org/eclipse/golo/golo/3.2.0-SNAPSHOT/maven-metadata.xml
https://repo1.maven.org/maven2/org/eclipse/golo/golo/3.2.0-SNAPSHOT/golo-3.2.0-SNAPSHOT.pom
https://repo1.maven.org/maven2/org/eclipse/golo/golo/3.2.0-SNAPSHOT/golo-3.2.0-SNAPSHOT.jar
remark: It's not written in documentation, but I think we need at least version 3 of Gradle
Snapshot versions aren't uploaded to Bintray (and Maven Central too) but the '3.2.0-M3' is avaiable.
If you really want to get golo snapshot artifacts you can add the Eclipse maven repository in your build:
repositories {
mavenCentral()
maven {
url "https://repo.eclipse.org/content/repositories/snapshots/"
}
}
@Artpej I must to bookmark this issue (I always forgot it)
@jponge perhaps this is something to add to the documentation or @yloiseau to «Real World Golo» before closing this issue
But I got a new error about jcommander dependency
> Could not resolve all dependencies for configuration ':golo'.
> Could not find com.beust:jcommander:1.55.
maybe try to add jcenter too:
repositories {
jcenter()
mavenCentral()
maven {
url "https://repo.eclipse.org/content/repositories/snapshots/"
}
}
:( java.lang.ClassNotFoundException: fr.insalyon.citi.golo.compiler.GoloCompiler
with SNAPSHOT and M3
For the record @Artpej is right.
@k33g in the docs we could indeed have a note on our repos and how to reach them from Maven or Gradle. Fancy a PR?