1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-18 02:02:04 +01:00
Smack/smack-java8/build.gradle

17 lines
471 B
Groovy
Raw Normal View History

2014-07-20 12:58:36 +02:00
description = """\
Smack for Java7 (or higher).
This is a pseudo-artifact that pulls all the required dependencies to
run Smack on Java 7 (or higher) JVMs. Usually you want to add additional
dependencies to smack-tcp, smack-extensions and smack-experimental."""
2014-07-20 12:58:36 +02:00
dependencies {
compile project(":smack-core")
compile project(":smack-resolver-javax")
compile project(":smack-sasl-javax")
smack-java7: Add missing smack-xmlparser-stax dependency Since 2f667f95a ("gradle: Remove archives configuration") the :smack-repl:printXmppNioTcpConnectionStateGraph JavaExec task failed with > Task :smack-repl:printXmppNioTcpConnectionStateGraph FAILED Exception in thread "main" java.lang.ExceptionInInitializerError at org.jivesoftware.smack.SmackConfiguration.getVersion(SmackConfiguration.java:108) at org.jivesoftware.smack.AbstractXMPPConnection.<clinit>(AbstractXMPPConnection.java:187) at org.igniterealtime.smack.smackrepl.StateGraph.main(StateGraph.java:37) Caused by: java.lang.IllegalStateException: Could not parse Smack configuration file at org.jivesoftware.smack.SmackInitialization.<clinit>(SmackInitialization.java:100) ... 3 more Caused by: java.lang.IllegalStateException: Could not load a XmlPullParserFactory via Service Provider Interface (SPI) at org.jivesoftware.smack.xml.SmackXmlParser.getXmlPullParserFactory(SmackXmlParser.java:34) at org.jivesoftware.smack.xml.SmackXmlParser.newXmlParser(SmackXmlParser.java:53) at org.jivesoftware.smack.util.PacketParserUtils.getParserFor(PacketParserUtils.java:76) at org.jivesoftware.smack.SmackInitialization.processConfigFile(SmackInitialization.java:144) at org.jivesoftware.smack.SmackInitialization.processConfigFile(SmackInitialization.java:139) at org.jivesoftware.smack.SmackInitialization.<clinit>(SmackInitialization.java:97) ... 3 more because no XmlPullParser was registered via SPI. The 'archives' configuration which was removed with 2f667f95a ("gradle: Remove archives configuration"), previously pulled in the parser. Just like smack-android delcares a dependency on smack-xmlparser-xpp3, smack-java7 should declare a dependency on smack-xmlparser-stax.
2019-09-23 15:11:22 +02:00
implementation project(":smack-xmlparser-stax")
2014-07-20 12:58:36 +02:00
}
javadoc {
enabled = false
}