1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 22:32:06 +01:00

Add newlines to smack-core/build.gradle

This commit is contained in:
Florian Schmaus 2014-05-05 09:56:52 +02:00
parent f940d72fcd
commit 0e664863d9

View file

@ -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)