Skip to content

Commit

Permalink
fix: Relocate org.yaml.snakeyaml package into com.georgev22.library.s…
Browse files Browse the repository at this point in the history
…nakeyaml
  • Loading branch information
GeorgeV220 committed Jun 11, 2023
1 parent aa5ab70 commit 37aafbd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ shadowJar {
exclude("plugin.yml")
relocate 'de.tr7zw', 'com.georgev22.library.minecraft.nbt'
relocate 'com.cryptomorin.xseries', 'com.georgev22.library.minecraft.xseries'
relocate 'org.yaml.snakeyaml', 'com.georgev22.library.snakeyaml'
}

tasks.shadowJar.dependsOn(jar)
Expand Down
7 changes: 6 additions & 1 deletion yaml/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
apply from: "$rootDir/gradle/publish.gradle"
group 'com.georgev22.library'
dependencies {
compileOnly "org.yaml:snakeyaml:${snakeyamlVersion}"
implementation "org.yaml:snakeyaml:${snakeyamlVersion}"
compileOnly "com.google.guava:guava:${guavaVersion}"
}

shadowJar {
archiveClassifier = ''
relocate 'org.yaml.snakeyaml', 'com.georgev22.library.snakeyaml'
}

tasks.build.dependsOn(shadowJar)
tasks.publish.dependsOn(shadowJar)
tasks.shadowJar.dependsOn(jar)

0 comments on commit 37aafbd

Please sign in to comment.