mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2025-01-10 19:48:08 +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 {
|
plugins {
|
||||||
id 'java'
|
id 'java'
|
||||||
id 'com.github.johnrengelman.shadow' version '7.0.0'
|
id 'com.github.johnrengelman.shadow' version '7.0.0'
|
||||||
@ -35,7 +37,17 @@ allprojects {
|
|||||||
compileOnly "com.bgsoftware.common.reflection:ReflectionUtils:latest"
|
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 {
|
build {
|
||||||
|
dependsOn checkDebug
|
||||||
dependsOn shadowJar
|
dependsOn shadowJar
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user