From e9e865b1cf715daa76e3f203f9063152ef6a54f3 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Thu, 28 Nov 2019 17:32:37 -0300 Subject: [PATCH] Fixes Idea modules issue while importing the project. In IDEA, when importing `devtools/gradle` as a Gradle project, in Project Structure, if you click to remove the `quarkus-gradle-plugin` project, and apply, the following message is displayed: ``` Content root "/quarkus/bom/runtime" is defined for modules "quarkus-bom" and "quarkus-platform-descriptor-json". Two modules in a project cannot share the same content root ``` This is because the `` entries in `platform-descriptor-json` are set to other projects, which may produce unpredictable results in IDEs. --- devtools/platform-descriptor-json/pom.xml | 59 +++++++++++++++++------ 1 file changed, 43 insertions(+), 16 deletions(-) diff --git a/devtools/platform-descriptor-json/pom.xml b/devtools/platform-descriptor-json/pom.xml index 66d65a028a558..56f22a32510a0 100644 --- a/devtools/platform-descriptor-json/pom.xml +++ b/devtools/platform-descriptor-json/pom.xml @@ -22,23 +22,50 @@ src/main/filtered true - - ${project.basedir}/../../bom/runtime - quarkus-bom - true - - pom.xml - - - - ${project.basedir}/../bom-descriptor-json/target - quarkus-bom-descriptor - false - - extensions.json - - + + + maven-dependency-plugin + + + copy-bom + + copy + + + + + io.quarkus + quarkus-bom + ${project.version} + pom + ${project.build.outputDirectory}/quarkus-bom + pom.xml + + + + + + copy-bom-descriptor-json + + copy + + + + + io.quarkus + quarkus-bom-descriptor-json + ${project.version} + json + ${project.build.outputDirectory}/quarkus-bom-descriptor + extensions.json + + + + + + +