-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
My build.gradle.kts:
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.6.2"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
id("org.unbroken-dome.xjc") version "1.4.1" // https://github.com/unbroken-dome/gradle-xjc-plugin
war
kotlin("jvm") version "1.6.10"
kotlin("plugin.spring") version "1.6.10"
}
group = "com.bftcom.gosmail.terminal"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
testImplementation("org.springframework.boot:spring-boot-starter-test")
xjcClasspath("info.hubbitus:xjc-documentation-annotation-plugin:1.1")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks {
// Results by default in `build/xjc/generated-sources`
xjcGenerate {
source = fileTree(mapOf("dir" to "src/main/resources/static/xsd", "include" to listOf("*.xsd")))
packageLevelAnnotations = false
targetPackage = "info.hubbitus.xjc.plugin.example"
extraArgs = listOf("-XPluginDescriptionAnnotation")
}
}
Error log:
gradlew xjcgenerate
> Task :xjcGenerate FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Some problems were found with the configuration of task ':xjcGenerate' (type 'XjcGenerate').
- In plugin 'org.unbroken-dome.xjc' type 'org.unbrokendome.gradle.plugins.xjc.XjcGenerate' property 'contentForWildcard' has redundant getters: 'getContentForWildcard()' and 'isContentForWildcard()'.
Reason: Boolean property 'contentForWildcard' has both an `is` and a `get` getter.
Possible solutions:
1. Remove one of the getters.
2. Annotate one of the getters with @Internal.
Please refer to https://docs.gradle.org/7.3.2/userguide/validation_problems.html#redundant_getters for more details about this problem.
- In plugin 'org.unbroken-dome.xjc' type 'org.unbrokendome.gradle.plugins.xjc.XjcGenerate' property 'enableIntrospection' has redundant getters: 'getEnableIntrospection()' and 'isEnableIntrospection()'.
Reason: Boolean property 'enableIntrospection' has both an `is` and a `get` getter.
Possible solutions:
1. Remove one of the getters.
2. Annotate one of the getters with @Internal.
Please refer to https://docs.gradle.org/7.3.2/userguide/validation_problems.html#redundant_getters for more details about this problem.
- In plugin 'org.unbroken-dome.xjc' type 'org.unbrokendome.gradle.plugins.xjc.XjcGenerate' property 'extension' has redundant getters: 'getExtension()' and 'isExtension()'.
Reason: Boolean property 'extension' has both an `is` and a `get` getter.
Possible solutions:
1. Remove one of the getters.
2. Annotate one of the getters with @Internal.
Please refer to https://docs.gradle.org/7.3.2/userguide/validation_problems.html#redundant_getters for more details about this problem.
- In plugin 'org.unbroken-dome.xjc' type 'org.unbrokendome.gradle.plugins.xjc.XjcGenerate' property 'noFileHeader' has redundant getters: 'getNoFileHeader()' and 'isNoFileHeader()'.
Reason: Boolean property 'noFileHeader' has both an `is` and a `get` getter.
Possible solutions:
1. Remove one of the getters.
2. Annotate one of the getters with @Internal.
Please refer to https://docs.gradle.org/7.3.2/userguide/validation_problems.html#redundant_getters for more details about this problem.
- In plugin 'org.unbroken-dome.xjc' type 'org.unbrokendome.gradle.plugins.xjc.XjcGenerate' property 'packageLevelAnnotations' has redundant getters: 'getPackageLevelAnnotations()' and 'isPackageLevelAnnota
tions()'.
Reason: Boolean property 'packageLevelAnnotations' has both an `is` and a `get` getter.
Possible solutions:
1. Remove one of the getters.
2. Annotate one of the getters with @Internal.
Please refer to https://docs.gradle.org/7.3.2/userguide/validation_problems.html#redundant_getters for more details about this problem.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels