forked from autonomousapps/dependency-analysis-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
88 lines (74 loc) · 2.21 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
@file:Suppress("PropertyName", "UnstableApiUsage")
pluginManagement {
includeBuild("build-logic")
// For dogfooding
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.autonomousapps.dependency-analysis") version "1.10.0"//latestSnapshot
id("com.github.johnrengelman.shadow") version "7.1.2"
id("com.gradle.enterprise") version "3.10.2"
id("com.gradle.plugin-publish") version "0.11.0"
id("org.jetbrains.kotlin.jvm") version "1.7.22"
id("org.jetbrains.dokka") version "1.6.10"
}
}
plugins {
id("com.gradle.enterprise")
}
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
gradleEnterprise {
buildScan {
publishAlways()
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
tag(if (System.getenv("CI").isNullOrBlank()) "Local" else "CI")
tag(VERSION)
}
}
rootProject.name = "dependency-analysis-gradle-plugin"
include(":graph-support")
include(":testkit")
include(":testkit-truth")
// shadowed projects
includeShadowed("antlr")
includeShadowed("asm-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")
}