Describe the bug
I want to use quarkus project as sub module project. But the plugin is not working well.
Expected behavior
It should work with multi module project.
Actual behavior
https://github.com/SetoKaiba/blueeyes
Here's the test multi module project.
#Gradle properties
#Sat Nov 23 16:34:25 UTC 2019
quarkusPluginVersion=1.0.0.CR2
quarkusPlatformArtifactId=quarkus-universe-bom
quarkusPlatformVersion=1.0.0.CR2
quarkusPlatformGroupId=io.quarkus
subprojects{
// this block is necessary to make enforcedPlatform work for Quarkus plugin available
// only locally (snapshot) that is also importing the Quarkus BOM
buildscript {
repositories {
mavenLocal()
maven {
url "https://repository.jboss.org/nexus/content/groups/public-jboss"
}
jcenter()
}
dependencies {
classpath "io.quarkus:quarkus-gradle-plugin:${quarkusPluginVersion}"
}
}
}
14:37:22: Executing task 'listExtensions'...
FAILURE: Build failed with an exception.
* Where:
Build file 'D:\Quarkus\blueeyes\blueeyes-web\build.gradle' line: 1
* What went wrong:
A problem occurred evaluating root project 'blueeyes-web'.
> Plugin with id 'io.quarkus' not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
14:37:23: Task execution finished 'listExtensions'.
To Reproduce
Steps to reproduce the behavior:
Configuration
# Add your application.properties here, if applicable.
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
uname -a or ver: java -version: Additional context
(Add any other context about the problem here.)
Gradle support is indeed not as good as we would like but a lot of improvements, see: https://github.com/quarkusio/quarkus/issues/5101
I made a PR #5780. And it's successfully tested working.
I don't mean to hijack this thread, the following is for information but, I was trying to add a Quarkus-based Gradle project (1.1.1 final) as a Gradle sub-project (multi-module project) and the Plugin [id: 'io.quarkus'] was not found in any of the following sources, when calling it or any tasks from the parent project.
According to the 'Community Plugins' section of Gradle's PluginDependenciesSpec documentation:
Non-core plugins are available from the Gradle Plugin Portal. These plugins are contributed by users of Gradle to extend Gradle's functionality. Visit plugins.gradle.org to browse the available plugins and versions.
=> To use a community plugin, the fully qualified id must be specified along with a version. <=
The Gradle-based Quarkus project ZIP generated by https://code.quarkus.io did not include the plugin version number for id 'io.quarkus', adding it, as id 'io.quarkus' version "1.1.1.Final" DID work for me.
@sixman9: Normally, the quarkus dependency and plugin version numbers are in gradle.properties and set in settings.gradle.
Most helpful comment
I don't mean to hijack this thread, the following is for information but, I was trying to add a Quarkus-based Gradle project (1.1.1 final) as a Gradle sub-project (multi-module project) and the
Plugin [id: 'io.quarkus'] was not found in any of the following sources, when calling it or any tasks from the parent project.According to the 'Community Plugins' section of Gradle's PluginDependenciesSpec documentation:
The Gradle-based Quarkus project ZIP generated by https://code.quarkus.io did not include the plugin version number for
id 'io.quarkus', adding it, asid 'io.quarkus' version "1.1.1.Final"DID work for me.