You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build.gradle.kts
+3-19Lines changed: 3 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -179,8 +179,8 @@ subprojects {
179
179
180
180
tasks.named("distZip").configure {
181
181
this.dependsOn("publishToMavenLocal")
182
+
val file =this.project.layout.buildDirectory.file("distributions${sep}${this.project.name}-${this.project.version}.zip").get().asFile
182
183
this.doLast {
183
-
val file =this.project.layout.buildDirectory.file("distributions${sep}${this.project.name}-${this.project.version}.zip").get().asFile
184
184
if (!file.exists()) throwIllegalStateException("Distribution file: ${file.absolutePath} does not exist")
185
185
if (file.length() ==0L) throwIllegalStateException("Distribution file: ${file.absolutePath} is empty")
186
186
}
@@ -300,21 +300,6 @@ gradle.taskGraph.whenReady {
300
300
}
301
301
}
302
302
303
-
privateval androidLibs =setOf(
304
-
"sentry-android-core",
305
-
"sentry-android-ndk",
306
-
"sentry-android-fragment",
307
-
"sentry-android-navigation",
308
-
"sentry-android-timber",
309
-
"sentry-compose-android",
310
-
"sentry-android-sqlite",
311
-
"sentry-android-replay"
312
-
)
313
-
314
-
privateval androidXLibs =listOf(
315
-
"androidx.core:core"
316
-
)
317
-
318
303
/*
319
304
* Adapted from https://github.com/androidx/androidx/blob/c799cba927a71f01ea6b421a8f83c181682633fb/buildSrc/private/src/main/kotlin/androidx/build/MavenUploadHelper.kt#L524-L549
320
305
*
@@ -334,7 +319,6 @@ private val androidXLibs = listOf(
334
319
*/
335
320
336
321
// Workaround for https://github.com/gradle/gradle/issues/3170
337
-
@Suppress("UnstableApiUsage")
338
322
fun MavenPublishBaseExtension.assignAarTypes() {
339
323
pom {
340
324
withXml {
@@ -356,9 +340,9 @@ fun MavenPublishBaseExtension.assignAarTypes() {
356
340
} as?Node
357
341
val artifactIdValue = artifactId?.children()?.firstOrNull() as?String
358
342
359
-
if (artifactIdValue in androidLibs) {
343
+
if (artifactIdValue inConfig.BuildScript.androidLibs) {
0 commit comments