question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gradle build fails (since 'maven_plugin_repositories' was introduced?)

See original GitHub issue

Describe the bug I use the following to create a project:

mvn io.quarkus:quarkus-maven-plugin:1.5.0.Final:create \
        -DprojectGroupId=${context.projectId} \
        -DprojectArtifactId=${context.componentId} \
        -DclassName='${context.projectId}.getting.started.GreetingResource' \
        -Dpath='/hello' \
        -DbuildTool=gradle

and ./gradlew clean build --no-daemon --stacktrace"

to build the app, which worked perfectly the last time I played around with quarks a few weeks ago. Today I tried it again and got:

FAILURE: Build failed with an exception.

* Where:
Settings file '/tmp/workspace/quarkus-app/settings.gradle' line: 3

* What went wrong:
A problem occurred evaluating settings quarkus'.
> Could not find method $() for arguments [settings_86nsapcu3kqiojih20han519x$_run_closure1$_closure2$_closure4@3fc1abf] on object of type org.gradle.api.internal.artifacts.repositories.DefaultMavenLocalArtifactRepository.

where line 3 in settings.gradle is: mavenLocal()${maven_plugin_repositories}

I saw that meanwhile this param was added: https://github.com/quarkusio/quarkus/pull/10113/files#diff-2b33dc6b74423f0c8e1a0f99d8575b8eR3

I can’t think of anything I did different the last time so I’m submitting this as a bug. Any ideas?

Environment:

  • gradle 6.5 but also tried 6.5.1
  • quarkus 1.5.0-Final but also tried 1.5.2-Final
  • mvn 3.6.3
  • graalvm 20.1.0 but also tried openjdk 11

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ia3andycommented, Jul 8, 2020

ok it works if you use io.quarkus:quarkus-maven-plugin:1.6.0.Final:create

0reactions
aloubyanskycommented, Jul 8, 2020

It’s not the first time it happens though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting builds - Gradle User Manual
If your Gradle build fails before running any tasks, you may be encountering problems with your network configuration. When Gradle is unable to...
Read more >
Why is Gradle Build Failing Even after including the ...
As per the guide I added following to manage the dependency in the project. repositories { mavenCentral() } dependencies { compile "joda-time: ...
Read more >
Getting Started with Gradle | IntelliJ IDEA Documentation
In this tutorial, we'll create a Gradle project, will run and test it, and run the executable JAR file using Gradle. The project...
Read more >
Reduce build failures and increase build reliability
Gradle Enterprise allows teams to find and fix these problems quickly. You can complete this tutorial in: 1 minute (read the Introduction). 5-10...
Read more >
[HAS WORKAROUND] Android build fails since 0.71.0-rc.0 tag ...
Builds started failing couple hours ago. ... A failure occurred while executing com.android.build.gradle.internal.tasks.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found