golo-lang icon indicating copy to clipboard operation
golo-lang copied to clipboard

Building golo project: how to add dependencies?

Open k33g opened this issue 9 years ago • 7 comments

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

k33g avatar Aug 21 '16 08:08 k33g

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 avatar Aug 21 '16 09:08 artpej

@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

k33g avatar Aug 21 '16 09:08 k33g

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.

k33g avatar Aug 21 '16 09:08 k33g

maybe try to add jcenter too:

repositories {
    jcenter()
    mavenCentral()
    maven {
       url "https://repo.eclipse.org/content/repositories/snapshots/"
    }
}

artpej avatar Aug 21 '16 09:08 artpej

:( java.lang.ClassNotFoundException: fr.insalyon.citi.golo.compiler.GoloCompiler

with SNAPSHOT and M3

k33g avatar Aug 21 '16 09:08 k33g

For the record @Artpej is right.

jponge avatar Aug 22 '16 20:08 jponge

@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?

jponge avatar Aug 22 '16 20:08 jponge