File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ plugins {
66}
77
88base. archivesName = " PlatformTools"
9- version = " 3.1.3 "
9+ version = " 3.1.4 "
1010group = " org.redlance"
1111
1212repositories {
@@ -21,7 +21,7 @@ dependencies {
2121 api(" net.java.dev.jna:jna:5.18.1" )
2222
2323 // macOS
24- implementation api (" ca.weblite:java-objc-bridge:1.1 " )
24+ implementation(" ca.weblite:java-objc-bridge:1.2 " )
2525}
2626
2727def javaTarget = 17
@@ -50,6 +50,13 @@ downgradeJar {
5050 classpath = configurations. compileClasspath
5151
5252 inputFile = tasks. jar. archiveFile
53+ }
54+
55+ shadeDowngradedApi {
56+ downgradeTo = JavaVersion . VERSION_1_8
57+ shadePath {
58+ return " org/redlance/platformtools/impl/"
59+ }
5360 archiveClassifier. set(" java8" )
5461}
5562
6067publishing {
6168 publications {
6269 mavenJava(MavenPublication ) {
63- artifact(tasks. downgradeJar ) {
70+ artifact(tasks. shadeDowngradedApi ) {
6471 classifier = " java8"
6572 extension = " jar"
6673 }
You can’t perform that action at this time.
0 commit comments