2014-03-08 11:47:40 +01:00
|
|
|
description = """\
|
|
|
|
Smack core components."""
|
|
|
|
|
2014-06-01 12:23:13 +02:00
|
|
|
ext {
|
|
|
|
jxmppVersion = "0.1.0-alpha1-SNAPSHOT"
|
|
|
|
}
|
|
|
|
|
2014-03-08 11:47:40 +01:00
|
|
|
configurations {
|
|
|
|
compression
|
|
|
|
dns
|
|
|
|
}
|
2014-05-05 09:56:52 +02:00
|
|
|
|
2014-03-08 11:47:40 +01:00
|
|
|
dependencies {
|
|
|
|
compile 'xpp3:xpp3:1.1.4c'
|
2014-06-01 12:23:13 +02:00
|
|
|
compile "org.igniterealtime.jxmpp:jxmpp-core:$jxmppVersion"
|
|
|
|
// compile "org.igniterealtime.jxmpp:jxmpp-jid:$jxmppVersion"
|
2014-06-03 13:10:43 +02:00
|
|
|
testCompile 'junit:junit:4.11'
|
2014-03-08 11:47:40 +01:00
|
|
|
testCompile 'xmlunit:xmlunit:1.5'
|
2014-06-03 13:10:43 +02:00
|
|
|
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'
|
2014-03-08 11:47:40 +01:00
|
|
|
}
|
2014-05-05 09:59:21 +02:00
|
|
|
|
2014-03-08 11:47:40 +01:00
|
|
|
task compressionJar(type: Jar) {
|
2014-05-05 10:34:34 +02:00
|
|
|
appendix = 'compression'
|
2014-03-08 11:47:40 +01:00
|
|
|
dependsOn classes
|
|
|
|
from sourceSets.main.output
|
|
|
|
include('org/jivesoftware/smack/compression/**')
|
2014-03-10 10:20:52 +01:00
|
|
|
include('org/jivesoftware/smack/SmackConfiguration.class')
|
2014-03-08 11:47:40 +01:00
|
|
|
}
|
2014-05-05 09:56:52 +02:00
|
|
|
|
2014-03-08 11:47:40 +01:00
|
|
|
task dnsJar(type: Jar) {
|
2014-05-05 10:34:34 +02:00
|
|
|
appendix = 'dns'
|
2014-03-08 11:47:40 +01:00
|
|
|
dependsOn classes
|
|
|
|
from sourceSets.main.output
|
|
|
|
include('org/jivesoftware/smack/util/dns/**')
|
|
|
|
include('org/jivesoftware/smack/util/DNSUtil.class')
|
2014-06-17 18:01:36 +02:00
|
|
|
include('org/jivesoftware/smack/initializer/**')
|
2014-03-08 11:47:40 +01:00
|
|
|
}
|
2014-05-05 09:56:52 +02:00
|
|
|
|
2014-03-08 11:47:40 +01:00
|
|
|
artifacts {
|
|
|
|
compression compressionJar
|
|
|
|
dns dnsJar
|
|
|
|
}
|
2014-05-05 09:56:52 +02:00
|
|
|
|
2014-03-08 11:47:40 +01:00
|
|
|
class CreateFileTask extends DefaultTask {
|
|
|
|
@Input
|
|
|
|
String fileContent
|
|
|
|
|
|
|
|
@OutputFile
|
|
|
|
File outputFile
|
|
|
|
|
|
|
|
@TaskAction
|
|
|
|
def createFile() {
|
|
|
|
outputFile.text = fileContent
|
|
|
|
}
|
|
|
|
}
|
2014-05-05 09:56:52 +02:00
|
|
|
|
2014-03-08 11:47:40 +01:00
|
|
|
task createVersionResource(type: CreateFileTask) {
|
|
|
|
fileContent = version
|
|
|
|
outputFile = new File(projectDir, 'src/main/resources/org.jivesoftware.smack/version')
|
|
|
|
}
|
2014-05-05 09:56:52 +02:00
|
|
|
|
2014-03-08 11:47:40 +01:00
|
|
|
compileJava.dependsOn(createVersionResource)
|