2014-03-08 11:47:40 +01:00
|
|
|
description = """\
|
|
|
|
Smack core components."""
|
|
|
|
|
2018-05-09 19:44:10 +02:00
|
|
|
ext {
|
|
|
|
xmlUnitVersion = "2.6.0"
|
2018-05-09 20:16:05 +02:00
|
|
|
powerMockVersion = "1.7.3"
|
2018-05-09 19:44:10 +02:00
|
|
|
}
|
|
|
|
|
2014-03-08 11:47:40 +01:00
|
|
|
dependencies {
|
|
|
|
compile 'xpp3:xpp3:1.1.4c'
|
2014-07-15 18:00:55 +02:00
|
|
|
compile "org.jxmpp:jxmpp-core:$jxmppVersion"
|
2015-02-14 17:15:02 +01:00
|
|
|
compile "org.jxmpp:jxmpp-jid:$jxmppVersion"
|
2018-04-24 21:41:31 +02:00
|
|
|
compile "org.minidns:minidns-core:$miniDnsVersion"
|
2015-02-14 17:15:02 +01:00
|
|
|
testCompile "org.jxmpp:jxmpp-jid:$jxmppVersion:tests"
|
2018-05-09 19:59:39 +02:00
|
|
|
testCompile "org.junit.jupiter:junit-jupiter-api:$junitVersion"
|
|
|
|
testCompile "org.junit.vintage:junit-vintage-engine:$junitVersion"
|
2018-05-09 19:44:10 +02:00
|
|
|
testCompile "org.xmlunit:xmlunit-core:$xmlUnitVersion"
|
|
|
|
testCompile "org.xmlunit:xmlunit-legacy:$xmlUnitVersion"
|
2018-05-09 20:16:05 +02:00
|
|
|
testCompile "org.powermock:powermock-module-junit4:$powerMockVersion"
|
|
|
|
testCompile "org.powermock:powermock-module-junit4-rule:$powerMockVersion"
|
|
|
|
testCompile "org.powermock:powermock-api-mockito2:$powerMockVersion"
|
2018-05-09 20:20:45 +02:00
|
|
|
testCompile 'com.jamesmurty.utils:java-xmlbuilder:1.2'
|
2014-09-07 17:22:55 +02:00
|
|
|
testCompile 'net.iharder:base64:2.3.8'
|
2014-03-08 11:47:40 +01:00
|
|
|
}
|
2014-05-05 09:59:21 +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) {
|
2014-08-08 15:09:08 +02:00
|
|
|
fileContent = version + ' (' + gitCommit + ' ' + builtDate + ')'
|
2014-03-08 11:47:40 +01:00
|
|
|
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)
|