Commit 45fd863c authored by Daniel Gerhardt's avatar Daniel Gerhardt

Migrate to a maintained Gradle plugin for XJC

parent 80f6185d
......@@ -6,7 +6,6 @@
*.properties
*/target/*
target/*
*/src/main/jaxb/*
*/build/*
.gradle/*
/build/
......
apply plugin: 'com.github.jacobono.jaxb'
jar {
manifest {
attributes 'Implementation-Title': 'Connector-Model', 'Implementation-Version': version
}
}
buildscript {
repositories {
jcenter()
mavenCentral()
mavenLocal()
}
}
plugins {
id "org.openrepose.gradle.plugins.jaxb" version "2.5.0"
}
dependencies { classpath 'com.github.jacobono:gradle-jaxb-plugin:1.3.5' }
jar {
manifest {
attributes 'Implementation-Title': 'Connector-Model', 'Implementation-Version': version
}
}
dependencies {
jaxb 'com.sun.xml.bind:jaxb-xjc:2.2.8-b01'
jaxb 'com.sun.xml.bind:jaxb-impl:2.2.8-b01'
jaxb 'javax.xml.bind:jaxb-api:2.2.8'
jaxb 'org.glassfish.jaxb:jaxb-xjc:2.3.2'
jaxb 'org.glassfish.jaxb:jaxb-runtime:2.3.2'
jaxb 'jakarta.xml.bind:jakarta.xml.bind-api:2.3.2'
}
jaxb {
xsdDir = "${project.name}/src/main/resources"
sourceSets {
main {
java {
srcDir 'build/generated-sources/xjc'
}
}
}
build.finalizedBy(xjc)
jaxb {
xsdDir = "${project.projectDir}/src/main/resources"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment