-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
65 lines (57 loc) · 1.68 KB
/
settings.gradle.kts
File metadata and controls
65 lines (57 loc) · 1.68 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
/*
* jardiff
*
* Copyright (c) 2025 - Brice Dutheil
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
pluginManagement {
includeBuild("build-logic")
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
id("com.gradle.develocity") version "4.3"
id("com.gradleup.nmcp.settings") version "1.4.3"
id("com.javiersc.semver") version "0.9.0"
}
semver {
// Workaround to avoid having commit count and metadata in the version on the tagged commit
mapVersion { gradleVersion ->
if (gradleVersion.commits == 0 && gradleVersion.metadata.isNullOrBlank()) {
"${gradleVersion.major}.${gradleVersion.minor}.${gradleVersion.patch}"
} else {
gradleVersion.toString()
}
}
}
dependencyResolutionManagement {
repositories {
mavenCentral()
}
}
rootProject.name = "jardiff-root"
include(
"jardiff",
"jardiff-differ"
)
nmcpSettings {
centralPortal {
username.set(providers.gradleProperty("mavenCentralUsername"))
password.set(providers.gradleProperty("mavenCentralPassword"))
}
}
develocity {
val isCI = providers.environmentVariable("CI").isPresent
val isIJSync = providers.systemProperty("idea.sync.active").filter { it.toBoolean() }.isPresent
buildScan {
termsOfUseUrl = "https://gradle.com/help/legal-terms-of-use"
termsOfUseAgree = "yes"
publishing {
onlyIf {
isCI or isIJSync or it.buildResult.failures.isNotEmpty()
}
}
}
}