-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle.kts
39 lines (34 loc) · 992 Bytes
/
build.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
plugins {
alias(libs.plugins.nexus.publish)
id("build-logic.base")
id("build-logic.release")
id("build-logic.accept-tos")
}
release {
mainBranch.set("master")
devBranch.set("develop")
githubRepoOwner.set("skuzzle")
githubRepoName.set("restrict-imports-enforcer-rule")
releaseNotesContent.set(providers.fileContents(layout.projectDirectory.file("RELEASE_NOTES.md")).asText)
}
nexusPublishing.repositories {
sonatype {
username.set(property("sonatype_USR").toString())
password.set(property("sonatype_PSW").toString())
}
}
fun TaskContainer.connectIncludedBuildTasks(
includedBuildName: String,
taskName: String,
taskToConnect: String = taskName,
) {
named(taskName) {
dependsOn(
project.gradle.includedBuild(includedBuildName).task(":$taskToConnect")
)
}
}
tasks {
connectIncludedBuildTasks("build-logic", "check")
connectIncludedBuildTasks("build-logic", "quickCheck")
}