-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle.kts
82 lines (74 loc) · 2.55 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
plugins {
id("java")
id("signing")
id("maven-publish")
}
allprojects {
group = "com.linecorp.conditional"
version = "1.1.3"
repositories {
mavenCentral()
}
}
subprojects {
apply(plugin = "java")
apply(plugin = "signing")
apply(plugin = "maven-publish")
dependencies {
implementation("com.google.code.findbugs:jsr305:3.0.2")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
testImplementation("org.assertj:assertj-core:3.24.1")
testImplementation("org.awaitility:awaitility:4.2.0")
}
java {
withSourcesJar()
withJavadocJar()
}
signing {
sign(publishing.publications)
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
repositories {
maven {
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
val sonatypeUsername: String? by project
val sonatypePassword: String? by project
credentials {
username = sonatypeUsername ?: ""
password = sonatypePassword ?: ""
}
}
}
pom {
name.set(artifactId)
description.set("A super lightweight library that helps you to compose multiple conditional expressions and make them asynchronous easily")
url.set("https://github.com/line/conditional")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("icepeppermint")
name.set("Suyeong Hong")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/line/conditional.git")
developerConnection.set("scm:git:ssh://github.com/line/conditional.git")
url.set("https://github.com/line/conditional")
}
}
}
}
}
tasks.test {
useJUnitPlatform()
}
}