-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
54 lines (49 loc) · 1.29 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
plugins {
id("net.researchgate.release") version "3.0.2"
id("com.github.breadmoirai.github-release") version "2.4.1"
}
githubRelease {
owner("wttech")
repo("gradle-config-plugin")
token((findProperty("github.token") ?: "").toString())
tagName(project.version.toString())
releaseName(project.version.toString())
draft((findProperty("github.draft") ?: "false").toString().toBoolean())
overwrite((findProperty("github.override") ?: "true").toString().toBoolean())
gradle.projectsEvaluated {
releaseAssets(project(":plugin").tasks.named("jar"))
}
if ((findProperty("github.prerelease") ?: "true").toString().toBoolean()) {
prerelease(true)
} else {
body { """
|# What's new
|
|TBD
|
|# Upgrade notes
|
|Nothing to do.
|
|# Contributions
|
|None.
""".trimMargin()
}
}
}
defaultTasks(":plugin:publishToMavenLocal")
tasks {
afterReleaseBuild {
dependsOn(":plugin:publishPlugins")
}
named("release") {
dependsOn(":plugin:build", ":plugin:functionalTest")
}
named("githubRelease") {
mustRunAfter(":release")
}
register("fullRelease") {
dependsOn(":release", ":githubRelease")
}
}