Skip to content
Permalink
Browse files
add repositories support (#1179)
Authored-by: Engin Diri <engin.diri@lidl.com>
  • Loading branch information
breautek committed Mar 27, 2021
1 parent 1430304 commit 11364918b25b45432c05d8e52d3e33b6b0ff4c40
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 25 deletions.
@@ -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) {
@@ -0,0 +1,5 @@
ext.repos = {
mavenCentral()
google()
jcenter()
}
@@ -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 {
@@ -0,0 +1,4 @@
ext.repos = {
google()
jcenter()
}
@@ -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'
@@ -0,0 +1,4 @@
ext.repos = {
google()
jcenter()
}

0 comments on commit 1136491

Please sign in to comment.