Skip to content

Commit c96cfed

Browse files
ivolivol
authored andcommitted
fix: use shadow 7.1.2 — last AGP-compatible release on Plugin Portal
Shadow 8.x was never published under com.github.jengelman.gradle.plugins (hence the original CI failure). Shadow 9.x explicitly blocks AGP projects. The io.github.goooler.shadow 8.x fork lives on Maven Central, not the Gradle Plugin Portal, requiring an extra repository that is undesirable. 7.1.2 is the last stable release under com.github.jengelman.gradle.plugins, is present on the Gradle Plugin Portal, and works correctly with AGP.
1 parent 5e664a2 commit c96cfed

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ buildscript {
2424
gradlePluginPortal()
2525
}
2626
dependencies {
27-
classpath 'com.gradleup.shadow:shadow-gradle-plugin:9.4.2'
27+
classpath 'com.github.jengelman.gradle.plugins:shadow:7.1.2'
2828
}
2929
}
3030

3131
apply plugin: 'com.android.library'
32-
apply plugin: 'com.gradleup.shadow'
32+
apply plugin: 'com.github.johnrengelman.shadow'
3333

3434
def candidateMiniSdkRoots = [
3535
new File(projectDir, '../../core-service-layers-testing/mini-sdk/android'),
@@ -115,7 +115,7 @@ configurations {
115115
shadowed
116116
}
117117

118-
tasks.register('shadowJar', com.gradleup.shadow.tasks.ShadowJar) {
118+
tasks.register('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
119119
archiveClassifier.set('shadow')
120120
configurations = [project.configurations.shadowed]
121121
relocate 'org.bouncycastle', 'io.approov.internal.bouncycastle'

0 commit comments

Comments
 (0)