Skip to content

Commit

Permalink
Small consistency change and security enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
leviem1 committed Feb 23, 2021
1 parent 18539fb commit 08a7fc0
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,22 @@ java {
}

repositories {
mavenCentral()
mavenCentral {
content {
excludeModule("com.destroystokyo.paper", "paper-api")
excludeModule("io.papermc", "paperlib")
}
}

maven {
name 'papermc'
url 'https://papermc.io/repo/repository/maven-public/'
content {
excludeModule("com.github.spotbugs", "spotbugs-annotations")
excludeModule("com.h3xstream.findsecbugs", "findsecbugs-plugin")
excludeModule("org.junit.jupiter", "junit-jupiter-api")
excludeModule("org.junit.jupiter", "junit-jupiter-engine")
}
}
}

Expand Down Expand Up @@ -69,7 +81,7 @@ tasks.withType(Checkstyle) {

shadowJar {
archiveClassifier.set('SNAPSHOT')
relocate 'io.papermc.lib', 'shadow.io.papermc.lib'
relocate 'io.papermc.lib', 'shadow.io.papermc.paperlib'
minimize()
}

Expand Down

0 comments on commit 08a7fc0

Please sign in to comment.