mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32: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
|
ext.kotlin_version = gradlePluginKotlinVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
apply from: 'repositories.gradle'
|
||||||
mavenCentral()
|
repositories repos
|
||||||
google()
|
|
||||||
jcenter()
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
apply from: '../CordovaLib/cordova.gradle'
|
apply from: '../CordovaLib/cordova.gradle'
|
||||||
@ -82,10 +79,8 @@ buildscript {
|
|||||||
|
|
||||||
// Allow plugins to declare Maven dependencies via build-extras.gradle.
|
// Allow plugins to declare Maven dependencies via build-extras.gradle.
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
apply from: 'repositories.gradle'
|
||||||
mavenCentral()
|
repositories repos
|
||||||
jcenter()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task wrapper(type: Wrapper) {
|
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 {
|
buildscript {
|
||||||
ext.kotlin_version = '1.4.31'
|
ext.kotlin_version = '1.4.31'
|
||||||
repositories {
|
apply from: 'repositories.gradle'
|
||||||
google()
|
repositories repos
|
||||||
jcenter()
|
|
||||||
}
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:4.1.3'
|
classpath 'com.android.tools.build:gradle:4.1.3'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
@ -33,10 +32,8 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
apply from: 'repositories.gradle'
|
||||||
google()
|
repositories repos
|
||||||
jcenter()
|
|
||||||
}
|
|
||||||
|
|
||||||
//This replaces project.properties w.r.t. build settings
|
//This replaces project.properties w.r.t. build settings
|
||||||
project.ext {
|
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 {
|
buildscript {
|
||||||
repositories {
|
apply from: 'repositories.gradle'
|
||||||
google()
|
repositories repos
|
||||||
jcenter()
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// The gradle plugin and the maven plugin have to be updated after each version of Android
|
// The gradle plugin and the maven plugin have to be updated after each version of Android
|
||||||
@ -44,10 +42,8 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
apply from: 'repositories.gradle'
|
||||||
google()
|
repositories repos
|
||||||
jcenter()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'com.android.library'
|
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