deepakkapoor23 opened a new issue, #3565:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/3565
### Describe the bug
Build fails with gradle after quarkus version upgrade while it build fine
with Maven
### Expected behavior
Gradle build should work same as Maven and produce the same output.
### Actual behavior
Gradle build fails with the following error:
Caused by: io.quarkus.builder.BuildException: Build failure: Build failed
due to errors
[error]: Build step
org.drools.quarkus.deployment.DroolsAssetsProcessor#generateSources threw an
exception: java.lang.UnsupportedOperationException
at
java.base/java.util.AbstractCollection.add(AbstractCollection.java:251)
at
org.drools.quarkus.deployment.DroolsAssetsProcessor.generateSources(DroolsAssetsProcessor.java:116)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at
io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:849)
at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at
org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
at java.base/java.lang.Thread.run(Thread.java:833)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
at io.quarkus.builder.Execution.run(Execution.java:123)
at
io.quarkus.builder.BuildExecutionBuilder.execute(BuildExecutionBuilder.java:79)
at
io.quarkus.deployment.QuarkusAugmentor.run(QuarkusAugmentor.java:160)
at
io.quarkus.runner.bootstrap.AugmentActionImpl.runAugment(AugmentActionImpl.java:330)
... 26 more
Caused by: java.lang.UnsupportedOperationException
at
org.drools.quarkus.deployment.DroolsAssetsProcessor.generateSources(DroolsAssetsProcessor.java:116)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at
io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:849)
at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at
org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
### How to Reproduce?
Create a gradle project with kogito dependencies and plugin and run the
build as follows:
gradlew clean build --no-build-cache --stacktrace
### Output of `uname -a` or `ver`
Windows
### Output of `java -version`
17
### GraalVM version (if different from Java)
_No response_
### Kogito version or git rev (or at least Quarkus version if you are using
Kogito via Quarkus platform BOM)
999-SNAPSHOT
### Build tool (ie. output of `mvnw --version` or `gradlew --version`)
gradle 8.6
### Additional information
Intermittently missing classes from org.jbpm and org.drools packages are
also reported in the build log with NoClassDefFoundError
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]