1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 20:12:07 +01:00

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
This commit is contained in:
Florian Schmaus 2014-04-28 17:10:53 +02:00
parent 858492b177
commit 06c6546d2e

View file

@ -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
}