2014-03-08 11:47:40 +01:00
|
|
|
description = """\
|
|
|
|
Smack core components."""
|
|
|
|
|
2018-05-09 19:44:10 +02:00
|
|
|
ext {
|
2019-05-06 22:06:13 +02:00
|
|
|
xmlUnitVersion = '2.6.2'
|
2018-05-09 19:44:10 +02:00
|
|
|
}
|
|
|
|
|
2014-03-08 11:47:40 +01:00
|
|
|
dependencies {
|
2019-05-06 22:06:13 +02:00
|
|
|
compile project(':smack-xmlparser')
|
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"
|
2019-05-06 22:06:13 +02:00
|
|
|
testCompile project(':smack-xmlparser-stax')
|
|
|
|
testCompile project(':smack-xmlparser-xpp3')
|
2015-02-14 17:15:02 +01:00
|
|
|
testCompile "org.jxmpp:jxmpp-jid:$jxmppVersion:tests"
|
2018-05-09 19:44:10 +02:00
|
|
|
testCompile "org.xmlunit:xmlunit-core:$xmlUnitVersion"
|
2019-05-07 18:51:52 +02:00
|
|
|
// Explictily add assertj-core which is a dependency of
|
|
|
|
// xmlunit-assertj, but gradle fails to resolves it with:
|
|
|
|
// Execution failed for task ':smack-core:compileTestJava'.
|
|
|
|
// > Could not resolve all files for configuration ':smack-core:testCompileClasspath'.
|
|
|
|
// > Could not find org.assertj:assertj-core:.
|
|
|
|
// Required by:
|
|
|
|
// project :smack-core > org.xmlunit:xmlunit-assertj:2.6.2
|
|
|
|
testCompile "org.assertj:assertj-core:3.11.1"
|
|
|
|
testCompile "org.xmlunit:xmlunit-assertj:$xmlUnitVersion"
|
2018-05-09 20:20:45 +02:00
|
|
|
testCompile 'com.jamesmurty.utils:java-xmlbuilder:1.2'
|
2020-03-13 16:58:45 +01:00
|
|
|
testCompile 'org.bouncycastle:bcprov-jdk15on:1.64'
|
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)
|