mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-25 21:42:07 +01:00
vanitasvitae
e86700b040
This commit adds the modules smack-omemo and smack-omemo-signal. smack-omemo is licensed under the Apache license like the rest of the smack project. smack-omemo-signal on the other hand is licensed under the GPLv3. Due to the fact, that smack-omemo is not of much use without smack-omemo-signal, the OMEMO feature can currently only be used by GPLv3 compatible software. This may change in the future, when a more permissively licensed module becomes available. Fixes SMACK-743.
48 lines
No EOL
1.3 KiB
Groovy
48 lines
No EOL
1.3 KiB
Groovy
// 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'
|
|
|
|
description = """\
|
|
Smack core components."""
|
|
|
|
dependencies {
|
|
compile 'xpp3:xpp3:1.1.4c'
|
|
compile "org.jxmpp:jxmpp-core:$jxmppVersion"
|
|
compile "org.jxmpp:jxmpp-jid:$jxmppVersion"
|
|
testCompile "org.jxmpp:jxmpp-jid:$jxmppVersion:tests"
|
|
testCompile "junit:junit:$junitVersion"
|
|
testCompile 'xmlunit:xmlunit:1.5'
|
|
testCompile "org.powermock:powermock-module-junit4:1.6.4"
|
|
testCompile "org.powermock:powermock-module-junit4-rule:1.6.4"
|
|
testCompile "org.powermock:powermock-api-mockito:1.6.4"
|
|
testCompile "org.powermock:powermock-classloading-xstream:1.6.4"
|
|
testCompile 'com.jamesmurty.utils:java-xmlbuilder:0.6'
|
|
testCompile 'net.iharder:base64:2.3.8'
|
|
}
|
|
|
|
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)
|
|
|
|
jar {
|
|
manifest {
|
|
instruction 'DynamicImport-Package', '*'
|
|
}
|
|
} |