Skip to content

Commit

Permalink
Fix gradle build
Browse files Browse the repository at this point in the history
  • Loading branch information
octylFractal committed Oct 19, 2019
1 parent 1ba02c5 commit a273e55
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/checkstyle/import-control.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
<allow pkg="com.google.auto"/>
<allow pkg="it.unimi.dsi.fastutil"/>

<subpackage name="internal.expression">
<allow pkg="org.antlr.v4"/>
</subpackage>

<subpackage name="bukkit">
<allow pkg="org.bukkit"/>
<allow pkg="org.bstats.bukkit"/>
Expand Down
10 changes: 10 additions & 0 deletions worldedit-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import net.minecrell.gradle.licenser.LicenseExtension
import org.gradle.plugins.ide.idea.model.IdeaModel

plugins {
Expand Down Expand Up @@ -52,6 +53,15 @@ tasks.named<AntlrTask>("generateGrammarSource").configure {
)
}

configure<LicenseExtension> {
exclude {
it.file.startsWith(project.buildDir)
}
}
tasks.withType<Checkstyle>().configureEach {
exclude("com/sk89q/worldedit/antlr/**/*.java")
}

// Give intellij info about where ANTLR code comes from
plugins.withId("idea") {
configure<IdeaModel> {
Expand Down

0 comments on commit a273e55

Please sign in to comment.