Quarkus plugin dependency not found when used as external plugin in a Gradle precompiled script plugin #20595
Labels
area/gradle
Gradle
area/kotlin
kind/bug
Something isn't working
triage/duplicate
This issue or pull request already exists
Describe the bug
I am currently developing a gradle multi-project with multiple quarkus microservices. In order to bundle my quarkus dependencies I use a precompile script plugin (kotlin-dsl) as described here with io.quarkus:gradle-application-plugin:2.3.0 as an external plugin. The gradle build works fine, but executing the quarkusDev task for a microservice subproject fails with
Unable to find quarkus-gradle-plugin dependency in project ':microservice'
#12509 seems to be related, but the suggested solution (which is more of a hack than a real solution) did not work for me since both buildscript and classpath DependyHandler are deprecated. Also they use groovy, I am using kotlin-dsl.
Expected behavior
The subproject's gradle task quarkusDev starts the server in dev mode.
Actual behavior
Executing the quarkusDev task in a subproject which applies the precompiled script plugin results in
How to Reproduce?
A minimal version of my project which allows to reproduce the error can be found here
Output of
uname -a
orver
Darwin 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64
Output of
java -version
11.0.1
GraalVM version (if different from Java)
No response
Quarkus version or git rev
plugin version 2.3.0.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)7.2
Additional information
No response
The text was updated successfully, but these errors were encountered: