mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-29 17:52:06 +01:00
da7f4495dc
bring every class of smack-core and its dependencies in scope of smack-sasl-(javax|provided).
61 lines
1.4 KiB
Groovy
61 lines
1.4 KiB
Groovy
description = """\
|
|
Smack core components."""
|
|
|
|
configurations {
|
|
compression
|
|
dns
|
|
sasl
|
|
}
|
|
|
|
dependencies {
|
|
compile 'xpp3:xpp3:1.1.4c'
|
|
compile "org.jxmpp:jxmpp-core:$jxmppVersion"
|
|
// compile "org.igniterealtime.jxmpp:jxmpp-jid:$jxmppVersion"
|
|
testCompile 'junit:junit:4.11'
|
|
testCompile 'xmlunit:xmlunit:1.5'
|
|
testCompile 'org.powermock:powermock-module-junit4:1.5.5'
|
|
testCompile 'org.powermock:powermock-api-mockito:1.5.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')
|
|
include('org/jivesoftware/smack/initializer/**')
|
|
}
|
|
|
|
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 + ' (' + gitCommit + ' ' + builtDate + ')'
|
|
outputFile = new File(projectDir, 'src/main/resources/org.jivesoftware.smack/version')
|
|
}
|
|
|
|
compileJava.dependsOn(createVersionResource)
|