// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { mavenCentral() google() maven { url 'https://developer.huawei.com/repo/' } maven { url 'https://plugins.gradle.org/m2/' } } dependencies { classpath 'com.android.tools.build:gradle:7.1.3' classpath 'com.google.gms:google-services:4.3.10' classpath 'com.huawei.agconnect:agcp:1.7.2.300' classpath 'io.github.gradle-nexus:publish-plugin:1.1.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { mavenCentral() google() maven { url 'https://developer.huawei.com/repo/' } maven { url 'https://plugins.gradle.org/m2/' } } } apply plugin: 'io.github.gradle-nexus.publish-plugin' apply from: "${rootDir}/scripts/publish-root.gradle"