mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
add repositories support (#1179)
Authored-by: Engin Diri <engin.diri@lidl.com>
This commit is contained in:
parent
1430304d36
commit
11364918b2
@ -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) {
|
||||
|
5
bin/templates/project/app/repositories.gradle
Normal file
5
bin/templates/project/app/repositories.gradle
Normal file
@ -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 {
|
||||
|
4
bin/templates/project/repositories.gradle
Normal file
4
bin/templates/project/repositories.gradle
Normal file
@ -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'
|
||||
|
4
framework/repositories.gradle
Normal file
4
framework/repositories.gradle
Normal file
@ -0,0 +1,4 @@
|
||||
ext.repos = {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
Loading…
Reference in New Issue
Block a user