Added gradle configuration for artifact publishing

parent e6433c8f
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
sourceCompatibility = 1.7
version = '0.50.0-SNAPSHOT'
springVersion = '4.0.+'
springSecurityVersion = '3.2.+'
repositories {
mavenCentral()
mavenLocal()
mavenCentral()
mavenLocal()
}
dependencies {
compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
compile group: 'org.springframework', name: 'spring-context', version: springVersion
compile group: 'org.springframework.security', name: 'spring-security-config', version: springSecurityVersion
compile group: 'org.codehaus.jackson', name: 'jackson-mapper-lgpl', version: '1.9+'
testCompile group: 'junit', name: 'junit', version: '4.+'
testCompile group: 'org.springframework', name: 'spring-test', version: springVersion
compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
compile group: 'org.springframework', name: 'spring-context', version: springVersion
compile group: 'org.springframework.security', name: 'spring-security-config', version: springSecurityVersion
compile group: 'org.codehaus.jackson', name: 'jackson-mapper-lgpl', version: '1.9+'
testCompile group: 'junit', name: 'junit', version: '4.+'
testCompile group: 'org.springframework', name: 'spring-test', version: springVersion
}
test { systemProperties 'property': 'value' }
test {
systemProperties 'property': 'value'
publishing {
repositories {
maven {
credentials {
username mavenUsername
password mavenPassword
}
url "https://maven.mni.thm.de/content/repositories/snapshots/"
}
}
}
}
\ No newline at end of file
jar {
manifest {
attributes 'Implementation-Title': 'Connector-Client', 'Implementation-Version': version
}
manifest {
attributes 'Implementation-Title': 'Connector-Client', 'Implementation-Version': version
}
}
repositories {
mavenCentral()
}
repositories { mavenCentral() }
dependencies {
compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
......@@ -14,18 +12,19 @@ dependencies {
compile group: 'org.springframework', name: 'spring-context', version: springVersion
compile group: 'org.springframework', name: 'spring-web', version: springVersion
compile group: 'de.thm.arsnova.connector', name: 'connector-model', version: '0.+'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
test {
systemProperties 'property': 'value'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
uploadArchives {
repositories {
flatDir {
dirs 'repos'
}
}
}
\ No newline at end of file
test { systemProperties 'property': 'value' }
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'de.thm.arsnova.connector'
artifactId 'connector-client'
version version
from components.java
}
}
}
apply plugin: 'jaxb'
jar {
manifest {
attributes 'Implementation-Title': 'Connector-Model', 'Implementation-Version': version
}
manifest {
attributes 'Implementation-Title': 'Connector-Model', 'Implementation-Version': version
}
}
dependencies {
jaxb 'com.sun.xml.bind:jaxb-xjc:2.2.4-1'
}
dependencies { jaxb 'com.sun.xml.bind:jaxb-xjc:2.2.4-1' }
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'no.entitas.gradle.jaxb:gradle-jaxb-plugin:2.0'
}
repositories { mavenCentral() }
dependencies { classpath 'no.entitas.gradle.jaxb:gradle-jaxb-plugin:2.0' }
}
sourceSets {
main {
jaxb {
srcDir 'src/main/resources/'
}
}
main {
jaxb { srcDir 'src/main/resources/' }
}
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'de.thm.arsnova.connector'
artifactId 'connector-model'
version version
from components.java
}
}
}
\ No newline at end of file
......@@ -2,14 +2,12 @@ apply plugin: 'eclipse-wtp'
apply plugin: 'war'
jar {
manifest {
attributes 'Implementation-Title': 'Connector-Service', 'Implementation-Version': version
}
manifest {
attributes 'Implementation-Title': 'Connector-Service', 'Implementation-Version': version
}
}
repositories {
mavenCentral()
}
repositories { mavenCentral() }
dependencies {
compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
......@@ -26,20 +24,21 @@ dependencies {
compile group: 'cglib', name: 'cglib', version: '3.0+'
compile group: 'de.thm.arsnova.connector', name: 'connector-model', version: '0.+'
compile group: 'de.thm.arsnova.connector', name: 'connector-client', version: '0.+'
testCompile group: 'junit', name: 'junit', version: '4.+'
testCompile group: 'org.mockito', name: 'mockito-core', version: '1.9.+'
testCompile group: 'org.dbunit', name: 'dbunit', version: '2.4.+'
}
test {
systemProperties 'property': 'value'
testCompile group: 'junit', name: 'junit', version: '4.+'
testCompile group: 'org.mockito', name: 'mockito-core', version: '1.9.+'
testCompile group: 'org.dbunit', name: 'dbunit', version: '2.4.+'
}
uploadArchives {
repositories {
flatDir {
dirs 'repos'
}
}
test { systemProperties 'property': 'value' }
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'de.thm.arsnova.connector'
artifactId 'connector-service'
version version
from components.web
}
}
}
\ No newline at end of file
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