-
Notifications
You must be signed in to change notification settings - Fork 39
/
settings.gradle.kts
71 lines (65 loc) · 1.84 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
rootProject.name = "diktat"
dependencyResolutionManagement {
repositories {
file("$rootDir/build/diktat-snapshot")
.takeIf { it.exists() }
?.run {
maven {
url = this@run.toURI()
}
}
maven {
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
content {
includeGroup("com.saveourtool.diktat")
}
}
mavenCentral()
}
}
pluginManagement {
repositories {
file("$rootDir/build/diktat-snapshot")
.takeIf { it.exists() }
?.run {
maven {
url = this@run.toURI()
}
}
maven {
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
content {
includeGroup("com.saveourtool.diktat")
}
}
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id("com.gradle.enterprise") version "3.16.2"
// starting from Gradle 8, it's needed to configure a repo from which to take Java for a toolchain
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
includeBuild("gradle/plugins")
include("diktat-api")
include("diktat-common-test")
include("diktat-ktlint-engine")
include("diktat-gradle-plugin")
include("diktat-maven-plugin")
include("diktat-rules")
include("diktat-ruleset")
include("diktat-dev-ksp")
include("diktat-cli")
include("diktat-runner")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
gradleEnterprise {
@Suppress("AVOID_NULL_CHECKS")
if (System.getenv("CI") != null) {
buildScan {
publishAlways()
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
}