Fix gradle build

This commit is contained in:
Kenzie Togami 2019-10-18 22:39:52 -07:00
parent 1ba02c54b7
commit a273e55e7a
No known key found for this signature in database
GPG Key ID: 5D200B325E157A81
2 changed files with 14 additions and 0 deletions

View File

@ -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"/>

View File

@ -1,3 +1,4 @@
import net.minecrell.gradle.licenser.LicenseExtension
import org.gradle.plugins.ide.idea.model.IdeaModel
plugins {
@ -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> {