Do not shade gson lib (fixes #115)

The gson lib is provided by MC anyway.
Additionally, by shading it, we relocate the lib via the FG reobfJar
task which doesn't properly handle annotations causing the Mixin
lib's MixinConfig to no longer parse properly.
This commit is contained in:
Jonas Herzig
2018-03-15 21:56:46 +01:00
parent 48b39fe551
commit 221991bf2c
2 changed files with 19 additions and 17 deletions

View File

@@ -61,6 +61,8 @@ if (System.getenv('REPRODUCIBLE_BUILD') == '1') repositories.all convertRepoToHt
configurations {
shade
compile.extendsFrom shade
shade.exclude group: 'com.google.code.gson', module: 'gson' // provided by MC
}
dependencies {
@@ -79,7 +81,7 @@ dependencies {
def studioVersion = project.name
if (studioVersion == '1.8.9') studioVersion = '1.8'
shade("com.github.ReplayMod.ReplayStudio:$studioVersion:e6f898d"){
shade("com.github.ReplayMod.ReplayStudio:$studioVersion:6cfc69b"){
exclude group: 'com.google.guava', module: 'guava' // provided by MC
exclude group: 'org.projectlombok', module: 'lombok' // runtime only for @SneakyThrows which isn't used
}