From e5ba4068d1963c1ceb805372890b358512fa959e Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Sun, 11 Aug 2024 11:19:12 +0200 Subject: [PATCH] Adjust extension templates for new config doc setup Fixes #42401 --- .../java/deployment/pom.tpl.qute.xml | 32 +++++++++++-------- .../java/runtime/pom.tpl.qute.xml | 32 +++++++++++-------- .../quarkiverse/java/docs/pom.tpl.qute.xml | 13 +++++--- .../code/quarkiverse/java/pom.tpl.qute.xml | 11 +++++++ .../quarkus-my-quarkiverse-ext_docs_pom.xml | 13 +++++--- .../quarkus-my-quarkiverse-ext_pom.xml | 5 +++ ...quarkus-my-quarkiverse-ext_runtime_pom.xml | 23 +++++++------ .../my-org-my-own-ext_runtime_pom.xml | 23 +++++++------ 8 files changed, 96 insertions(+), 56 deletions(-) diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/extension-base/java/deployment/pom.tpl.qute.xml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/extension-base/java/deployment/pom.tpl.qute.xml index 8d78fb6cf62ec..83e3cf1eb8451 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/extension-base/java/deployment/pom.tpl.qute.xml +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/extension-base/java/deployment/pom.tpl.qute.xml @@ -37,21 +37,25 @@ - org.apache.maven.plugins maven-compiler-plugin - - - - io.quarkus - quarkus-extension-processor - {#if quarkus.version} - $\{quarkus.version} - {#else} - $\{project.version} - {/if} - - - + + + default-compile + + + + io.quarkus + quarkus-extension-processor + {#if quarkus.version} + $\{quarkus.version} + {#else} + $\{project.version} + {/if} + + + + + diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/extension-base/java/runtime/pom.tpl.qute.xml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/extension-base/java/runtime/pom.tpl.qute.xml index b1c5859086db5..c568efaf03b39 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/extension-base/java/runtime/pom.tpl.qute.xml +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/extension-base/java/runtime/pom.tpl.qute.xml @@ -50,21 +50,25 @@ {/if} - org.apache.maven.plugins maven-compiler-plugin - - - - io.quarkus - quarkus-extension-processor - {#if quarkus.version} - $\{quarkus.version} - {#else} - $\{project.version} - {/if} - - - + + + default-compile + + + + io.quarkus + quarkus-extension-processor + {#if quarkus.version} + $\{quarkus.version} + {#else} + $\{project.version} + {/if} + + + + + diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/docs/pom.tpl.qute.xml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/docs/pom.tpl.qute.xml index 7244d9681d390..899dc06c2cef3 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/docs/pom.tpl.qute.xml +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/docs/pom.tpl.qute.xml @@ -55,6 +55,14 @@ + + io.quarkus + quarkus-config-doc-maven-plugin + true + + $\{project.basedir}/modules/ROOT/pages/includes/ + + maven-resources-plugin @@ -67,11 +75,6 @@ $\{project.basedir}/modules/ROOT/pages/includes/ - - $\{project.basedir}/../target/asciidoc/generated/config/ - {namespace.id}{extension.id}.adoc - false - $\{project.basedir}/templates/includes attributes.adoc diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/pom.tpl.qute.xml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/pom.tpl.qute.xml index e04c3d5073bf4..aa0fec9fcfd2e 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/pom.tpl.qute.xml +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/pom.tpl.qute.xml @@ -8,6 +8,17 @@ scm:git:git@github.com:quarkiverse/quarkus-{extension.id}.git https://github.com/quarkiverse/quarkus-{extension.id} + + + + + io.quarkus + quarkus-config-doc-maven-plugin + $\{quarkus.version} + + + + it diff --git a/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_docs_pom.xml b/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_docs_pom.xml index 655dffbc523ec..ead0b95ada072 100644 --- a/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_docs_pom.xml +++ b/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_docs_pom.xml @@ -53,6 +53,14 @@ + + io.quarkus + quarkus-config-doc-maven-plugin + true + + ${project.basedir}/modules/ROOT/pages/includes/ + + maven-resources-plugin @@ -65,11 +73,6 @@ ${project.basedir}/modules/ROOT/pages/includes/ - - ${project.basedir}/../target/asciidoc/generated/config/ - quarkus-my-quarkiverse-ext.adoc - false - ${project.basedir}/templates/includes attributes.adoc diff --git a/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_pom.xml b/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_pom.xml index 79a649df6b461..2cf8315c8a6a4 100644 --- a/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_pom.xml +++ b/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_pom.xml @@ -60,6 +60,11 @@ true + + io.quarkus + quarkus-config-doc-maven-plugin + ${quarkus.version} + diff --git a/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_runtime_pom.xml b/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_runtime_pom.xml index b4e4065a665fe..f68336f910045 100644 --- a/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_runtime_pom.xml +++ b/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_runtime_pom.xml @@ -38,15 +38,20 @@ maven-compiler-plugin - - - - io.quarkus - quarkus-extension-processor - ${quarkus.version} - - - + + + default-compile + + + + io.quarkus + quarkus-extension-processor + ${quarkus.version} + + + + + maven-jar-plugin diff --git a/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateStandaloneExtension/my-org-my-own-ext_runtime_pom.xml b/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateStandaloneExtension/my-org-my-own-ext_runtime_pom.xml index 942b770f0d506..8458034cc7b8c 100644 --- a/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateStandaloneExtension/my-org-my-own-ext_runtime_pom.xml +++ b/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateStandaloneExtension/my-org-my-own-ext_runtime_pom.xml @@ -37,15 +37,20 @@ maven-compiler-plugin - - - - io.quarkus - quarkus-extension-processor - ${quarkus.version} - - - + + + default-compile + + + + io.quarkus + quarkus-extension-processor + ${quarkus.version} + + + + +