Skip to content

Commit ca5b27c

Browse files
committed
Update Publication.kt to fix Android
1 parent d2729a1 commit ca5b27c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

buildSrc/src/main/java/Publication.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,16 @@ fun DistributionContainer.configureForMultiplatform(project: Project, buildPubli
4646
}
4747
}
4848

49+
// Rename the android.aar to android-release.aar due to craft
50+
if (distribution.name == "android") {
51+
from("$basePath$sep$projectName-$version.aar") {
52+
rename { "$projectName-release-$version.aar" }
53+
}
54+
}
55+
4956
from(basePath) {
5057
exclude("*.pom")
58+
exclude("$projectName-$version.aar")
5159
}
5260
}
5361
}

0 commit comments

Comments
 (0)