mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Add initializer tests and move classpath files
The initializer tests verify that every non-optional initializer, this includes Providers, is loadable. Creating files under META-INF is not considered best practice. Smack's configuration and provider files reside now in classpath directory qualified by Smack's package namespace.
This commit is contained in:
parent
8d3814a8a7
commit
2ad517b6dd
30 changed files with 411 additions and 141 deletions
18
build.gradle
18
build.gradle
|
@ -220,6 +220,24 @@ Smack core components.
|
|||
compression compressionJar
|
||||
dns dnsJar
|
||||
}
|
||||
task createVersionResource(type: CreateFileTask) {
|
||||
fileContent = version
|
||||
outputFile = new File(projectDir, 'src/main/resources/org.jivesoftware.smack/version')
|
||||
}
|
||||
compileJava.dependsOn(createVersionResource)
|
||||
}
|
||||
|
||||
class CreateFileTask extends DefaultTask {
|
||||
@Input
|
||||
String fileContent
|
||||
|
||||
@OutputFile
|
||||
File outputFile
|
||||
|
||||
@TaskAction
|
||||
def createFile() {
|
||||
outputFile.text = fileContent
|
||||
}
|
||||
}
|
||||
|
||||
project(':compression-jzlib') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue