Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gradle-tooling-api to shell script classpath #13919

Merged
merged 1 commit into from
Dec 14, 2024

Conversation

matrei
Copy link
Contributor

@matrei matrei commented Dec 12, 2024

Related to gh-13760

@matrei
Copy link
Contributor Author

matrei commented Dec 12, 2024

This gets us past the initial java.lang.NoClassDefFoundError: org/gradle/tooling/BuildCancelledExceptionproblem

$ ./gradlew assemble
$ unzip ./build/distributions/grails-7.0.0-SNAPSHOT.zip
$ ./grails-7.0.0-SNAPSHOT/bin/grails --version
| Grails Version: 7.0.0-SNAPSHOT
| JVM Version: 17.0.11

But when running grails it chokes on another problem:

$ ./grails-7.0.0-SNAPSHOT/bin/grails --stacktrace
| Error Error occurred running Grails CLI: Could not find artifact org.grails.profiles:angular:jar:${profiles-angular.version} in grailsCentral (https://repo.grails.org/grails/core) (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.grails.profiles:angular:jar:${profiles-angular.version} in grailsCentral (https://repo.grails.org/grails/core)
        at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:42)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:417)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:260)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:537)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:449)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:261)
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:353)
        at org.grails.cli.compiler.grape.MavenResolverGrapeEngine.resolve(MavenResolverGrapeEngine.java:292)
        at org.grails.cli.compiler.grape.MavenResolverGrapeEngine.grab(MavenResolverGrapeEngine.java:115)
        at org.grails.cli.compiler.grape.MavenResolverGrapeEngine.grab(MavenResolverGrapeEngine.java:107)
        at org.grails.cli.profile.repository.MavenProfileRepository.getAllProfiles(MavenProfileRepository.groovy:135)
        at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:240)
        at org.grails.cli.GrailsCli.main(GrailsCli.groovy:160)
| Error Error occurred running Grails CLI: Could not find artifact org.grails.profiles:angular:jar:${profiles-angular.version} in grailsCentral (https://repo.grails.org/grails/core)

It seems the bom version variables are not resolved.

@jamesfredley jamesfredley merged commit 43e9b81 into 7.0.x Dec 14, 2024
19 checks passed
@jamesfredley jamesfredley deleted the matrei/runnable-distribution branch December 14, 2024 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants