2014-12-18 12:57:21 +01:00
|
|
|
// Note that this is also declared in the main build.gradle for
|
|
|
|
// subprojects, but since evaluationDependsOnChildren is enabled we
|
|
|
|
// need to declare it here too
|
|
|
|
apply plugin: 'osgi'
|
|
|
|
|
2014-03-08 11:47:40 +01:00
|
|
|
description = """\
|
|
|
|
Smack core components."""
|
|
|
|
|
|
|
|
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"
|
|
|
|
testCompile "org.jxmpp:jxmpp-jid:$jxmppVersion:tests"
|
2015-03-18 09:52:33 +01:00
|
|
|
testCompile "junit:junit:$junitVersion"
|
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-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)
|
2014-12-18 12:57:21 +01:00
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
instruction 'DynamicImport-Package', '*'
|
|
|
|
}
|
|
|
|
}
|