mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-14 16:22:07 +01:00
74d188aabb
Now that we do not longer use the appendix for the subproject name (91fd15) we need to set instead of appending the appendix in smack-core.
57 lines
1.2 KiB
Groovy
57 lines
1.2 KiB
Groovy
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+'
|
|
}
|
|
|
|
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)
|