From 62820fc99a0c7bf609a6997595caa2fdf43bc765 Mon Sep 17 00:00:00 2001 From: 2BAB Date: Sat, 19 Mar 2022 17:20:57 +0800 Subject: [PATCH] fix: try to resolve maven central "close failure" --- build.gradle.kts | 2 +- publish.sh | 2 +- publish_to_local.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 880ff28..5242949 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -20,7 +20,7 @@ val aggregateJars by tasks.registering { output.mkdir() subprojects { File(buildDir.absolutePath + File.separator + "libs").walk() - .filter { it.name.startsWith("polyfill") && it.extension == "jar" } + .filter { it.name.startsWith(this.name) && it.extension == "jar" } .forEach { it.copyTo(File(output, it.name)) } } } diff --git a/publish.sh b/publish.sh index 886e7a9..bf3aae9 100755 --- a/publish.sh +++ b/publish.sh @@ -4,7 +4,7 @@ MODULE_ARRAY=('android-arsc-parser' 'android-manifest-parser' 'polyfill') for module in "${MODULE_ARRAY[@]}" do -./gradlew :"$module":publishAllPublicationsToSonatypeRepository +./gradlew :"$module":publishPolyfillArtifactPublicationToSonatypeRepository done ./gradlew aggregateJars releaseArtifactsToGithub \ No newline at end of file diff --git a/publish_to_local.sh b/publish_to_local.sh index 1d24a9c..da43a94 100755 --- a/publish_to_local.sh +++ b/publish_to_local.sh @@ -4,5 +4,5 @@ MODULE_ARRAY=('android-arsc-parser' 'android-manifest-parser' 'polyfill') for module in "${MODULE_ARRAY[@]}" do -./gradlew clean :"$module":publishToMavenLocal +./gradlew clean :"$module":publishPolyfillArtifactPublicationToMavenLocal done \ No newline at end of file