-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
gradle plugin doesn't work in buildSrc #18028
Comments
/cc @evanchooly, @glefloch, @quarkusio/devtools |
Thanks for reporting this @liuzqt, could you share a simple reproducer ? |
In buildSrc you will have to add quarkus plugin in buildSrc/build.gradle(.kts) as:
Check: Note: I had to apply quarkus-gradle-plugin in my plugin with:
and not with:
So it is applied "lazily", otherwise my build failed. It looks like in quarkus-gradle-plugin some configurations are not lazy and can create some issues when used in combination with some other plugins. |
Describe the bug
I have a multi-project gradle layout. And I'm trying to put
into a plugin defined in
buildSrc
so as to make it shared among other projects. Got this error:where
org.tsmap.services
is the plugin I defined inbuildSrc
and include it in one of my sub-projectIn the root dir
settings.gradle
, I have put:so I believe it should be able to locate
io.quarkus
plugin somewhere in the repositoriesExpected behavior
(Describe the expected behavior clearly and concisely.)
Actual behavior
(Describe the actual behavior clearly and concisely.)
To Reproduce
id 'io.quarkus'
into a plugin defined inbuildSrc
Configuration
# Add your application.properties here, if applicable.
Screenshots
Environment (please complete the following information):
Output of
uname -a
orver
Darwin 157-48-161-10-in-addr.tusimple.ai 19.6.0 Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64 x86_64
Output of
java -version
GraalVM version (if different from Java)
Quarkus version or git rev
Build tool (ie. output of
mvnw --version
orgradlew --version
)Additional context
(Add any other context about the problem here.)
The text was updated successfully, but these errors were encountered: