File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,17 @@ apply plugin: 'com.gradleup.shadow'
2727import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2828
2929configurations {
30- ncIdv
31- netcdfAll
32- toolsUI
30+ // set target attribute to ensure right guava variant is selected
31+ // https://stackoverflow.com/a/77399208/2345036
32+ ncIdv {
33+ attributes. attribute(TargetJvmEnvironment . TARGET_JVM_ENVIRONMENT_ATTRIBUTE , objects. named(TargetJvmEnvironment . class, TargetJvmEnvironment . STANDARD_JVM ))
34+ }
35+ netcdfAll {
36+ attributes. attribute(TargetJvmEnvironment . TARGET_JVM_ENVIRONMENT_ATTRIBUTE , objects. named(TargetJvmEnvironment . class, TargetJvmEnvironment . STANDARD_JVM ))
37+ }
38+ toolsUI {
39+ attributes. attribute(TargetJvmEnvironment . TARGET_JVM_ENVIRONMENT_ATTRIBUTE , objects. named(TargetJvmEnvironment . class, TargetJvmEnvironment . STANDARD_JVM ))
40+ }
3341}
3442
3543dependencies {
You can’t perform that action at this time.
0 commit comments