-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
98 lines (87 loc) · 2.58 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
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
import net.researchgate.release.ReleasePlugin
import se.bjurr.gitchangelog.plugin.gradle.GitChangelogTask
plugins {
base
kotlin("jvm") version "1.4.10" apply false
id("com.ekino.oss.plugin.kotlin-quality") version "2.0.0" apply false
id("net.researchgate.release") version "2.8.1"
id("se.bjurr.gitchangelog.git-changelog-gradle-plugin") version "1.64"
id("org.jetbrains.dokka") version "1.4.0-rc"
}
allprojects {
group = "com.ekino.oss.jcv"
repositories {
mavenCentral()
jcenter()
}
registerProperties(
"kotlin.version" to "1.4.10",
"commons-io.version" to "2.7",
"jsonassert.version" to "1.5.0",
"assertj.version" to "3.16.1",
"hamcrest.version" to "2.2",
"junit-jupiter.version" to "5.6.2",
"assertk-jvm.version" to "0.22",
"wiremock.version" to "2.27.2"
)
}
tasks.create("printVersion") {
doLast {
val version: String by project
println(version)
}
}
tasks.create<GitChangelogTask>("gitChangelogTask") {
file = File("CHANGELOG.md")
templateContent = file("template_changelog.mustache").readText()
}
subprojects {
apply<MavenPublishPlugin>()
apply<ReleasePlugin>()
configure<PublishingExtension> {
publications {
create<MavenPublication>("mavenJava") {
pom {
name.set("JCV")
description.set("JSON Content Validator (JCV) allows you to compare JSON contents with embedded validation.")
url.set("https://github.com/ekino/jcv")
licenses {
license {
name.set("MIT License (MIT)")
url.set("https://opensource.org/licenses/mit-license")
}
}
developers {
developer {
name.set("Léo Millon")
email.set("[email protected]")
organization.set("ekino")
organizationUrl.set("https://www.ekino.com/")
}
}
scm {
connection.set("scm:git:git://github.com/ekino/jcv.git")
developerConnection.set("scm:git:ssh://github.com:ekino/jcv.git")
url.set("https://github.com/ekino/jcv")
}
organization {
name.set("ekino")
url.set("https://www.ekino.com/")
}
}
repositories {
maven {
val ossrhUrl: String? by project
val ossrhUsername: String? by project
val ossrhPassword: String? by project
url = uri(ossrhUrl ?: "")
credentials {
username = ossrhUsername
password = ossrhPassword
}
}
}
}
}
}
}