add repositories support (#1179)

Authored-by: Engin Diri <engin.diri@lidl.com>
This commit is contained in:
Norman Breau 2021-03-27 12:11:56 -03:00 committed by GitHub
parent 1430304d36
commit 11364918b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 25 deletions

View File

@ -44,11 +44,8 @@ buildscript {
ext.kotlin_version = gradlePluginKotlinVersion
}
repositories {
mavenCentral()
google()
jcenter()
}
apply from: 'repositories.gradle'
repositories repos
dependencies {
apply from: '../CordovaLib/cordova.gradle'
@ -82,10 +79,8 @@ buildscript {
// Allow plugins to declare Maven dependencies via build-extras.gradle.
allprojects {
repositories {
mavenCentral()
jcenter()
}
apply from: 'repositories.gradle'
repositories repos
}
task wrapper(type: Wrapper) {

View File

@ -0,0 +1,5 @@
ext.repos = {
mavenCentral()
google()
jcenter()
}

View File

@ -20,10 +20,9 @@
buildscript {
ext.kotlin_version = '1.4.31'
repositories {
google()
jcenter()
}
apply from: 'repositories.gradle'
repositories repos
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
@ -33,10 +32,8 @@ buildscript {
}
allprojects {
repositories {
google()
jcenter()
}
apply from: 'repositories.gradle'
repositories repos
//This replaces project.properties w.r.t. build settings
project.ext {

View File

@ -0,0 +1,4 @@
ext.repos = {
google()
jcenter()
}

View File

@ -29,10 +29,8 @@ ext {
}
buildscript {
repositories {
google()
jcenter()
}
apply from: 'repositories.gradle'
repositories repos
dependencies {
// The gradle plugin and the maven plugin have to be updated after each version of Android
@ -44,10 +42,8 @@ buildscript {
}
allprojects {
repositories {
google()
jcenter()
}
apply from: 'repositories.gradle'
repositories repos
}
apply plugin: 'com.android.library'

View File

@ -0,0 +1,4 @@
ext.repos = {
google()
jcenter()
}