Skip to content

Commit dbfe811

Browse files
committed
build: Add errorprone checking to build process
1 parent 8bc07be commit dbfe811

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
plugins {
2+
alias libs.plugins.errorprone
23
alias libs.plugins.indra
4+
alias libs.plugins.indra.checkstyle
35
alias libs.plugins.indra.licenseHeader
46
alias libs.plugins.indra.sonatype
5-
alias libs.plugins.indra.checkstyle
67
}
78

89
group = "net.kyori"
@@ -16,6 +17,7 @@ indraSonatype {
1617
dependencies {
1718
compileOnlyApi libs.jetbrainsAnnotations
1819
implementation gradleApi()
20+
1921
testImplementation platform(libs.junit.bom)
2022
testImplementation libs.junit.api
2123
testRuntimeOnly libs.junit.engine
@@ -32,9 +34,11 @@ allprojects {
3234
apply plugin: "net.kyori.indra.license-header"
3335
apply plugin: "net.kyori.indra.publishing"
3436
apply plugin: "net.kyori.indra.checkstyle"
37+
apply plugin: "net.ltgt.errorprone"
3538

3639
dependencies {
3740
checkstyle(libs.stylecheck)
41+
errorprone(libs.errorprone)
3842
}
3943

4044
indra {

gradle/libs.versions.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ checkstyle = "10.3.3"
66
indra = "2.1.1"
77
junit = "5.9.0"
88
stylecheck = "0.2.0"
9+
errorprone = "2.15.0"
910

1011
[libraries]
1112
jetbrainsAnnotations = "org.jetbrains:annotations:23.0.0"
@@ -18,6 +19,7 @@ junit-platformCommons = { module = "org.junit.platform:junit-platform-commons" }
1819

1920
# build
2021
stylecheck = { module = "ca.stellardrift:stylecheck", version.ref = "stylecheck" }
22+
errorprone = { module = "com.google.errorprone:error_prone_core", version.ref = "errorprone" }
2123

2224
# for renovate, do not use
2325
zCheckstyle = { module = "com.puppycrawl.tools:checkstyle", version.ref = "checkstyle" }
@@ -27,3 +29,4 @@ indra = { id = "net.kyori.indra", version.ref = "indra" }
2729
indra-checkstyle = { id = "net.kyori.indra.checkstyle", version.ref = "indra" }
2830
indra-licenseHeader = { id = "net.kyori.indra.license-header", version.ref = "indra" }
2931
indra-sonatype = { id = "net.kyori.indra.publishing.sonatype", version.ref = "indra" }
32+
errorprone = "net.ltgt.errorprone:2.0.2"

0 commit comments

Comments
 (0)