Availability of 2.5.0 groovy-all in Maven Central

classic Classic list List threaded Threaded
16 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Availability of 2.5.0 groovy-all in Maven Central

Mike Thomsen
Any release date for when the groovy-all artifact will be accessible from Maven Central? When I tried to upgrade to 2.5.0 and looked there, it showed that the jar was not available yet.

Thanks,

Mike
Reply | Threaded
Open this post in threaded view
|

Re: Availability of 2.5.0 groovy-all in Maven Central

Andres Almiray
I believe groovy-all.jar is no more. Instead we get a super POM groovy-all.pom that describes all individual modules.

Sent from my primitive Tricorder

> On 3 Jun 2018, at 16:10, Mike Thomsen <[hidden email]> wrote:
>
> Any release date for when the groovy-all artifact will be accessible from Maven Central? When I tried to upgrade to 2.5.0 and looked there, it showed that the jar was not available yet.
>
> Thanks,
>
> Mike
Reply | Threaded
Open this post in threaded view
|

Re: Availability of 2.5.0 groovy-all in Maven Central

Daniel.Sun
In reply to this post by Mike Thomsen
Hi Mike,

FYI, http://groovy-lang.org/download.html

```
The core plus all the modules. Also includes jarjar'ed versions of Antlr,
ASM, Commons-CLI. In order to cater to the module system of Java 9+, only
the individual jar files of the core and all modules will be provided since
Groovy 2.5.0, i.e. the fat jar file groovy-all-x.y.z.jar will not be
available. Optional dependencies are marked as optional. You may need to
include some of the optional dependencies to use some features of Groovy,
e.g. AntBuilder, GroovyMBeans...
```

In short, fat jar file(i.e. groovy-all.jar) has not been provided since
Groovy 2.5.0, but you still can use `compile
'org.codehaus.groovy:groovy-all:x.y.z'` to get all the individual jar files.

Cheers,
Daniel.Sun




--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Daniel Sun
Apache Groovy committer

Blog: http://blog.sunlan.me
Twitter: @daniel_sun
Reply | Threaded
Open this post in threaded view
|

Re: Availability of 2.5.0 groovy-all in Maven Central

Robert Stagner
Daniel,

How should this be addressed in the POM file, for those of us using Maven to grab groovy-all?

I tried the simple coordinates like

<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.5.0</version>
</dependency>
but that did not work for me.

On Sun, Jun 3, 2018 at 8:13 AM Daniel.Sun <[hidden email]> wrote:
Hi Mike,

FYI, http://groovy-lang.org/download.html

```
The core plus all the modules. Also includes jarjar'ed versions of Antlr,
ASM, Commons-CLI. In order to cater to the module system of Java 9+, only
the individual jar files of the core and all modules will be provided since
Groovy 2.5.0, i.e. the fat jar file groovy-all-x.y.z.jar will not be
available. Optional dependencies are marked as optional. You may need to
include some of the optional dependencies to use some features of Groovy,
e.g. AntBuilder, GroovyMBeans...
```

In short, fat jar file(i.e. groovy-all.jar) has not been provided since
Groovy 2.5.0, but you still can use `compile
'org.codehaus.groovy:groovy-all:x.y.z'` to get all the individual jar files.

Cheers,
Daniel.Sun




--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Reply | Threaded
Open this post in threaded view
|

Re: Availability of 2.5.0 groovy-all in Maven Central

Daniel.Sun
Hi Robert,

   I'm using "Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426;
2017-04-04T03:39:06+08:00)", and the following pom file works well, please
give it a try.

```
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>me.sunlan</groupId>
    <artifactId>try-groovy-via-mvn</artifactId>
    <version>1.0-SNAPSHOT</version>

    <dependencies>
        <dependency>
            <groupId>org.codehaus.groovy</groupId>
            <artifactId>groovy-all</artifactId>
            <version>2.5.0</version>
        </dependency>
    </dependencies>
</project>
```

<http://groovy.329449.n5.nabble.com/file/t340716/trygroovy250viamvn.png>

Cheers,
Daniel.Sun




--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Daniel Sun
Apache Groovy committer

Blog: http://blog.sunlan.me
Twitter: @daniel_sun
Reply | Threaded
Open this post in threaded view
|

Re: Availability of 2.5.0 groovy-all in Maven Central

Daniel.Sun
The original picture:
<http://groovy.329449.n5.nabble.com/file/t340716/trygroovy250viamvn.png>

Cheers,
Daniel.Sun




-----
Daniel Sun

Apache Groovy committer

Blog: http://blog.sunlan.me 

Twitter: @daniel_sun

--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Daniel Sun
Apache Groovy committer

Blog: http://blog.sunlan.me
Twitter: @daniel_sun
Reply | Threaded
Open this post in threaded view
|

Re: Availability of 2.5.0 groovy-all in Maven Central

Mike Thomsen
I'm running Maven 3.5.0 and it didn't resolve when I tried that POM:

[ERROR] Failed to execute goal on project try-groovy-via-mvn: Could not resolve dependencies for project me.sunlan:try-groovy-via-mvn:jar:1.0-SNAPSHOT: Failure to find org.codehaus.groovy:groovy-all:jar:2.5.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

On Sun, Jun 3, 2018 at 8:34 PM Daniel.Sun <[hidden email]> wrote:
The original picture:
<http://groovy.329449.n5.nabble.com/file/t340716/trygroovy250viamvn.png>

Cheers,
Daniel.Sun




-----
Daniel Sun

Apache Groovy committer

Blog: http://blog.sunlan.me

Twitter: @daniel_sun

--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Reply | Threaded
Open this post in threaded view
|

Re: Availability of 2.5.0 groovy-all in Maven Central

Daniel.Sun
Please add `<type>pom</type>` and try again, here is the complete pom file:

```
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>me.sunlan</groupId>
    <artifactId>try-groovy-via-mvn</artifactId>
    <version>1.0-SNAPSHOT</version>

    <dependencies>
        <dependency>
            <groupId>org.codehaus.groovy</groupId>
            <artifactId>groovy-all</artifactId>
            <version>2.5.0</version>
            <type>pom</type>
        </dependency>
    </dependencies>
</project>
```

and here is result of `mvn dependency:tree`:
```
[INFO] me.sunlan:try-groovy-via-mvn:jar:1.0-SNAPSHOT
[INFO] \- org.codehaus.groovy:groovy-all:pom:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-ant:jar:2.5.0:compile
[INFO]    |  +- org.apache.ant:ant:jar:1.9.9:compile
[INFO]    |  +- org.apache.ant:ant-junit:jar:1.9.9:runtime
[INFO]    |  +- org.apache.ant:ant-launcher:jar:1.9.9:compile
[INFO]    |  \- org.apache.ant:ant-antlr:jar:1.9.9:runtime
[INFO]    +- org.codehaus.groovy:groovy-bsf:jar:2.5.0:compile
[INFO]    |  +- bsf:bsf:jar:2.4.0:compile
[INFO]    |  \- commons-logging:commons-logging:jar:1.2:compile
[INFO]    +- org.codehaus.groovy:groovy-cli-picocli:jar:2.5.0:compile
[INFO]    |  \- info.picocli:picocli:jar:3.0.2:compile
[INFO]    +- org.codehaus.groovy:groovy-console:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-datetime:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-docgenerator:jar:2.5.0:compile
[INFO]    |  \- com.thoughtworks.qdox:qdox:jar:1.12.1:compile
[INFO]    +- org.codehaus.groovy:groovy-groovydoc:jar:2.5.0:compile
[INFO]    |  \- org.codehaus.groovy:groovy-dateutil:jar:2.5.0:runtime
[INFO]    +- org.codehaus.groovy:groovy-groovysh:jar:2.5.0:compile
[INFO]    |  \- jline:jline:jar:2.14.6:compile
[INFO]    +- org.codehaus.groovy:groovy-jmx:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-json:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-jsr223:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-macro:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-nio:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-servlet:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-sql:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-swing:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-templates:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-test:jar:2.5.0:compile
[INFO]    |  \- junit:junit:jar:4.12:compile
[INFO]    |     \- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO]    +- org.codehaus.groovy:groovy-test-junit5:jar:2.5.0:compile
[INFO]    |  +- org.junit.platform:junit-platform-launcher:jar:1.2.0:compile
[INFO]    |  |  +- org.apiguardian:apiguardian-api:jar:1.0.0:compile
[INFO]    |  |  \-
org.junit.platform:junit-platform-engine:jar:1.2.0:compile
[INFO]    |  |     +-
org.junit.platform:junit-platform-commons:jar:1.2.0:compile
[INFO]    |  |     \- org.opentest4j:opentest4j:jar:1.1.0:compile
[INFO]    |  \- org.junit.jupiter:junit-jupiter-engine:jar:5.2.0:runtime
[INFO]    |     \- org.junit.jupiter:junit-jupiter-api:jar:5.2.0:runtime
[INFO]    +- org.codehaus.groovy:groovy-testng:jar:2.5.0:compile
[INFO]    |  \- org.testng:testng:jar:6.9.10:runtime
[INFO]    |     \- com.beust:jcommander:jar:1.48:runtime
[INFO]    \- org.codehaus.groovy:groovy-xml:jar:2.5.0:compile
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 02:47 min
[INFO] Finished at: 2018-06-04T09:42:43+08:00
[INFO] Final Memory: 17M/216M
[INFO]
------------------------------------------------------------------------
```

No matter it works or not, please let me know.

Cheers,
Daniel.Sun



-----
Daniel Sun

Apache Groovy committer

Blog: http://blog.sunlan.me 

Twitter: @daniel_sun

--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Daniel Sun
Apache Groovy committer

Blog: http://blog.sunlan.me
Twitter: @daniel_sun
Reply | Threaded
Open this post in threaded view
|

Re: Availability of 2.5.0 groovy-all in Maven Central

Keith Suderman
Daniel beat me to it.  I tried using the Groovy Eclipse compiler (2.5.0-01) and I need to explicitly set the type to 'pom' or I get a not found message for groovy-all:jar:2.5.0

- Keith


On Jun 3, 2018, at 9:47 PM, Daniel.Sun <[hidden email]> wrote:

Please add `<type>pom</type>` and try again, here is the complete pom file:

```
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>

   <groupId>me.sunlan</groupId>
   <artifactId>try-groovy-via-mvn</artifactId>
   <version>1.0-SNAPSHOT</version>

   <dependencies>
       <dependency>
           <groupId>org.codehaus.groovy</groupId>
           <artifactId>groovy-all</artifactId>
           <version>2.5.0</version>
           <type>pom</type>
       </dependency>
   </dependencies>
</project>
```

and here is result of `mvn dependency:tree`:
```
[INFO] me.sunlan:try-groovy-via-mvn:jar:1.0-SNAPSHOT
[INFO] \- org.codehaus.groovy:groovy-all:pom:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-ant:jar:2.5.0:compile
[INFO]    |  +- org.apache.ant:ant:jar:1.9.9:compile
[INFO]    |  +- org.apache.ant:ant-junit:jar:1.9.9:runtime
[INFO]    |  +- org.apache.ant:ant-launcher:jar:1.9.9:compile
[INFO]    |  \- org.apache.ant:ant-antlr:jar:1.9.9:runtime
[INFO]    +- org.codehaus.groovy:groovy-bsf:jar:2.5.0:compile
[INFO]    |  +- bsf:bsf:jar:2.4.0:compile
[INFO]    |  \- commons-logging:commons-logging:jar:1.2:compile
[INFO]    +- org.codehaus.groovy:groovy-cli-picocli:jar:2.5.0:compile
[INFO]    |  \- info.picocli:picocli:jar:3.0.2:compile
[INFO]    +- org.codehaus.groovy:groovy-console:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-datetime:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-docgenerator:jar:2.5.0:compile
[INFO]    |  \- com.thoughtworks.qdox:qdox:jar:1.12.1:compile
[INFO]    +- org.codehaus.groovy:groovy-groovydoc:jar:2.5.0:compile
[INFO]    |  \- org.codehaus.groovy:groovy-dateutil:jar:2.5.0:runtime
[INFO]    +- org.codehaus.groovy:groovy-groovysh:jar:2.5.0:compile
[INFO]    |  \- jline:jline:jar:2.14.6:compile
[INFO]    +- org.codehaus.groovy:groovy-jmx:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-json:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-jsr223:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-macro:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-nio:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-servlet:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-sql:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-swing:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-templates:jar:2.5.0:compile
[INFO]    +- org.codehaus.groovy:groovy-test:jar:2.5.0:compile
[INFO]    |  \- junit:junit:jar:4.12:compile
[INFO]    |     \- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO]    +- org.codehaus.groovy:groovy-test-junit5:jar:2.5.0:compile
[INFO]    |  +- org.junit.platform:junit-platform-launcher:jar:1.2.0:compile
[INFO]    |  |  +- org.apiguardian:apiguardian-api:jar:1.0.0:compile
[INFO]    |  |  \-
org.junit.platform:junit-platform-engine:jar:1.2.0:compile
[INFO]    |  |     +-
org.junit.platform:junit-platform-commons:jar:1.2.0:compile
[INFO]    |  |     \- org.opentest4j:opentest4j:jar:1.1.0:compile
[INFO]    |  \- org.junit.jupiter:junit-jupiter-engine:jar:5.2.0:runtime
[INFO]    |     \- org.junit.jupiter:junit-jupiter-api:jar:5.2.0:runtime
[INFO]    +- org.codehaus.groovy:groovy-testng:jar:2.5.0:compile
[INFO]    |  \- org.testng:testng:jar:6.9.10:runtime
[INFO]    |     \- com.beust:jcommander:jar:1.48:runtime
[INFO]    \- org.codehaus.groovy:groovy-xml:jar:2.5.0:compile
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 02:47 min
[INFO] Finished at: 2018-06-04T09:42:43+08:00
[INFO] Final Memory: 17M/216M
[INFO]
------------------------------------------------------------------------
```

No matter it works or not, please let me know.

Cheers,
Daniel.Sun



-----
Daniel Sun

Apache Groovy committer

Blog: http://blog.sunlan.me

Twitter: @daniel_sun

--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html



----------------------
Keith Suderman
Research Associate
Department of Computer Science
Vassar College, Poughkeepsie NY




Reply | Threaded
Open this post in threaded view
|

Re: Availability of 2.5.0 groovy-all in Maven Central

Daniel.Sun
Hi Keith,

    I'll add the `<type>pom</type>` to the doco on "Download" page.

    P.S. I'm using IntelliJ IDEA. Even if I don't add `<type>pom</type>`, it
works well too. But if I run via command line, I'll get same error as yours.

Cheers,
Daniel.Sun




-----
Daniel Sun
Apache Groovy committer
Blog: http://blog.sunlan.me 
Twitter: @daniel_sun

--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Daniel Sun
Apache Groovy committer

Blog: http://blog.sunlan.me
Twitter: @daniel_sun
12