Skip to content

Commit

Permalink
Condition the new config doc sections of the extension template
Browse files Browse the repository at this point in the history
When creating projects or extensions, the codestarts from the tooling
version are always used even for older versions so we need to be
careful about it.

Fixes quarkusio#42649
  • Loading branch information
gsmet committed Aug 20, 2024
1 parent 34ca0e0 commit fff9f47
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
</execution>
</executions>
</plugin>
{#if quarkus.version.or(quarkus.bom.version).compareVersionTo("3.14") >= 0}
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-config-doc-maven-plugin</artifactId>
Expand All @@ -63,6 +64,7 @@
<targetDirectory>$\{project.basedir}/modules/ROOT/pages/includes/</targetDirectory>
</configuration>
</plugin>
{/if}
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
Expand All @@ -75,6 +77,13 @@
<configuration>
<outputDirectory>$\{project.basedir}/modules/ROOT/pages/includes/</outputDirectory>
<resources>
{#if quarkus.version.or(quarkus.bom.version).compareVersionTo("3.14") < 0}
<resource>
<directory>$\{project.basedir}/../target/asciidoc/generated/config/</directory>
<include>{namespace.id}{extension.id}.adoc</include>
<filtering>false</filtering>
</resource>
{/if}
<resource>
<directory>$\{project.basedir}/templates/includes</directory>
<include>attributes.adoc</include>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<developerConnection>scm:git:[email protected]:quarkiverse/quarkus-{extension.id}.git</developerConnection>
<url>https://github.com/quarkiverse/quarkus-{extension.id}</url>
</scm>
{#if quarkus.version.or(quarkus.bom.version).compareVersionTo("3.14") >= 0}
<build>
<pluginManagement>
<plugins>
Expand All @@ -19,6 +20,7 @@
</plugins>
</pluginManagement>
</build>
{/if}
<profiles>
<profile>
<id>it</id>
Expand Down

0 comments on commit fff9f47

Please sign in to comment.