This repository has been archived by the owner on Dec 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependency resolution management (#2000)
## Changes * get rid of the JCenter repository * centralize repository declaration for all projects in project settings * refactor `build.gradle` and `settings.gradle` from Groovy syntax to Kotlin DSL (thus replacing those files with `build.gradle.kts` and `settings.gradle.kts` respectively) The remaining `build.gradle` files are refactored in: #2022
- Loading branch information
Showing
3 changed files
with
31 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,27 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
|
||
buildscript { | ||
ext { | ||
extra.apply { | ||
// Cannot be called "ndkVersion" as that leads to naming collision | ||
// Changes to this value must be reflected in `./docker/Dockerfile` | ||
ndkVersionShared = '25.2.9519653' | ||
set("ndkVersionShared", "25.2.9519653") | ||
|
||
} | ||
|
||
repositories { | ||
gradlePluginPortal() | ||
google() | ||
jcenter() | ||
mavenCentral() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:7.3.1' | ||
classpath 'com.github.ben-manes:gradle-versions-plugin:0.36.0' | ||
classpath("com.android.tools.build:gradle:7.3.1") | ||
classpath("com.github.ben-manes:gradle-versions-plugin:0.36.0") | ||
|
||
// NOTE: Do not place your application dependencies here; they belong | ||
// in the individual module build.gradle files | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
google() | ||
jcenter() | ||
maven { url = "https://jitpack.io" } | ||
} | ||
} | ||
|
||
task clean(type: Delete) { | ||
delete rootProject.buildDir | ||
tasks.register<Delete>("clean") { | ||
delete(rootProject.buildDir) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
pluginManagement { | ||
repositories { | ||
gradlePluginPortal() | ||
google() | ||
mavenCentral() | ||
} | ||
} | ||
|
||
dependencyResolutionManagement { | ||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) | ||
repositories { | ||
google() | ||
mavenCentral() | ||
maven { url = java.net.URI("https://jitpack.io") } | ||
} | ||
} | ||
|
||
include( | ||
":app", | ||
":syncthing" | ||
) |