-
-
Notifications
You must be signed in to change notification settings - Fork 124
/
settings.gradle.kts
92 lines (78 loc) · 2.46 KB
/
settings.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
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
// Copyright (c) 2024. Tony Robalik.
// SPDX-License-Identifier: Apache-2.0
rootProject.name = "dependency-analysis-gradle-plugin"
pluginManagement {
includeBuild("build-logic")
includeBuild("testkit")
// For dogfooding
@Suppress("UNUSED_VARIABLE")
val latestSnapshot = providers.gradleProperty("VERSION").get()
repositories {
// -Dlocal
if (providers.systemProperty("local").isPresent) {
mavenLocal()
}
gradlePluginPortal()
mavenCentral()
// snapshots are permitted, but only for dependencies I own
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
content {
includeGroup("com.autonomousapps")
includeGroup("com.autonomousapps.dependency-analysis")
}
}
}
plugins {
id("com.gradleup.shadow") version "8.3.0"
id("com.gradle.develocity") version "3.18.2"
id("com.gradle.plugin-publish") version "1.1.0"
}
}
plugins {
id("com.gradle.develocity")
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.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://oss.sonatype.org/content/repositories/snapshots/")
content {
includeGroup("com.autonomousapps")
includeGroup("com.autonomousapps.dependency-analysis")
}
}
google()
mavenCentral()
}
}
val VERSION: String by extra.properties
develocity {
buildScan {
publishing.onlyIf { true }
termsOfUseUrl = "https://gradle.com/terms-of-service"
termsOfUseAgree = "yes"
tag(if (System.getenv("CI").isNullOrBlank()) "Local" else "CI")
tag(VERSION)
}
}
include(":graph-support")
includeShadowed("antlr")
includeShadowed("asm-relocated")
includeShadowed("kotlin-editor-relocated")
// https://docs.gradle.org/5.6/userguide/groovy_plugin.html#sec:groovy_compilation_avoidance
enableFeaturePreview("GROOVY_COMPILATION_AVOIDANCE")
fun includeShadowed(path: String) {
include(":$path")
project(":$path").projectDir = file("shadowed/$path")
}