From c1838de66900db9d955bc8c6fb4c71599c64a9b0 Mon Sep 17 00:00:00 2001 From: Martin Zeitler Date: Fri, 14 Jul 2023 14:15:42 +0200 Subject: [PATCH] jcenter() repository replaced. --- harmonyos/build.gradle | 20 +++++++++---------- .../gradle/wrapper/gradle-wrapper.properties | 2 +- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/harmonyos/build.gradle b/harmonyos/build.gradle index a5473d5..1485b9e 100644 --- a/harmonyos/build.gradle +++ b/harmonyos/build.gradle @@ -8,25 +8,23 @@ ohos { compatibleSdkVersion 5 } } - + buildscript { repositories { - maven { - url 'https://developer.huawei.com/repo/' - } - jcenter() + maven { url 'https://developer.huawei.com/repo/' } + mavenCentral() } dependencies { - classpath 'com.huawei.ohos:hap:2.4.4.2' - classpath 'com.huawei.ohos:decctest:1.2.4.0' + // classpath 'com.huawei.ohos:hap:2.4.4.2' + // classpath 'com.huawei.ohos:decctest:1.2.4.0' + classpath 'com.huawei.ohos:hap:3.1.5.0' + classpath 'com.huawei.ohos:decctest:1.2.7.20' } } allprojects { repositories { - maven { - url 'https://developer.huawei.com/repo/' - } - jcenter() + maven { url 'https://developer.huawei.com/repo/' } + mavenCentral() } } diff --git a/harmonyos/gradle/wrapper/gradle-wrapper.properties b/harmonyos/gradle/wrapper/gradle-wrapper.properties index f59159e..a72a3e4 100644 --- a/harmonyos/gradle/wrapper/gradle-wrapper.properties +++ b/harmonyos/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME +distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip distributionPath=wrapper/dists -distributionUrl=https\://repo.huaweicloud.com/gradle/gradle-6.3-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists