mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 14:02:06 +01:00
Add newlines to smack-core/build.gradle
This commit is contained in:
parent
f940d72fcd
commit
0e664863d9
1 changed files with 6 additions and 0 deletions
|
@ -5,6 +5,7 @@ configurations {
|
||||||
compression
|
compression
|
||||||
dns
|
dns
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'xpp3:xpp3:1.1.4c'
|
compile 'xpp3:xpp3:1.1.4c'
|
||||||
testCompile 'junit:junit:4.+'
|
testCompile 'junit:junit:4.+'
|
||||||
|
@ -27,6 +28,7 @@ task compressionJar(type: Jar) {
|
||||||
include('org/jivesoftware/smack/compression/**')
|
include('org/jivesoftware/smack/compression/**')
|
||||||
include('org/jivesoftware/smack/SmackConfiguration.class')
|
include('org/jivesoftware/smack/SmackConfiguration.class')
|
||||||
}
|
}
|
||||||
|
|
||||||
task dnsJar(type: Jar) {
|
task dnsJar(type: Jar) {
|
||||||
appendix += '-dns'
|
appendix += '-dns'
|
||||||
dependsOn classes
|
dependsOn classes
|
||||||
|
@ -34,10 +36,12 @@ task dnsJar(type: Jar) {
|
||||||
include('org/jivesoftware/smack/util/dns/**')
|
include('org/jivesoftware/smack/util/dns/**')
|
||||||
include('org/jivesoftware/smack/util/DNSUtil.class')
|
include('org/jivesoftware/smack/util/DNSUtil.class')
|
||||||
}
|
}
|
||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
compression compressionJar
|
compression compressionJar
|
||||||
dns dnsJar
|
dns dnsJar
|
||||||
}
|
}
|
||||||
|
|
||||||
class CreateFileTask extends DefaultTask {
|
class CreateFileTask extends DefaultTask {
|
||||||
@Input
|
@Input
|
||||||
String fileContent
|
String fileContent
|
||||||
|
@ -50,8 +54,10 @@ class CreateFileTask extends DefaultTask {
|
||||||
outputFile.text = fileContent
|
outputFile.text = fileContent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task createVersionResource(type: CreateFileTask) {
|
task createVersionResource(type: CreateFileTask) {
|
||||||
fileContent = version
|
fileContent = version
|
||||||
outputFile = new File(projectDir, 'src/main/resources/org.jivesoftware.smack/version')
|
outputFile = new File(projectDir, 'src/main/resources/org.jivesoftware.smack/version')
|
||||||
}
|
}
|
||||||
|
|
||||||
compileJava.dependsOn(createVersionResource)
|
compileJava.dependsOn(createVersionResource)
|
||||||
|
|
Loading…
Reference in a new issue