Re: Problem lading groovy-all for version 4.0.0

Paul King <[email protected]>
Newsgroups gmane.comp.lang.groovy.user
Message-ID <CAMbkE7Sd=JzEwCS--a_kGThySxibaQ3h1P=s_gZjR-EbeV8rEg@mail.gmail.com>
Hi Jon, I would have thought that should work. Does adding "@pom" as per
the following help:

https://stackoverflow.com/questions/55575065/how-to-use-pom-type-dependency-in-gradle

Cheers, Paul.


<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Sat, Mar 5, 2022 at 7:10 PM Kerridge, Jon <[email protected]>
wrote:

> Hi,
>
> I am wanting to move from Groovy 3 to 4.
>
> I am using Intellij, Gradle and openjdk 11
>
> I created a new gradle project for Java and Groovy.
>
> I modified the automatically generated build file to get groovy-all for
> version 4.0.0 as follows
>
>
>
> plugins
> *{     *id 'groovy'
>     id 'java'
>
>
> *} *group 'org.example'
> version '1.0-SNAPSHOT'
>
> repositories
> *{     *mavenCentral()
>
>
> *} *dependencies
> *{     *implementation 'org.apache.groovy:groovy-all:4.0.0'
>     testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
>     testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
>
>
> *} *test
> *{     *useJUnitPlatform()
> *}*
>
>
>
> but it failed with
>
>    - Could not resolve org.apache.groovy:groovy-all:4.0.0 for
>    Groovy4Test:main  (Groovy4Test is the project name)
>    -
>
> If I replace ‘groovy-all’ with ‘groovy’ it works!
>
>
>
> I know I have been lazy in not working out the modules I require but I was
> just wanting to make the transition as easy as possible.
>
>
>
> What have I done wrong?
>
>
>
> Jon
>
>
>
> Jon Kerridge PhD FBCS FHEA CITP CEng
>
> Emeritus Professor of Computing
> School of Computing
> Edinburgh Napier University
> Merchiston Campus
>
> 10 Colinton Road
>
> Edinburgh
>
> EH10 5DT
>
>
>
> Email: [email protected]
>
>
>
> This message and its attachment(s) are intended for the addressee(s) only
> and should not be read, copied, disclosed, forwarded or relied upon by any
> person other than the intended addressee(s) without the permission of the
> sender. If you are not the intended addressee you must not take any action
> based on this message and its attachment(s) nor must you copy or show them
> to anyone. Please respond to the sender and ensure that this message and
> its attachment(s) are deleted.
>
> It is your responsibility to ensure that this message and its
> attachment(s) are scanned for viruses or other defects. Edinburgh Napier
> University does not accept liability for any loss or damage which may
> result from this message or its attachment(s), or for errors or omissions
> arising after it was sent. Email is not a secure medium. Emails entering
> Edinburgh Napier University's system are subject to routine monitoring and
> filtering by Edinburgh Napier University.
>
> Edinburgh Napier University is a registered Scottish charity. Registration
> number SC018373
>
> BSL users can contact us via contactSCOTLAND-BSL, the on-line British Sign
> Language interpreting service. Find out more on the contactSCOTLAND website.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.