-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
127 lines (107 loc) · 4.8 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
import org.gradle.internal.extensions.stdlib.toDefaultLowerCase
rootProject.name = "dua3-fx"
val projectVersion = "1.1.0"
include("fx-application")
include("fx-application:fx-application-fxml")
dependencyResolutionManagement {
val isSnapshot = projectVersion.toDefaultLowerCase().contains("-snapshot")
val isReleaseCandidate = projectVersion.toDefaultLowerCase().contains("-rc")
versionCatalogs {
create("libs") {
version("projectVersion", projectVersion)
plugin("versions", "com.github.ben-manes.versions").version("0.52.0")
plugin("test-logger", "com.adarshr.test-logger").version("4.0.0")
plugin("spotbugs", "com.github.spotbugs").version("6.1.7")
plugin("cabe", "com.dua3.cabe").version("3.0.2")
version("dua3-utility", "16.2.0")
version("javafx", "23")
version("jspecify", "1.0.0")
version("log4j-bom", "2.24.3")
library("dua3-utility", "com.dua3.utility", "utility").versionRef("dua3-utility")
library("dua3-utility-db", "com.dua3.utility", "utility-db").versionRef("dua3-utility")
library("dua3-utility-logging", "com.dua3.utility", "utility-logging").versionRef("dua3-utility")
library("jspecify", "org.jspecify", "jspecify").versionRef("jspecify")
library(
"dua3-utility-logging-log4j",
"com.dua3.utility",
"utility-logging-log4j"
).versionRef("dua3-utility")
library(
"dua3-utility-logging-slf4j",
"com.dua3.utility",
"utility-logging-slf4j"
).versionRef("dua3-utility")
library("dua3-utility-swing", "com.dua3.utility", "utility-swing").versionRef("dua3-utility")
library("dua3-utility-fx", "com.dua3.utility", "utility-fx").versionRef("dua3-utility")
library("dua3-utility-fx-controls", "com.dua3.utility", "utility-fx-controls").versionRef("dua3-utility")
library("log4j-bom", "org.apache.logging.log4j", "log4j-bom").versionRef("log4j-bom")
library("log4j-api", "org.apache.logging.log4j", "log4j-api").withoutVersion()
library("log4j-core", "org.apache.logging.log4j", "log4j-core").withoutVersion()
library("log4j-jul", "org.apache.logging.log4j", "log4j-jul").withoutVersion()
library("log4j-jcl", "org.apache.logging.log4j", "log4j-jcl").withoutVersion()
library("log4j-slf4j2", "org.apache.logging.log4j", "log4j-slf4j2-impl").withoutVersion()
library("log4j-to-slf4j", "org.apache.logging.log4j", "log4j-to-slf4j").withoutVersion()
}
}
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
// Maven Central Repository
mavenCentral()
// Sonatype Releases
maven {
name = "oss.sonatype.org-releases"
url = java.net.URI("https://s01.oss.sonatype.org/content/repositories/releases/")
mavenContent {
releasesOnly()
}
}
// Apache releases
maven {
name = "apache-releases"
url = java.net.URI("https://repository.apache.org/content/repositories/releases/")
mavenContent {
releasesOnly()
}
}
if (isSnapshot) {
println("snapshot version detected, adding local and snapshot Maven repositories")
mavenLocal()
// Sonatype Snapshots
maven {
name = "oss.sonatype.org-snapshots"
url = java.net.URI("https://s01.oss.sonatype.org/content/repositories/snapshots/")
mavenContent {
snapshotsOnly()
}
}
// Apache snapshots
maven {
name = "apache-snapshots"
url = java.net.URI("https://repository.apache.org/content/repositories/snapshots/")
mavenContent {
snapshotsOnly()
}
}
}
if (isReleaseCandidate) {
println("release candidate version detected, adding local and staging Maven repositories")
mavenLocal()
// Sonatype Snapshots
maven {
name = "oss.sonatype.org-snapshots"
url = java.net.URI("https://s01.oss.sonatype.org/content/repositories/snapshots/")
mavenContent {
snapshotsOnly()
}
}
// Apache staging
maven {
name = "apache-staging"
url = java.net.URI("https://repository.apache.org/content/repositories/staging/")
mavenContent {
releasesOnly()
}
}
}
}
}