File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,20 +26,28 @@ repositories {
2626dependencies {
2727 zenithProxy(" com.zenith:ZenithProxy:$mc -SNAPSHOT" )
2828
29- // you can include dependencies by shading
29+ /* * to include dependencies into your plugin jar * */
3030// shade("com.github.ben-manes.caffeine:caffeine:3.2.0")
3131}
3232
3333tasks {
3434 shadowJar {
35- // relocate shaded dependencies to avoid conflicts with other plugins
36- // transitive dependencies should also be relocated
37- // build and examine your plugin jar contents to check
38-
39- // relocate("com.github.benmanes.caffeine", "${project.group}.shadow.caffeine")
40-
41- // remove unneeded dependencies by jar folder path
42- // exclude("com/google/errorprone/**")
43- // exclude("org/jspecify/**")
35+ /* *
36+ * relocate shaded dependencies to avoid conflicts with other plugins
37+ * transitive dependencies should also be relocated or removed (with exclude)
38+ * build and examine your plugin jar contents to check
39+ * https://gradleup.com/shadow/configuration/relocation/
40+ */
41+ // val basePackage = "${project.group}.shadow"
42+ // relocate("com.github.benmanes.caffeine", "$basePackage.caffeine")
43+
44+ /* *
45+ * remove unneeded transitive dependencies
46+ * https://gradleup.com/shadow/configuration/dependencies/#filtering-dependencies
47+ */
48+ // dependencies {
49+ // exclude(dependency(":error_prone_annotations:.*"))
50+ // exclude(dependency(":jspecify:.*"))
51+ // }
4452 }
4553}
You can’t perform that action at this time.
0 commit comments