1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-25 05:22:06 +01:00
Smack/smack-java11-full/build.gradle
Florian Schmaus 07d9d694da Rename smack-java8(-full) to smack-java11(-full)
To denote that Smack now requires at least Java 11 to run. Fixes
SMACK-953.
2024-09-25 15:28:55 +02:00

56 lines
2.3 KiB
Groovy

plugins {
id 'org.igniterealtime.smack.java-common-conventions'
}
description = """\
Full Smack library for Java SE."""
dependencies {
api project(':smack-bosh')
api project(':smack-debug')
api project(':smack-experimental')
api project(':smack-extensions')
api project(':smack-java11')
api project(':smack-legacy')
api project(':smack-omemo')
api project(':smack-openpgp')
api project(':smack-resolver-minidns')
api project(':smack-resolver-minidns-dox')
// TODO: Change this to smack-websocket-java11 once it arrives.
api project(':smack-websocket-okhttp')
api project(':smack-tcp')
testImplementation(testFixtures(project(":smack-core")))
testImplementation 'org.jgrapht:jgrapht-io:1.3.1'
testImplementation "org.reflections:reflections:${orgReflectionsVersion}"
}
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()}"
}
copyJavadocDocFiles.dependsOn convertModularXmppClientToServerConnectionStateGraphDotToPng
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