2020-04-04 13:03:31 +02:00
|
|
|
description = """\
|
|
|
|
Full Smack library for Java SE."""
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
api project(':smack-bosh')
|
|
|
|
api project(':smack-debug')
|
|
|
|
api project(':smack-experimental')
|
|
|
|
api project(':smack-extensions')
|
2020-09-23 17:50:11 +02:00
|
|
|
api project(':smack-java8')
|
2020-04-04 13:03:31 +02:00
|
|
|
api project(':smack-legacy')
|
|
|
|
api project(':smack-omemo')
|
|
|
|
api project(':smack-openpgp')
|
|
|
|
api project(':smack-resolver-minidns')
|
|
|
|
api project(':smack-resolver-minidns-dox')
|
2021-01-25 19:51:45 +01:00
|
|
|
// TODO: Change this to smack-websocket-java11 once it arrives.
|
|
|
|
api project(':smack-websocket-okhttp')
|
2020-04-04 13:03:31 +02:00
|
|
|
api project(':smack-tcp')
|
|
|
|
|
2020-11-08 23:01:39 +01:00
|
|
|
testImplementation(testFixtures(project(":smack-core")))
|
2020-04-11 21:59:21 +02:00
|
|
|
testImplementation 'org.jgrapht:jgrapht-io:1.3.1'
|
2021-04-18 18:58:50 +02:00
|
|
|
testImplementation "org.reflections:reflections:${orgReflectionsVersion}"
|
2020-04-04 13:03:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
task printModularXmppClientToServerConnectionStateGraph(type: JavaExec) {
|
|
|
|
classpath sourceSets.main.runtimeClasspath
|
|
|
|
main 'org.jivesoftware.smack.full.ModularXmppClientToServerConnectionTool'
|
|
|
|
}
|
|
|
|
|
|
|
|
task generateModularXmppClientToServerConnectionStateGraph(type: JavaExec) {
|
|
|
|
// TODO: Filter out all files which do not contain the String
|
|
|
|
// StateDescriptor.
|
|
|
|
inputs.files file('..').listFiles().findAll {it.name.endsWith('.java')}
|
|
|
|
outputs.files 'src/javadoc/org/jivesoftware/smack/full/doc-files/ModularXmppClientToServerConnectionStateGraph.dot'
|
|
|
|
classpath sourceSets.main.runtimeClasspath
|
|
|
|
main 'org.jivesoftware.smack.full.ModularXmppClientToServerConnectionTool'
|
|
|
|
args outputs.files
|
|
|
|
}
|
|
|
|
|
|
|
|
task convertModularXmppClientToServerConnectionStateGraphDotToPng(type: Exec) {
|
|
|
|
dependsOn generateModularXmppClientToServerConnectionStateGraph
|
|
|
|
inputs.files 'src/javadoc/org/jivesoftware/smack/full/doc-files/ModularXmppClientToServerConnectionStateGraph.dot'
|
|
|
|
outputs.files 'src/javadoc/org/jivesoftware/smack/full/doc-files/ModularXmppClientToServerConnectionStateGraph.png'
|
|
|
|
|
|
|
|
executable 'dot'
|
|
|
|
args "-Tpng", "-o", "${outputs.files.first()}", "${inputs.files.first()}"
|
|
|
|
}
|
|
|
|
|
|
|
|
task cleanGenerateFiles(type: Delete) {
|
|
|
|
delete 'src/javadoc/org/jivesoftware/smack/full/doc-files/ModularXmppClientToServerConnectionStateGraph.dot', 'src/javadoc/org/jivesoftware/smack/full/doc-files/ModularXmppClientToServerConnectionStateGraph.png'
|
|
|
|
}
|
|
|
|
clean.dependsOn cleanGenerateFiles
|