Skip to content

Commit

Permalink
[KOGITO-7513] - Replace Kogito-examples group-id from 'org.kie.kogito…
Browse files Browse the repository at this point in the history
….example' to 'org.acme'

Signed-off-by: Your Name <[email protected]>
  • Loading branch information
spolti committed Sep 1, 2023
1 parent e648ebe commit 7cb063e
Show file tree
Hide file tree
Showing 862 changed files with 3,789 additions and 19,041 deletions.
36 changes: 18 additions & 18 deletions .ci/environments/quarkus-3/patches/0001_before_sh.patch
Original file line number Diff line number Diff line change
Expand Up @@ -4273,7 +4273,7 @@ diff --git a/serverless-workflow-examples/serverless-workflow-events-quarkus/src
index 287b775c6..c969da8c7 100644
--- a/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/kogito/serverless/examples/AvroMarshallerProducer.java
+++ b/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/kogito/serverless/examples/AvroMarshallerProducer.java
@@ -17,11 +17,11 @@ package org.kogito.serverless.examples;
@@ -17,11 +17,11 @@ package org.acme.serverless.examples;

import java.io.IOException;

Expand All @@ -4295,7 +4295,7 @@ index a9615feff..54a8b9a5a 100644
+++ b/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/kogito/serverless/examples/DecisionResource.java
@@ -15,11 +15,11 @@
*/
package org.kogito.serverless.examples;
package org.acme.serverless.examples;

-import javax.inject.Inject;
-import javax.ws.rs.GET;
Expand Down Expand Up @@ -4591,77 +4591,77 @@ index 6f90bae6d..56b1e20e5 100644
+++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/ClassificationFunction.java
@@ -15,7 +15,7 @@
*/
package org.kogito.serverless.examples.functions;
package org.acme.serverless.examples.functions;

-import javax.inject.Inject;
+import jakarta.inject.Inject;

import org.kogito.serverless.examples.input.Country;
import org.kogito.serverless.examples.services.ClassificationService;
import org.acme.serverless.examples.input.Country;
import org.acme.serverless.examples.services.ClassificationService;
diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/CountriesFunction.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/CountriesFunction.java
index 750823546..f17e7bea9 100644
--- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/CountriesFunction.java
+++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/CountriesFunction.java
@@ -15,7 +15,7 @@
*/
package org.kogito.serverless.examples.functions;
package org.acme.serverless.examples.functions;

-import javax.inject.Inject;
+import jakarta.inject.Inject;

import org.kogito.serverless.examples.input.Country;
import org.kogito.serverless.examples.services.CountriesService;
import org.acme.serverless.examples.input.Country;
import org.acme.serverless.examples.services.CountriesService;
diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/PopulationFunction.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/PopulationFunction.java
index 69066c4ec..8249c76b2 100644
--- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/PopulationFunction.java
+++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/PopulationFunction.java
@@ -15,7 +15,7 @@
*/
package org.kogito.serverless.examples.functions;
package org.acme.serverless.examples.functions;

-import javax.inject.Inject;
+import jakarta.inject.Inject;

import org.kogito.serverless.examples.input.Country;
import org.kogito.serverless.examples.services.CountriesService;
import org.acme.serverless.examples.input.Country;
import org.acme.serverless.examples.services.CountriesService;
diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/ClassificationService.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/ClassificationService.java
index 3731e3707..1f9bd1377 100644
--- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/ClassificationService.java
+++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/ClassificationService.java
@@ -18,7 +18,7 @@ package org.kogito.serverless.examples.services;
@@ -18,7 +18,7 @@ package org.acme.serverless.examples.services;
import java.util.HashMap;
import java.util.Map;

-import javax.enterprise.context.ApplicationScoped;
+import jakarta.enterprise.context.ApplicationScoped;

import org.kogito.serverless.examples.input.Country;
import org.acme.serverless.examples.input.Country;

diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/CountriesService.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/CountriesService.java
index acce33496..a6ffe63d9 100644
--- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/CountriesService.java
+++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/CountriesService.java
@@ -18,7 +18,7 @@ package org.kogito.serverless.examples.services;
@@ -18,7 +18,7 @@ package org.acme.serverless.examples.services;
import java.util.ArrayList;
import java.util.List;

-import javax.enterprise.context.ApplicationScoped;
+import jakarta.enterprise.context.ApplicationScoped;

import org.kogito.serverless.examples.input.Country;
import org.acme.serverless.examples.input.Country;

diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/PopulationService.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/PopulationService.java
index 8aa404d54..60910c580 100644
--- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/PopulationService.java
+++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/PopulationService.java
@@ -18,7 +18,7 @@ package org.kogito.serverless.examples.services;
@@ -18,7 +18,7 @@ package org.acme.serverless.examples.services;
import java.util.HashMap;
import java.util.Map;

-import javax.enterprise.context.ApplicationScoped;
+import jakarta.enterprise.context.ApplicationScoped;

import org.kogito.serverless.examples.input.Country;
import org.acme.serverless.examples.input.Country;

diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/pom.xml b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/pom.xml
index f651b169d..f72762b0b 100644
Expand Down Expand Up @@ -5763,7 +5763,7 @@ diff --git a/serverless-workflow-examples/serverless-workflow-service-calls-quar
index f49df157e..b6a6a617a 100644
--- a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/test/java/org/kogito/serverless/examples/CountryServiceWorkflowTest.java
+++ b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/test/java/org/kogito/serverless/examples/CountryServiceWorkflowTest.java
@@ -18,8 +18,8 @@ package org.kogito.serverless.examples;
@@ -18,8 +18,8 @@ package org.acme.serverless.examples;
import java.util.HashMap;
import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.kie.kogito.examples</groupId>
<groupId>org.acme.examples</groupId>
<artifactId>kogito-quarkus-examples</artifactId>
<version>2.0.0-SNAPSHOT</version>
</parent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.kogito.queries;
package org.acme.queries;

public class Applicant {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.kogito.queries;
package org.acme.queries;

public class LoanApplication {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.kogito.queries;
package org.acme.queries;

import org.drools.ruleunits.api.DataSource;
import org.drools.ruleunits.api.DataStore;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.kogito.decisiontable.quarkus;
package org.acme.decisiontable.quarkus;

import io.quarkus.test.junit.NativeImageTest;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.kogito.decisiontable.quarkus;
package org.acme.decisiontable.quarkus;

import org.junit.jupiter.api.Test;

Expand Down
2 changes: 1 addition & 1 deletion kogito-quarkus-examples/dmn-drools-quarkus-metrics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.kie.kogito.examples</groupId>
<groupId>org.acme.examples</groupId>
<artifactId>kogito-quarkus-examples</artifactId>
<version>2.0.0-SNAPSHOT</version>
</parent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.kogito.app;
package org.acme.app;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
Expand Down Expand Up @@ -87,7 +87,7 @@ public void afterEvaluateAll(AfterEvaluateAllEvent event) {

private void registerEvent(DMNEvent event) {
logger.debug(event.getClass().getSimpleName());
prometheusMeterRegistry.counter("org.kie.kogito.examples.customdmnruntimeeventlistener", "event",
prometheusMeterRegistry.counter("org.acme.examples.customdmnruntimeeventlistener", "event",
event.getClass().getSimpleName().toLowerCase()).increment();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.kogito.app;
package org.acme.app;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;

import org.acme.examples.CustomRuleEventListener;
import org.kie.kogito.drools.core.config.DefaultRuleEventListenerConfig;
import org.kie.kogito.examples.CustomRuleEventListener;

import io.micrometer.prometheus.PrometheusMeterRegistry;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.kogito.examples;
package org.acme.examples;

import org.drools.core.event.DefaultAgendaEventListener;
import org.jboss.logging.Logger;
Expand Down Expand Up @@ -101,7 +101,7 @@ public void afterRuleFlowGroupDeactivated(RuleFlowGroupDeactivatedEvent event) {

private void registerEvent(KieRuntimeEvent event) {
logger.debug(event.getClass().getSimpleName());
prometheusMeterRegistry.counter("org.kie.kogito.examples.customruleeventlistener", "event",
prometheusMeterRegistry.counter("org.acme.examples.customruleeventlistener", "event",
event.getClass().getSimpleName().toLowerCase()).increment();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.kogito.examples;
package org.acme.examples;

import org.drools.ruleunits.api.DataSource;
import org.drools.ruleunits.api.DataStore;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.kogito.examples;
package org.acme.examples;
unit Hello;

rule helloWorld
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.kogito.examples.quarkus;
package org.acme.examples.quarkus;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.kogito.examples.quarkus;
package org.acme.examples.quarkus;

import org.junit.jupiter.api.Test;

Expand Down Expand Up @@ -53,21 +53,21 @@ public void testDrlMetrics() {
.get("/q/metrics")
.then()
.statusCode(200)
.body(containsString("org_kie_kogito_examples_customruleeventlistener_total{event=\"afteractivationfiredeventimpl" +
.body(containsString("org_acme_examples_customruleeventlistener_total{event=\"afteractivationfiredeventimpl" +
"\"} 1.0"));
given()
.when()
.get("/q/metrics")
.then()
.statusCode(200)
.body(containsString("org_kie_kogito_examples_customruleeventlistener_total{event=\"beforeactivationfiredeventimpl" +
.body(containsString("org_acme_examples_customruleeventlistener_total{event=\"beforeactivationfiredeventimpl" +
"\"} 1.0"));
given()
.when()
.get("/q/metrics")
.then()
.statusCode(200)
.body(containsString("org_kie_kogito_examples_customruleeventlistener_total{event=\"activationcreatedeventimpl" +
.body(containsString("org_acme_examples_customruleeventlistener_total{event=\"activationcreatedeventimpl" +
"\"} 1.0"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.kogito.examples.quarkus;
package org.acme.examples.quarkus;

import java.io.File;
import java.net.URISyntaxException;
Expand Down Expand Up @@ -66,9 +66,9 @@ public class GrafanaDockerComposeIT {
.withStartupTimeout(STARTUP_MINUTES_TIMEOUT))
.withLogConsumer("prometheus_1", new Slf4jLogConsumer(LOGGER))
.withPull(false)
.withLocalCompose(true)
//See https://github.com/testcontainers/testcontainers-java/issues/4565
.withOptions("--compatibility");
.withLocalCompose(true);
//See https://github.com/testcontainers/testcontainers-java/issues/4565
// .withOptions("--compatibility");
} catch (URISyntaxException e) {
throw new RuntimeException(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.kogito.examples.quarkus;
package org.acme.examples.quarkus;

import org.junit.jupiter.api.Test;

Expand Down Expand Up @@ -102,15 +102,15 @@ public void testEvaluateLoanEligibility() {
String.format("api_http_response_code_total{artifactId=\"%s\",endpoint=\"LoanEligibility\",identifier=\"200\",version=\"%s\"} 2.0", PROJECT_ARTIFACT_ID, PROJECT_VERSION)))
.body(containsString(
String.format("api_execution_elapsed_seconds_count{artifactId=\"%s\",endpoint=\"LoanEligibility\",version=\"%s\"} 2.0", PROJECT_ARTIFACT_ID, PROJECT_VERSION)))
.body(containsString("org_kie_kogito_examples_customdmnruntimeeventlistener_total{event" +
.body(containsString("org_acme_examples_customdmnruntimeeventlistener_total{event" +
"=\"beforeevaluatedecisiontableeventimpl\"}"))
.body(containsString("org_kie_kogito_examples_customdmnruntimeeventlistener_total{event" +
.body(containsString("org_acme_examples_customdmnruntimeeventlistener_total{event" +
"=\"afterevaluatedecisiontableeventimpl\"}"))
.body(containsString("org_kie_kogito_examples_customdmnruntimeeventlistener_total{event" +
.body(containsString("org_acme_examples_customdmnruntimeeventlistener_total{event" +
"=\"beforeevaluatealleventimpl\"}"))
.body(containsString("org_kie_kogito_examples_customdmnruntimeeventlistener_total{event" +
.body(containsString("org_acme_examples_customdmnruntimeeventlistener_total{event" +
"=\"afterevaluatealleventimpl\"}"))
.body(containsString("org_kie_kogito_examples_customdmnruntimeeventlistener_total{event" +
.body(containsString("org_acme_examples_customdmnruntimeeventlistener_total{event" +
"=\"afterevaluatedecisioneventimpl\"}"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.kogito.examples.quarkus;
package org.acme.examples.quarkus;

import java.io.IOException;
import java.util.Properties;
Expand Down
2 changes: 1 addition & 1 deletion kogito-quarkus-examples/dmn-event-driven-quarkus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.kie.kogito.examples</groupId>
<groupId>org.acme.examples</groupId>
<artifactId>kogito-quarkus-examples</artifactId>
<version>2.0.0-SNAPSHOT</version>
</parent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.kogito.examples;
package org.acme.examples;

import java.io.IOException;
import java.net.URL;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.kogito.examples;
package org.acme.examples;

import org.kie.kogito.testcontainers.quarkus.KafkaQuarkusTestResource;

Expand Down
2 changes: 1 addition & 1 deletion kogito-quarkus-examples/dmn-incubation-api-quarkus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.kie.kogito.examples</groupId>
<groupId>org.acme.examples</groupId>
<artifactId>kogito-quarkus-examples</artifactId>
<version>2.0.0-SNAPSHOT</version>
</parent>
Expand Down
Loading

0 comments on commit 7cb063e

Please sign in to comment.