forked from benkuly/matrix-spring-boot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
68 lines (60 loc) · 2.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
plugins {
`maven-publish`
signing
}
dependencies {
api("org.springframework.boot:spring-boot-starter-webflux")
api(project(":matrix-spring-boot-core"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
implementation("com.michael-bull.kotlin-retry:kotlin-retry:${Versions.kotlinRetry}")
annotationProcessor("org.springframework.boot:spring-boot-autoconfigure-processor")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
testImplementation("io.projectreactor:reactor-test")
testImplementation("com.squareup.okhttp3:mockwebserver")
}
publishing {
publications {
create<MavenPublication>("matrix-spring-boot-rest-client") {
pom {
artifactId = "matrix-spring-boot-rest-client"
from(components["java"])
name.set("matrix-spring-boot-rest-client")
description.set("Spring Boot Starter for matrix-protocol client.")
url.set("https://github.com/benkuly/matrix-spring-boot-sdk")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("benkuly")
}
}
scm {
connection.set("scm:git:git://github.com/benkuly/matrix-spring-boot-sdk.git")
developerConnection.set("scm:git:ssh://github.com/benkuly/matrix-spring-boot-sdk.git")
url.set("https://github.com/benkuly/matrix-spring-boot-sdk")
}
}
}
}
repositories {
maven {
name = "OSSRH"
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
}
signing {
useInMemoryPgpKeys(
System.getenv("MAVEN_SIGN_KEY"),
System.getenv("MAVEN_SIGN_PASSWORD")
)
sign(publishing.publications["matrix-spring-boot-rest-client"])
}