-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
52 lines (48 loc) · 1.98 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
buildscript {
// Specifies repositories to use for build.gradle..kts build script classpath,
// used to resolve dependencies specified in `dependencies {}` block below.
// This loads these dependencies to be available for the settings.gradle.kts script
// outside of `buildscript {}` block. It is helpful to load binary plugins that
// might not publish to pom that supports Gradle `plugins {}` DSL
//
// In general, you should avoid using this, unless you have to. Loading plugins with
// `plugins {}` DSL is preferred.
repositories {
mavenCentral()
google()
}
dependencies {
classpath("com.google.guava:guava:31.1-jre")
}
}
// Example of the modern way of loading Gradle plugins. This uses plugin
// repositories defined in settings.gradle.kts `pluginManagement {}` block.
plugins {
id("com.android.application") version "7.3.0-alpha05" apply false
id("java")
}
// Specifies build repositories to use for resolving `dependencies {}` below for this root `:`
// project only. This list of repositories overrides the list of repositories specified in
// settings.gradle.kts `dependencyResolutionManagement {}` block.
//
// Avoid using this, as it only applies to the root project, and it also overrides the centralized
// settings.gradle.kts `dependencyResolutionManagement {}` location that is better.
repositories {
mavenCentral()
google()
}
dependencies {
implementation("com.google.guava:guava:31.1-jre")
}
subprojects {
// Specifies build repositories to use for resolving `dependencies {}` below for all subprojects
// under root `:` project, like `:lib`. This list of repositories overrides the list of
// repositories specified in settings.gradle.kts `dependencyResolutionManagement {}` block.
//
// Avoid using this, as it overrides the centralized settings.gradle.kts
// `dependencyResolutionManagement {}` location that is better.
repositories {
mavenCentral()
google()
}
}