Payload support
This commit is contained in:
15
build.gradle
15
build.gradle
@@ -145,6 +145,20 @@ allprojects{
|
||||
|
||||
processorFile.text = text.toString().replace(".java", "").replace("/", ".").replace("\\", ".")
|
||||
}
|
||||
|
||||
writePlugins = {
|
||||
new File(rootDir, "annotations/src/main/resources/META-INF/services/").mkdirs()
|
||||
def processorFile = new File(rootDir, "annotations/src/main/resources/META-INF/services/com.sun.source.util.Plugin")
|
||||
def text = new StringBuilder()
|
||||
def files = new File(rootDir, "annotations/src/main/java")
|
||||
files.eachFileRecurse(groovy.io.FileType.FILES){ file ->
|
||||
if(file.name.endsWith(".java") && (file.text.contains(" implements Plugin"))){
|
||||
text.append(file.path.substring(files.path.length() + 1)).append("\n")
|
||||
}
|
||||
}
|
||||
|
||||
processorFile.text = text.toString().replace(".java", "").replace("/", ".").replace("\\", ".")
|
||||
}
|
||||
}
|
||||
|
||||
repositories{
|
||||
@@ -221,6 +235,7 @@ project(":core"){
|
||||
generateLocales()
|
||||
writeVersion()
|
||||
writeProcessors()
|
||||
writePlugins()
|
||||
}
|
||||
|
||||
task copyChangelog{
|
||||
|
||||
Reference in New Issue
Block a user