mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 09:09:38 +02:00
Prefix subprojects with 'smack-'
instead of using the old baseName=smack appendix=project.name approach, we are now going convention over configuration and renaming the subprojects directories to the proper name. Having a prefix is actually very helpful, because the resulting libraries will be named like the subproject. And a core-4.0.0-rc1.jar is not as explicit about what it actually *is* as a smack-core-4.0.0-rc1.jar. SMACK-265
This commit is contained in:
parent
b6fb1f3743
commit
91fd15ad86
758 changed files with 42 additions and 42 deletions
|
@ -1,57 +0,0 @@
|
|||
description = """\
|
||||
Smack core components."""
|
||||
|
||||
configurations {
|
||||
compression
|
||||
dns
|
||||
}
|
||||
dependencies {
|
||||
compile 'xpp3:xpp3:1.1.4c'
|
||||
testCompile 'junit:junit:4.+'
|
||||
testCompile 'xmlunit:xmlunit:1.5'
|
||||
testCompile 'org.powermock:powermock-module-junit4:1.5.+'
|
||||
testCompile 'org.powermock:powermock-api-mockito:1.5.+'
|
||||
testCompile 'com.jamesmurty.utils:java-xmlbuilder:0.6+'
|
||||
}
|
||||
jar {
|
||||
manifest {
|
||||
attributes('Bundle-SymbolicName': project.group,
|
||||
'Eclipse-ExtensibleAPI: true')
|
||||
from sharedManifest
|
||||
}
|
||||
}
|
||||
task compressionJar(type: Jar) {
|
||||
appendix += '-compression'
|
||||
dependsOn classes
|
||||
from sourceSets.main.output
|
||||
include('org/jivesoftware/smack/compression/**')
|
||||
include('org/jivesoftware/smack/SmackConfiguration.class')
|
||||
}
|
||||
task dnsJar(type: Jar) {
|
||||
appendix += '-dns'
|
||||
dependsOn classes
|
||||
from sourceSets.main.output
|
||||
include('org/jivesoftware/smack/util/dns/**')
|
||||
include('org/jivesoftware/smack/util/DNSUtil.class')
|
||||
}
|
||||
artifacts {
|
||||
compression compressionJar
|
||||
dns dnsJar
|
||||
}
|
||||
class CreateFileTask extends DefaultTask {
|
||||
@Input
|
||||
String fileContent
|
||||
|
||||
@OutputFile
|
||||
File outputFile
|
||||
|
||||
@TaskAction
|
||||
def createFile() {
|
||||
outputFile.text = fileContent
|
||||
}
|
||||
}
|
||||
task createVersionResource(type: CreateFileTask) {
|
||||
fileContent = version
|
||||
outputFile = new File(projectDir, 'src/main/resources/org.jivesoftware.smack/version')
|
||||
}
|
||||
compileJava.dependsOn(createVersionResource)
|
Loading…
Add table
Add a link
Reference in a new issue