forked from bjornvester/wsdl2java-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
75 lines (65 loc) · 2.83 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile
plugins {
`kotlin-dsl`
id("java-gradle-plugin")
id("com.gradle.plugin-publish") version "0.14.0"
}
group = "com.github.bjornvester"
version = "1.2"
repositories {
mavenCentral()
}
tasks.withType<Test>().configureEach {
inputs
.files(layout.projectDirectory.dir("integration-test").asFileTree.matching {
exclude("**/build/**")
exclude("**/gradle/**")
})
.withPathSensitivity(PathSensitivity.RELATIVE)
useJUnitPlatform()
systemProperty("GRADLE_ROOT_FOLDER", projectDir.absolutePath)
systemProperty("GRADLE_PLUGIN_VERSION", version)
}
tasks.withType<Wrapper> {
gradleVersion = "7.1.1"
}
dependencies {
compileOnly("org.apache.cxf:cxf-tools-wsdlto-core:3.4.3")
testImplementation("commons-io:commons-io:2.8.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.1")
testImplementation("org.junit.jupiter:junit-jupiter-params")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
val compiler = javaToolchains.compilerFor {
languageVersion.set(JavaLanguageVersion.of(8))
}
tasks.withType<KotlinJvmCompile>().configureEach {
kotlinOptions.jdkHome = compiler.get().metadata.installationPath.asFile.absolutePath
}
gradlePlugin {
plugins {
create("wsdl2JavaPlugin") {
id = "com.github.bjornvester.wsdl2java"
implementationClass = "com.github.bjornvester.wsdl2java.Wsdl2JavaPlugin"
}
}
}
pluginBundle {
website = "https://github.com/bjornvester/wsdl2java-gradle-plugin"
vcsUrl = "https://github.com/bjornvester/wsdl2java-gradle-plugin"
description = """Adds the CXF wsdl2java tool to your project. Works with Java 8 and 11, and supports the Gradle build cache.
|Please see the Github project page for details.""".trimMargin()
(plugins) {
"wsdl2JavaPlugin" {
displayName = "Gradle Wsdl2Java plugin"
tags = listOf("wsdl2java", "cxf", "wsimport")
description = "Changes:\n" +
" - Verbose is now only enabled by default on the info logging level\n" +
" - The addition of dependencies to the implementation configuration for compiling the generated sources can now be disabled"
" - Added an option for configuring the package name of the generated sources (same as the -p option)"
" - Defaults to CXF version 3.4.4 (from 3.4.3)"
" - Changed default output directory from generated/sources/wsdl2java to generated/sources/wsdl2java/java"
" - Support grouping WSDLs and generate source code for them with different configurations (requires Gradle 7.0+). Not documented yet though."
}
}
}