mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +01:00
Don't use gradle 'configurations' in smack-core
Fixes SMACK-587
This commit is contained in:
parent
ade6d528e8
commit
328b733f7e
5 changed files with 4 additions and 32 deletions
|
@ -3,6 +3,6 @@ Compression with jzlib
|
||||||
Allow to compress the XMPP stream with help of jzlib."""
|
Allow to compress the XMPP stream with help of jzlib."""
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(path: ':smack-core', configuration: 'compression')
|
compile project(path: ':smack-core')
|
||||||
compile 'com.jcraft:jzlib:1.1.3'
|
compile 'com.jcraft:jzlib:1.1.3'
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
description = """\
|
description = """\
|
||||||
Smack core components."""
|
Smack core components."""
|
||||||
|
|
||||||
configurations {
|
|
||||||
compression
|
|
||||||
dns
|
|
||||||
sasl
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'xpp3:xpp3:1.1.4c'
|
compile 'xpp3:xpp3:1.1.4c'
|
||||||
compile "org.jxmpp:jxmpp-core:$jxmppVersion"
|
compile "org.jxmpp:jxmpp-core:$jxmppVersion"
|
||||||
|
@ -19,28 +13,6 @@ dependencies {
|
||||||
testCompile 'net.iharder:base64:2.3.8'
|
testCompile 'net.iharder:base64:2.3.8'
|
||||||
}
|
}
|
||||||
|
|
||||||
task compressionJar(type: Jar) {
|
|
||||||
appendix = 'compression'
|
|
||||||
dependsOn classes
|
|
||||||
from sourceSets.main.output
|
|
||||||
include('org/jivesoftware/smack/compression/**')
|
|
||||||
include('org/jivesoftware/smack/SmackConfiguration.class')
|
|
||||||
}
|
|
||||||
|
|
||||||
task dnsJar(type: Jar) {
|
|
||||||
appendix = 'dns'
|
|
||||||
dependsOn classes
|
|
||||||
from sourceSets.main.output
|
|
||||||
include('org/jivesoftware/smack/util/dns/**')
|
|
||||||
include('org/jivesoftware/smack/util/DNSUtil.class')
|
|
||||||
include('org/jivesoftware/smack/initializer/**')
|
|
||||||
}
|
|
||||||
|
|
||||||
artifacts {
|
|
||||||
compression compressionJar
|
|
||||||
dns dnsJar
|
|
||||||
}
|
|
||||||
|
|
||||||
class CreateFileTask extends DefaultTask {
|
class CreateFileTask extends DefaultTask {
|
||||||
@Input
|
@Input
|
||||||
String fileContent
|
String fileContent
|
||||||
|
|
|
@ -4,6 +4,6 @@ Use dnsjava for DNS SRV lookups. For platforms that don't provide the
|
||||||
javax.naming API (e.g. Android)."""
|
javax.naming API (e.g. Android)."""
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(path: ':smack-core', configuration: 'dns')
|
compile project(path: ':smack-core')
|
||||||
compile 'dnsjava:dnsjava:2.1.+'
|
compile 'dnsjava:dnsjava:2.1.+'
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,5 +4,5 @@ Use javax.naming for DNS SRV lookups. The javax.naming API is availabe in JavaSE
|
||||||
since Java7."""
|
since Java7."""
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(path: ':smack-core', configuration: 'dns')
|
compile project(path: ':smack-core')
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ Use minidns for DNS SRV lookups. For platforms that don't provide the
|
||||||
javax.naming API (e.g. Android)."""
|
javax.naming API (e.g. Android)."""
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(path: ':smack-core', configuration: 'dns')
|
compile project(path: ':smack-core')
|
||||||
compile 'de.measite.minidns:minidns:0.1.1'
|
compile 'de.measite.minidns:minidns:0.1.1'
|
||||||
compile "org.jxmpp:jxmpp-util-cache:$jxmppVersion"
|
compile "org.jxmpp:jxmpp-util-cache:$jxmppVersion"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue