plugins {
id 'org.springframework.boot' version '2.7.5'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
id 'java'
id "io.mateo.cxf-codegen" version "1.0.1"
}
group = 'com.acme'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://repo.spring.io/snapshot' }
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-web-services'
cxfCodegen "jakarta.xml.ws:jakarta.xml.ws-api:2.3.3"
cxfCodegen "jakarta.annotation:jakarta.annotation-api:1.3.5"
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.named('test') {
useJUnitPlatform()
}
tasks.register("provisioningws", Wsdl2Java) {
toolOptions {
wsdl.set(file("$projectDir/src/main/resources/wsdl/Provisioning.wsdl"))
}
allJvmArgs = ["-Duser.language=fr", "-Duser.country=CA"]
}
this error happen
A problem occurred evaluating root project 'provisioningws'.
Could not get unknown property 'Wsdl2Java' for root project 'provisioningws' of type org.gradle.api.Project.
this line seem to cause issue -> tasks.register("provisioningws", Wsdl2Java)
When i try to build with this code
this error happen
this line seem to cause issue -> tasks.register("provisioningws", Wsdl2Java)