Skip to content

Commit

Permalink
- Rename from runner to tests
Browse files Browse the repository at this point in the history
- Don't hard-code version
- Remove relativePath
  • Loading branch information
tkobayas committed Aug 10, 2023
1 parent 5fac990 commit 960530b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@
<groupId>org.drools</groupId>
<artifactId>drools-reference-examples</artifactId>
<version>8.43.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<groupId>org.drools</groupId>
<artifactId>drools-reference-examples-common</artifactId>

<name>Drools reference examples :: Common</name>
<description>Pojo classes for kjar and runner</description>
<description>Pojo classes for kjar and tests</description>

<properties>
<java.module.name>org.drools.reference.examples.common</java.module.name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
<groupId>org.drools</groupId>
<artifactId>drools-reference-examples</artifactId>
<version>8.43.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<groupId>org.drools</groupId>
<artifactId>drools-reference-examples-kjar</artifactId>
<packaging>kjar</packaging>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@
<groupId>org.drools</groupId>
<artifactId>drools-reference-examples</artifactId>
<version>8.43.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<groupId>org.drools</groupId>
<artifactId>drools-reference-examples-runner</artifactId>
<artifactId>drools-reference-examples-tests</artifactId>

<name>Drools reference examples :: runner</name>
<description>Reference example runner</description>
<name>Drools reference examples :: tests</name>
<description>Reference example tests</description>

<properties>
<java.module.name>org.drools.reference.examples.runner</java.module.name>
<java.module.name>org.drools.reference.examples.tests</java.module.name>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import java.util.ArrayList;
import java.util.List;

import org.drools.base.util.Drools;
import org.junit.jupiter.api.Test;
import org.kie.api.KieServices;
import org.kie.api.builder.ReleaseId;
Expand All @@ -32,7 +33,7 @@ class HelloWorldTest {
@Test
void helloWorld() {
KieServices kieServices = KieServices.get();
ReleaseId releaseId = kieServices.newReleaseId("org.drools", "drools-reference-examples-kjar", "8.43.0-SNAPSHOT");
ReleaseId releaseId = kieServices.newReleaseId("org.drools", "drools-reference-examples-kjar", Drools.getFullVersion());
KieContainer kieContainer = kieServices.newKieContainer(releaseId);
KieSession kieSession = kieContainer.newKieSession("HelloWorldKS");

Expand Down
2 changes: 1 addition & 1 deletion drools-reference-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<modules>
<module>drools-reference-examples-common</module>
<module>drools-reference-examples-kjar</module>
<module>drools-reference-examples-runner</module>
<module>drools-reference-examples-tests</module>
</modules>
</profile>
</profiles>
Expand Down

0 comments on commit 960530b

Please sign in to comment.