forked from bjornvester/xjc-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
55 lines (48 loc) · 1.58 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
plugins {
kotlin("jvm") version "1.3.50"
id("java-gradle-plugin")
id("com.gradle.plugin-publish") version "0.10.1"
}
group = "com.github.bjornvester"
version = "1.3"
allprojects {
repositories {
jcenter()
}
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
compileOnly("org.glassfish.jaxb:jaxb-xjc:2.3.2")
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class).all {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}
tasks.withType<Wrapper> {
distributionType = Wrapper.DistributionType.ALL
gradleVersion = "5.6.2"
}
gradlePlugin {
plugins {
create("xjcPlugin") {
id = "com.github.bjornvester.xjc"
implementationClass = "com.github.bjornvester.xjc.XjcPlugin"
displayName = "Gradle XJC plugin"
description = "A plugin that generates Java source code for XML schemas (xsd files) using the XJC tool. Supports the Gradle build cache and has been tested with Java 8 and 11. Please see the Github project page for details."
}
}
}
pluginBundle {
website = "https://github.com/bjornvester/xjc-gradle-plugin"
vcsUrl = "https://github.com/bjornvester/xjc-gradle-plugin"
tags = listOf("xjc", "jaxb", "xsd")
(plugins) {
"xjcPlugin" {
description = "Changes:\n" +
"- Support for third-party plugins\n" +
"- Renamed the 'xjcBind' configuration to 'xjcBindings'\n"
"- Support for marking the generated code with the @Generated annotation"
}
}
}