From 06c6546d2ee9bb136c806c99717e0c7fa9bc0e87 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 28 Apr 2014 17:10:53 +0200 Subject: [PATCH] Strip 'smack-' prefix from artifacts This was causing some trouble, e.g. the maven plugin resolved the dependency only to artifactId 'core', when it should be 'smack-core'. It was previously working, but likely broke when the configuration of the subprojects was put into their own build.gradle files. SMACK-265 --- build.gradle | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index 21e699db8..8e0120a3f 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,6 @@ import org.gradle.plugins.signing.Sign allprojects { apply plugin: 'java' - apply plugin: 'maven' apply plugin: 'eclipse' ext { @@ -38,7 +37,6 @@ allprojects { // 4.0.0-SNAPSHOT-2014-05-01 becomes 4.0.0.SNAPSHOT-2014-05-01 'Bundle-Version': version.replaceFirst("-", ".")) } - } gradle.taskGraph.whenReady { taskGraph -> @@ -94,6 +92,7 @@ Smack ${version} ${oneLineDesc}.""" subprojects { + apply plugin: 'maven' apply plugin: 'osgi' apply plugin: 'signing' apply plugin: 'checkstyle' @@ -105,17 +104,11 @@ subprojects { mavenLocal() mavenCentral() } - tasks.withType(Jar) { - baseName = 'smack' - appendix project.name - } task sourcesJar(type: Jar, dependsOn: classes) { - appendix project.name classifier = 'sources' from sourceSets.main.allSource } task javadocJar(type: Jar, dependsOn: javadoc) { - appendix project.name classifier = 'javadoc' from javadoc.destinationDir } @@ -196,7 +189,7 @@ subprojects { (subprojects - project(':core'))*.jar { manifest { - attributes('Bundle-SymbolicName': project.group + '-' + appendix, + attributes('Bundle-SymbolicName': project.group + '-' + project.name, 'Fragment-Host': project.group) from sharedManifest }