1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-24 03:27:59 +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
dns
}
dependencies {
compile 'xpp3:xpp3:1.1.4c'
testCompile 'junit:junit:4.+'
@ -27,6 +28,7 @@ task compressionJar(type: Jar) {
include('org/jivesoftware/smack/compression/**')
include('org/jivesoftware/smack/SmackConfiguration.class')
}
task dnsJar(type: Jar) {
appendix += '-dns'
dependsOn classes
@ -34,10 +36,12 @@ task dnsJar(type: Jar) {
include('org/jivesoftware/smack/util/dns/**')
include('org/jivesoftware/smack/util/DNSUtil.class')
}
artifacts {
compression compressionJar
dns dnsJar
}
class CreateFileTask extends DefaultTask {
@Input
String fileContent
@ -50,8 +54,10 @@ class CreateFileTask extends DefaultTask {
outputFile.text = fileContent
}
}
task createVersionResource(type: CreateFileTask) {
fileContent = version
outputFile = new File(projectDir, 'src/main/resources/org.jivesoftware.smack/version')
}
compileJava.dependsOn(createVersionResource)