apply plugin: 'java-library-distribution' distributions { main{ distributionBaseName = 'MOA-ASIC' } } configurations { jaxb } dependencies { jaxb group: 'com.sun.xml.bind', name: 'jaxb-xjc', version: '3.0.2' implementation project(':common') implementation project(':moa-sig-lib') implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.15.0' api group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1' api group: 'javax.xml.ws', name: 'jaxws-api', version: '2.3.1' } sourceSets { main { java { srcDirs = ['src/main/java', 'src/generated/java'] } } } task jaxb () { // output directory def jaxbTargetDir = file( "${projectDir}/src/generated/java" ) //jaxbTargetDirMoaSig = file( jaxbTargetDir.path ) // perform actions doLast { jaxbTargetDir.mkdirs() ant.taskdef(name: 'xjc', classname: 'com.sun.tools.xjc.XJCTask', classpath: configurations.jaxb.asPath) //ant.jaxbTargetDirMoaSig = jaxbTargetDir // MOA Sig ant.xjc( destdir: jaxbTargetDir.path, package: 'at.gv.egiz.asic', schema: 'src/main/resources/schemas/asic.xsd' ) } } task releases(type: Copy) { //from jar.outputs from distZip.outputs from distTar.outputs into rootDir.toString() + "/releases/" + version } task publishPubNamePublicationToMavenLocal {}