找不到ID为'no.nils.wsdl2java'的插件。摇篮

时间:2019-01-11 10:47:21

标签: gradle ant wsdl2java

我有这个错误,我真的不明白为什么会这样:

找不到ID为'no.nils.wsdl2java'的插件。

这是我的build.gradle

    apply plugin: "java"
    apply plugin: "idea"
    apply plugin: "maven"
    apply plugin: "no.nils.wsdl2java"

    sourceSets {
        main {
            java {
                srcDirs = [ "src" , generatedSourceWsdlDir ]
            }
            resources {
                srcDirs = [ "src" ]
            }
        }
    }

    tasks.withType(JavaCompile) {
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8
        options.encoding = ENCODING
    }

    wsdl2java {
        wsdlDir = file("xml-resources")
        generatedWsdlDir = file(generatedSourceWsdlDir)
        wsdlsToGenerate = [
                ["${project.projectDir}/xml-resources/wsdl/gate/File.wsdl"]
        ]
    }

    compileJava.dependsOn(wsdl2java)

0 个答案:

没有答案