nilsmagnus / wsdl2java

Gradle plugin for generating java source from wsdl files
MIT License
143 stars 77 forks source link

doesn't work with bloop #121

Open mdbergmann opened 3 years ago

mdbergmann commented 3 years ago

When building a Bloop project it bails out with:

Cannot change dependencies of dependency configuration ':XXX:wsdl2java' after it has been resolved.

2020-12-07T11:34:08.624+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2020-12-07T11:34:08.624+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception. 2020-12-07T11:34:08.624+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2020-12-07T11:34:08.624+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong: 2020-12-07T11:34:08.624+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':HcpWebClient:bloopInstall'. 2020-12-07T11:34:08.624+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not create task ':HcpWebClient:wsdl2java'. 2020-12-07T11:34:08.624+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Cannot change dependencies of dependency configuration ':XXX:wsdl2java' after it has been resolved. 2020-12-07T11:34:08.624+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]

parthmakadiya12 commented 3 years ago

When building a Bloop project it bails out with:

Cannot change dependencies of dependency configuration ':XXX:wsdl2java' after it has been resolved.

2020-12-07T11:34:08.624+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2020-12-07T11:34:08.624+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception. 2020-12-07T11:34:08.624+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2020-12-07T11:34:08.624+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong: 2020-12-07T11:34:08.624+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':HcpWebClient:bloopInstall'. 2020-12-07T11:34:08.624+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not create task ':HcpWebClient:wsdl2java'. 2020-12-07T11:34:08.624+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Cannot change dependencies of dependency configuration ':XXX:wsdl2java' after it has been resolved. 2020-12-07T11:34:08.624+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]

Are there any updates on this? (@mdbergmann did you solve this) I am also getting similar error

> Could not create task ':wsdl2java'.
   > Cannot change dependencies of configuration ':wsdl2java' after it has been resolved.

My build.gradle is

buildscript {
  repositories {
    mavenCentral()
    depenedencies{
            classpath "no.nils:wsdl2java:0.12"
    }
  }
}

apply plugin: "no.nils.wsdl2java"

wsdl2java {
    wsdlDir = file("${projectDir}/src/main/resources/wsdl/")
    wsdlsToGenerate = [["-mark-generated", "${projectDir}/src/main/resources/wsdl/mywsdl.wsdl"]]
    locale = Locale.ENGLISH
    encoding = 'UTF-8'
}

the project works fine when I run gradle projectReport it fails saying the above error

mdbergmann commented 3 years ago

did you solve this

No, I didn't solve it. Probably some issue in the dependency setup in Wsdl2JavaPlugin. But I didn't have a closer look yet.