build.gradle 589 Bytes
Newer Older
1 2 3
apply plugin: 'jaxb'

jar {
4 5 6
	manifest {
		attributes 'Implementation-Title': 'Connector-Model', 'Implementation-Version': version
	}
7 8
}

9
dependencies { jaxb 'com.sun.xml.bind:jaxb-xjc:2.2.4-1' }
10 11

buildscript {
12 13 14 15
	repositories {
		mavenCentral()
		mavenLocal()
	}
16 17

	dependencies { classpath 'no.entitas.gradle.jaxb:gradle-jaxb-plugin:2.0' }
18 19 20
}

sourceSets {
21 22 23 24 25 26 27 28 29 30 31 32 33 34
	main {
		jaxb { srcDir 'src/main/resources/' }
	}
}

publishing {
	publications {
		mavenJava(MavenPublication) {
			groupId 'de.thm.arsnova.connector'
			artifactId 'connector-model'
			version version
			from components.java
		}
	}
35
}