mirror of https://codeberg.org/Mercury-IM/Smack
40 lines
1023 B
Groovy
40 lines
1023 B
Groovy
description = """\
|
|
Smack core components."""
|
|
|
|
ext {
|
|
xmlUnitVersion = '2.6.2'
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':smack-xmlparser')
|
|
compile "org.jxmpp:jxmpp-core:$jxmppVersion"
|
|
compile "org.jxmpp:jxmpp-jid:$jxmppVersion"
|
|
compile "org.minidns:minidns-core:$miniDnsVersion"
|
|
testCompile project(':smack-xmlparser-stax')
|
|
testCompile project(':smack-xmlparser-xpp3')
|
|
testCompile "org.jxmpp:jxmpp-jid:$jxmppVersion:tests"
|
|
testCompile "org.xmlunit:xmlunit-core:$xmlUnitVersion"
|
|
testCompile "org.xmlunit:xmlunit-legacy:$xmlUnitVersion"
|
|
testCompile 'com.jamesmurty.utils:java-xmlbuilder:1.2'
|
|
}
|
|
|
|
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)
|