mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2024-12-22 16:48:27 +01:00
[CI SKIP] Added debug messages check when building project
This commit is contained in:
parent
4dd84d53be
commit
a76ed53ee7
12
build.gradle
12
build.gradle
@ -1,3 +1,5 @@
|
||||
import org.gradle.api.GradleException
|
||||
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'com.github.johnrengelman.shadow' version '7.0.0'
|
||||
@ -35,7 +37,17 @@ allprojects {
|
||||
compileOnly "com.bgsoftware.common.reflection:ReflectionUtils:latest"
|
||||
}
|
||||
|
||||
task checkDebug() {
|
||||
Set<File> filesWithDebug = fileTree('src/main/java').filter { file ->
|
||||
file.text.contains('Bukkit.broadcastMessage')
|
||||
}.getFiles()
|
||||
|
||||
if(!filesWithDebug.isEmpty())
|
||||
throw new GradleException("Found debug messages: " + filesWithDebug)
|
||||
}
|
||||
|
||||
build {
|
||||
dependsOn checkDebug
|
||||
dependsOn shadowJar
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user