-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
50 lines (44 loc) · 1.23 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
import com.gradleup.librarian.gradle.PomMetadata
import com.gradleup.librarian.gradle.Signing
import com.gradleup.librarian.gradle.configureJavaCompatibility
import com.gradleup.librarian.gradle.configureKotlinCompatibility
import com.gradleup.librarian.gradle.configurePublishing
plugins {
id("org.jetbrains.kotlin.jvm").version("2.1.0")
id("com.gradleup.librarian").version("0.0.7")
id("com.gradleup.nmcp").version("0.0.8")
}
repositories {
mavenCentral()
}
dependencies {
api("com.squareup.okio:okio:3.4.0")
testImplementation("junit:junit:4.13.2")
}
configureJavaCompatibility(8)
configureKotlinCompatibility("1.6.21")
configurePublishing(
true,
true,
PomMetadata(
"net.mbonnin.xoxo",
"xoxo",
"0.4.1-SNAPSHOT",
"xoxo",
"https://github.com/martinbonnin/xoxo",
"xoxo authors",
"MIT"
),
Signing(
privateKey = System.getenv("GPG_PRIVATE_KEY"),
privateKeyPassword = System.getenv("GPG_PRIVATE_KEY_PASSWORD")
)
)
nmcp {
publish("default") {
username = System.getenv("OSSRH_USER")
password = System.getenv("OSSRH_PASSWORD")
// publish manually from the portal
publicationType = "USER_MANAGED"
}
}