File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,18 @@ val sourcesJar by tasks.registering(Jar::class) {
7979 from(sourceSets.main.get().java.srcDirs)
8080}
8181
82- artifacts {
83- archives(javadocJar)
84- archives(sourcesJar)
82+ // Gradle 9.1 deprecation fix
83+ configurations {
84+ @Suppress(" UnstableApiUsage" )
85+ consumable(" jars" ) {
86+ outgoing.artifact(javadocJar)
87+ outgoing.artifact(sourcesJar)
88+ }
89+ }
90+
91+ tasks.named(" assemble" ) {
92+ dependsOn(javadocJar)
93+ dependsOn(sourcesJar)
8594}
8695
8796group = pluginGroup
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionUrl =https\://services.gradle.org/distributions/gradle-9.0 .0-bin.zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-9.1 .0-bin.zip
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
You can’t perform that action at this time.
0 commit comments