mirror of
https://github.com/darksaid98/Builders-Utilities.git
synced 2026-12-03 14:38:48 +00:00
style: Do checkstyle verification on compile time
This commit is contained in:
1 file changed
+7
@@ -1,6 +1,7 @@
|
|||||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||||
import org.cadixdev.gradle.licenser.LicenseExtension
|
import org.cadixdev.gradle.licenser.LicenseExtension
|
||||||
import org.ajoberstar.grgit.Grgit
|
import org.ajoberstar.grgit.Grgit
|
||||||
|
import org.ec4j.gradle.EditorconfigExtension
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
java
|
java
|
||||||
@@ -9,6 +10,7 @@ plugins {
|
|||||||
id("org.cadixdev.licenser") version "0.6.1"
|
id("org.cadixdev.licenser") version "0.6.1"
|
||||||
id("com.github.johnrengelman.shadow") version "7.0.0"
|
id("com.github.johnrengelman.shadow") version "7.0.0"
|
||||||
id("org.ajoberstar.grgit") version "4.1.0"
|
id("org.ajoberstar.grgit") version "4.1.0"
|
||||||
|
id("org.ec4j.editorconfig") version "0.0.3"
|
||||||
|
|
||||||
idea
|
idea
|
||||||
eclipse
|
eclipse
|
||||||
@@ -90,6 +92,10 @@ configure<LicenseExtension> {
|
|||||||
include("**/*.java")
|
include("**/*.java")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configure<EditorconfigExtension> {
|
||||||
|
includes = listOf("**/*.java")
|
||||||
|
}
|
||||||
|
|
||||||
tasks.named<Copy>("processResources") {
|
tasks.named<Copy>("processResources") {
|
||||||
filesMatching("plugin.yml") {
|
filesMatching("plugin.yml") {
|
||||||
expand("version" to project.version)
|
expand("version" to project.version)
|
||||||
@@ -98,4 +104,5 @@ tasks.named<Copy>("processResources") {
|
|||||||
|
|
||||||
tasks.named("build").configure {
|
tasks.named("build").configure {
|
||||||
dependsOn("shadowJar")
|
dependsOn("shadowJar")
|
||||||
|
dependsOn("editorconfigCheck")
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user