From ad29f284cdc2281a70bdcae80e6db85c6d50765e Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Fri, 26 Mar 2021 23:10:18 +0800 Subject: [PATCH] Android:update the upload script --- doric-android/build.gradle | 1 + doric-android/scripts/upload.gradle | 2 +- doric-cli/assets/android/build.gradle | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doric-android/build.gradle b/doric-android/build.gradle index dbc3973a..c21542eb 100644 --- a/doric-android/build.gradle +++ b/doric-android/build.gradle @@ -18,6 +18,7 @@ allprojects { repositories { google() jcenter() + mavenCentral() maven { url 'https://jitpack.io' } } def needReplaceLocal = true diff --git a/doric-android/scripts/upload.gradle b/doric-android/scripts/upload.gradle index db95ea3e..a3e85392 100644 --- a/doric-android/scripts/upload.gradle +++ b/doric-android/scripts/upload.gradle @@ -35,7 +35,7 @@ uploadArchives { description 'git rev-parse HEAD'.execute([], projectDir).text.trim() } - repository(url: repo + properties.name) { + repository(url: repo) { authentication(userName: user, password: apiKey) } } diff --git a/doric-cli/assets/android/build.gradle b/doric-cli/assets/android/build.gradle index 7e23337f..97c353b3 100644 --- a/doric-cli/assets/android/build.gradle +++ b/doric-cli/assets/android/build.gradle @@ -18,6 +18,7 @@ allprojects { repositories { google() jcenter() + mavenCentral() maven { url 'https://jitpack.io' } } }