Commit 63962361 authored by Paul-Christian Volkmer's avatar Paul-Christian Volkmer
Browse files

Changed gradle build files to use maven plugin for archive upload

This prevents generated pom file to set all dependencies as runtime scope.
parent fd9442ef
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'maven'
sourceCompatibility = 1.7
version = '0.70.1-SNAPSHOT'
group = 'de.thm.arsnova.connector'
version = '0.70.2-SNAPSHOT'
ext {
springVersion = '4.0.4.RELEASE'
......@@ -28,16 +30,21 @@ subprojects {
test { systemProperties 'property': 'value' }
publishing {
repositories {
maven {
credentials {
username project.hasProperty('mavenUsername') ? mavenUsername : ''
password project.hasProperty('mavenPassword') ? mavenPassword : ''
}
url project.hasProperty('mavenUrl') ? mavenUrl : "http://maven.mni.thm.de/content/repositories/snapshots/"
configurations {
deployerJars
}
uploadArchives {
repositories.mavenDeployer {
configuration = configurations.deployerJars
repository(
url: project.hasProperty('mavenUrl') ? mavenUrl : "http://maven.mni.thm.de/content/repositories/snapshots/"
) {
authentication(
userName: project.hasProperty('mavenUsername') ? mavenUsername : '',
password: project.hasProperty('mavenPassword') ? mavenUsername : ''
)
}
mavenLocal()
}
}
}
......@@ -10,7 +10,7 @@ repositories {
}
dependencies {
compile project (':connector-model') { transitive = true }
compile project (':connector-model')
compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
compile group: 'commons-codec', name: 'commons-codec', version: '1.7'
compile group: 'org.springframework', name: 'spring-context', version: springVersion
......@@ -20,14 +20,3 @@ dependencies {
}
test { systemProperties 'property': 'value' }
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'de.thm.arsnova.connector'
artifactId 'connector-client'
version version
from components.java
}
}
}
......@@ -23,14 +23,3 @@ sourceSets {
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
......@@ -36,14 +36,3 @@ dependencies {
}
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