forked from autonomousapps/dependency-analysis-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
106 lines (91 loc) · 3.02 KB
/
settings.gradle.kts
File metadata and controls
106 lines (91 loc) · 3.02 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// Copyright (c) 2026. Tony Robalik.
// SPDX-License-Identifier: Apache-2.0
rootProject.name = "dependency-analysis-gradle-plugin"
pluginManagement {
includeBuild("build-logic")
includeBuild("testkit")
// For dogfooding
@Suppress("unused")
val latestSnapshot = providers.gradleProperty("VERSION").get()
repositories {
// -Dlocal
if (providers.systemProperty("local").isPresent) {
mavenLocal()
}
gradlePluginPortal()
mavenCentral()
// This is for the `com.android.tools.metalava:metalava` dependency
exclusiveContent {
forRepository {
maven(url = "https://dl.google.com/dl/android/maven2/")
}
filter {
includeGroup("com.android.tools")
includeGroup("com.android.tools.analytics-library")
includeGroup("com.android.tools.build")
includeGroup("com.android.tools.ddms")
includeGroup("com.android.tools.external.com-intellij")
includeGroup("com.android.tools.external.org-jetbrains")
includeGroup("com.android.tools.layoutlib")
includeGroup("com.android.tools.lint")
includeGroup("com.android.tools.metalava")
}
}
// snapshots are permitted, but only for dependencies I own
maven {
url = uri("https://central.sonatype.com/repository/maven-snapshots/")
content {
includeGroup("com.autonomousapps")
includeGroup("com.autonomousapps.dependency-analysis")
}
}
}
}
plugins {
id("com.gradle.develocity") version "4.0.2"
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
}
// Yes, this is also in pluginManagement above. This is required for normal dependencies.
includeBuild("testkit")
// Address subprojects of this build (e.g. 'relocated.asm') by their coordinates.
// https://docs.gradle.org/current/userguide/composite_builds.html#included_build_declaring_substitutions
includeBuild(".")
dependencyResolutionManagement {
repositories {
// -Dlocal
if (providers.systemProperty("local").isPresent) {
mavenLocal()
}
// snapshots are permitted, but only for dependencies I own
maven {
url = uri("https://central.sonatype.com/repository/maven-snapshots/")
content {
includeGroup("com.autonomousapps")
includeGroup("com.autonomousapps.dependency-analysis")
}
}
google()
mavenCentral()
}
}
val VERSION: String by extra.properties
develocity {
buildScan {
val isCI = providers.environmentVariable("CI").isPresent
val isEnabled = providers.gradleProperty("dependency.analysis.scans.publish").getOrElse("false").toBoolean()
publishing.onlyIf { isCI || isEnabled }
termsOfUseUrl = "https://gradle.com/terms-of-service"
termsOfUseAgree = "yes"
tag(if (isCI) "CI" else "Local")
tag(VERSION)
}
}
include(":graph-support")
include(":variant-artifacts")
includeShadowed("antlr")
includeShadowed("asm-relocated")
includeShadowed("kotlin-editor-relocated")
fun includeShadowed(path: String) {
include(":$path")
project(":$path").projectDir = file("shadowed/$path")
}