Open ben-manes opened 6 years ago
@ben-manes Did you get this working? Is there a project you can point me at?
Sorry, this was a work integration. I haven't looked at this since and simply don't upgrade the dependency when periodically running the dependency upgrade report.
What versions of api and bind have you tried?
From the maven central release dates, it would have been v2.3.0 which sounds right to me too.
Edit - oh, and is in the task's description
Plugin 2.5.0 throws the following error in combination with JDK 10.
Caused by: java.lang.NullPointerException: Cannot get property 'managedNodes' on null object at org.openrepose.gradle.plugins.jaxb.task.JaxbXjc.start(JaxbXjc.groovy:104) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:46) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:794) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:761) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:124) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:317) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:309) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:185) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:97) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:113) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:95) ... 29 more
Used dependencies: jaxb 'org.glassfish.jaxb:jaxb-xjc:2.3.0' jaxb 'org.glassfish.jaxb:jaxb-runtime:2.3.0' jaxb 'javax.xml.bind:jaxb-api:2.3.0'
@shruda This plugin is not compatible with Java 9 or Java 10 at the present. This is on our backlog to get fixed, but our main project hasn't started that transition yet either.
The code generation works when I use api v2.2.12 and bind v2.2.10. When updating to the latest versions the task fails as below. This is with plugin v2.4.1.
The dependencies in the jaxb task are,