diff --git a/persistence-commons/kogito-ddl/pom.xml b/persistence-commons/kogito-ddl/pom.xml index 158cea7d16..17cb63cc6f 100644 --- a/persistence-commons/kogito-ddl/pom.xml +++ b/persistence-commons/kogito-ddl/pom.xml @@ -3,48 +3,65 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - - org.kie.kogito - persistence-commons - 2.0.0-SNAPSHOT - - 4.0.0 - kogito-ddl - Kogito Apps :: DB Scripts Collection Multi Repo - pom + + org.kie.kogito + persistence-commons + 2.0.0-SNAPSHOT + + 4.0.0 + kogito-ddl + Kogito Apps :: DB Scripts Collection Multi Repo + pom - - - org.kie.kogito - kogito-ddl-runtimes - ${project.version} - db-scripts - zip - - + + src/assembly/multi-repo-zip.xml + - - - - org.apache.maven.plugins - maven-assembly-plugin - false - - - src/assembly/multi-repo-zip.xml - - - - - db-scripts-collection - false - package - - single - - - - - - + + + org.kie.kogito + kogito-ddl-runtimes + ${project.version} + db-scripts + zip + + + + + + + org.apache.maven.plugins + maven-assembly-plugin + false + + + ${db.scripts.descriptor} + + + + + db-scripts-collection + false + package + + single + + + + + + + + + productized + + + productized + + + + src/assembly/productized-multi-repo-zip.xml + + + \ No newline at end of file diff --git a/persistence-commons/kogito-ddl/src/assembly/multi-repo-zip.xml b/persistence-commons/kogito-ddl/src/assembly/multi-repo-zip.xml index 4fe2a2b75b..6d87cc723a 100644 --- a/persistence-commons/kogito-ddl/src/assembly/multi-repo-zip.xml +++ b/persistence-commons/kogito-ddl/src/assembly/multi-repo-zip.xml @@ -32,7 +32,7 @@ - ${project.root.dir}/jobs-service/jobs-service-postgresql/src/main/resources/db/jobs-service + ${project.root.dir}/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service postgresql/jobs-service *.sql diff --git a/persistence-commons/kogito-ddl/src/assembly/productized-multi-repo-zip.xml b/persistence-commons/kogito-ddl/src/assembly/productized-multi-repo-zip.xml new file mode 100644 index 0000000000..68cf514b1b --- /dev/null +++ b/persistence-commons/kogito-ddl/src/assembly/productized-multi-repo-zip.xml @@ -0,0 +1,35 @@ + + db-scripts + + zip + + false + + + true + . + + org.kie.kogito:kogito-ddl-runtimes:zip:db-scripts + + + + + + ${project.root.dir}/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration + postgresql/data-index + + *.sql + + + + + ${project.root.dir}/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service + postgresql/jobs-service + + *.sql + + + + diff --git a/persistence-commons/pom.xml b/persistence-commons/pom.xml index 2b1591912c..ccf7b4e356 100644 --- a/persistence-commons/pom.xml +++ b/persistence-commons/pom.xml @@ -18,6 +18,7 @@ persistence-commons-api persistence-commons-protobuf persistence-commons-postgresql + kogito-ddl @@ -34,7 +35,6 @@ persistence-commons-redis persistence-commons-oracle persistence-commons-reporting-parent - kogito-ddl