Skip to content

Commit

Permalink
Merge pull request #35369 from gsmet/drop-jboss-parent
Browse files Browse the repository at this point in the history
Use quarkus-parent in independent-projects/enforcer-rules IT
  • Loading branch information
gastaldi authored Aug 17, 2023
2 parents dd2300a + f33db96 commit b1dfecf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 17 deletions.
2 changes: 0 additions & 2 deletions build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<!-- Maven plugin versions -->

<!-- These properties are needed in order for them to be resolvable by the generated projects -->
<!-- Quarkus uses jboss-parent and it comes with 3.8.1-jboss-1, we don't want that in the templates -->
<compiler-plugin.version>3.11.0</compiler-plugin.version>
<kotlin.version>1.9.0</kotlin.version>
<dokka.version>1.8.20</dokka.version>
Expand All @@ -28,7 +27,6 @@
<!-- not pretty but this is used in the codestarts and we don't want to break compatibility -->
<scala-plugin.version>${scala-maven-plugin.version}</scala-plugin.version>

<!-- version.* properties are defined in jboss-parent and are overridden/updated here: -->
<version.enforcer.plugin>3.2.1</version.enforcer.plugin>
<version.surefire.plugin>3.1.2</version.surefire.plugin>
<version.exec.plugin>3.0.0</version.exec.plugin>
Expand Down
9 changes: 5 additions & 4 deletions independent-projects/enforcer-rules/src/it/smoketest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.jboss</groupId>
<artifactId>jboss-parent</artifactId>
<version>39</version>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-parent</artifactId>
<version>999-SNAPSHOT</version>
<relativePath>../../../parent/pom.xml</relativePath>
</parent>

<groupId>io.quarkus</groupId>
Expand All @@ -19,4 +20,4 @@
</modules>

<!-- note: rule is configured in integration-tests/pom.xml -->
</project>
</project>
1 change: 0 additions & 1 deletion independent-projects/tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
<gradle-wrapper.version>8.1.1</gradle-wrapper.version>

<!-- These properties are needed in order for them to be resolvable by the generated projects -->
<!-- Quarkus uses jboss-parent and it comes with 3.8.1-jboss-1, we don't want that in the templates -->
<compiler-plugin.version>3.11.0</compiler-plugin.version>
<kotlin.version>1.6.0</kotlin.version>
<scala.version>2.12.13</scala.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-engine</artifactId>
<version>7.51.0.Final</version>
<version>2.13.0</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,13 @@ private String assertCorrectDirectory() {
private String assertUniqueDirectories() {
final String testType = "unique-directories";
try {
Enumeration<URL> resources = this.getClass().getClassLoader().getResources("META-INF/kie.conf");
Enumeration<URL> resources = this.getClass().getClassLoader().getResources("META-INF/quarkus-extension.yaml");
List<URL> resourcesList = Collections.list(resources);
// 'META-INF/kie.conf' should be present in 'kie-internal', 'drools-core', 'drools-compiler' and 'drools-model-compiler'
if (resourcesList.size() != 4) {
return errorResult(testType, "wrong number of directory urls");
// 'META-INF/quarkus-extension.yaml' should be present in all extensions
int expected = 12;
if (resourcesList.size() != expected) {
return errorResult(testType,
"wrong number of directory urls, expected " + expected + " but got " + resourcesList.size());
}
return SUCCESS;
} catch (Exception e) {
Expand Down

0 comments on commit b1dfecf

Please sign in to comment.