This is an automated email from the ASF dual-hosted git repository. lucamolteni pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/incubator-kie-optaplanner.git
commit 8e1f3db2882ecbed26783247cb126a5fa3dbe437 Author: Luca Molteni <[email protected]> AuthorDate: Fri Jan 26 17:54:07 2024 +0100 First draft of remove timestamps from comment --- .../optaplanner-quarkus/deployment/pom.xml | 23 +++++++++++ .../optaplanner-quarkus/runtime/pom.xml | 46 ++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/optaplanner-quarkus-integration/optaplanner-quarkus/deployment/pom.xml b/optaplanner-quarkus-integration/optaplanner-quarkus/deployment/pom.xml index 139cd6f880..8e7e0c7808 100644 --- a/optaplanner-quarkus-integration/optaplanner-quarkus/deployment/pom.xml +++ b/optaplanner-quarkus-integration/optaplanner-quarkus/deployment/pom.xml @@ -130,6 +130,29 @@ </systemPropertyVariables> </configuration> </plugin> + <plugin> + <!-- Remove comments from META-INF/quarkus-javadoc.properties --> + <!-- This is needed because the file generated by quarkus contains a timestamp in a comment that makes the build not reproducible --> + <!-- This workaround can be removed when drools will be migrated to quarkus release containing this fix https://github.com/quarkusio/quarkus/pull/38365 --> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>3.1.1</version> + <executions> + <execution> + <id>Run Script</id> + <phase>prepare-package</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>org.drools.util.RemoveCommentsMain</mainClass> + <arguments> + <argument>${project.basedir}/target/classes/META-INF/quarkus-javadoc.properties</argument> + </arguments> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> diff --git a/optaplanner-quarkus-integration/optaplanner-quarkus/runtime/pom.xml b/optaplanner-quarkus-integration/optaplanner-quarkus/runtime/pom.xml index f4e8449076..799cf288c3 100644 --- a/optaplanner-quarkus-integration/optaplanner-quarkus/runtime/pom.xml +++ b/optaplanner-quarkus-integration/optaplanner-quarkus/runtime/pom.xml @@ -113,6 +113,52 @@ </execution> </executions> </plugin> + <plugin> + <!-- Remove comments from META-INF/quarkus-extension.properties --> + <!-- This is needed because the file generated by quarkus contains a timestamp in a comment that makes the build not reproducible --> + <!-- This workaround can be removed when drools will be migrated to quarkus release containing this fix https://github.com/quarkusio/quarkus/pull/38365 --> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>3.1.1</version> + <executions> + <execution> + <id>Remove comments from quarkus-extension.properties</id> + <phase>prepare-package</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>org.drools.util.RemoveCommentsMain</mainClass> + <arguments> + <argument>${project.basedir}/target/classes/META-INF/quarkus-extension.properties</argument> + </arguments> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <!-- Remove comments from META-INF/quarkus-extension.properties --> + <!-- This is needed because the file generated by quarkus contains a timestamp in a comment that makes the build not reproducible --> + <!-- This workaround can be removed when drools will be migrated to quarkus release containing this fix https://github.com/quarkusio/quarkus/pull/38365 --> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>3.1.1</version> + <executions> + <execution> + <id>Remove comments from quarkus-javadoc.properties</id> + <phase>prepare-package</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>org.drools.util.RemoveCommentsMain</mainClass> + <arguments> + <argument>${project.basedir}/target/classes/META-INF/quarkus-javadoc.properties</argument> + </arguments> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </project> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
