Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Gradle Build Faile: Could not create LanguageSourceSet of type WsdlSourceSet #9

Open
LazR21433 opened this issue Dec 4, 2019 · 1 comment

Comments

@LazR21433
Copy link

Hi,
I tried to use your plugin in my project. But when trying to build with Gradle to generate the Java files I got an error, see details below.

plugins {
    id 'me.seeber.wsimport' version '1.1.2'
}
Gradle Version: 5.0
Java Home: /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home
Gradle Tasks: build

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'myservice'.
> Exception thrown while executing model rule: WsimportPlugin.PluginRules#createWsdlSourceSets(ModelMap<WsimportComponent>, FileOperations) > create(wsdlMain) > create(wsdl)
   > Could not create LanguageSourceSet of type WsdlSourceSet
@xvik
Copy link

xvik commented Jan 13, 2020

I faced this too: this issue will affect any gradle above 5.0 due to BaseLanguageSourceSet class change.

Only this line must be replaced to fix compatibility:

this.bindings = this.sourceDirectorySetFactory.create("bindings");

must become:

this.bindings = this.objectFactory.sourceDirectorySet("bindings", "WSDL bindings");

The plugin will lose compatibility with gradle before 5.0, but the current plugin version works perfectly for older gradle, so it should not be a problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants