-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
92 lines (80 loc) · 2.06 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
import java.lang.System.getenv
@Suppress("DSL_SCOPE_VIOLATION") plugins {
`java-library`
`maven-publish`
signing
alias(libs.plugins.nexus)
}
group = "io.arrow-kt"
repositories {
mavenCentral()
}
tasks.named<JavaCompile>("compileJava") {
options.release.set(8)
}
tasks.test {
useJUnitPlatform()
}
dependencies {
annotationProcessor(libs.lombok)
compileOnly(libs.lombok)
implementation(libs.checkstyle)
implementation(libs.rewrite.core)
implementation(libs.bundles.rewrite)
testImplementation(libs.bundles.rewrite.test)
testRuntimeOnly(libs.arrow.core)
testRuntimeOnly(libs.junit.jupiter.engine)
testRuntimeOnly(libs.lombok)
}
java {
withJavadocJar()
withSourcesJar()
}
nexusPublishing {
repositories {
sonatype {
username.set(getenv("OSS_USER"))
password.set(getenv("OSS_TOKEN"))
stagingProfileId.set(getenv("OSS_STAGING_PROFILE_ID"))
}
}
}
signing {
useInMemoryPgpKeys(
getenv("SIGNING_KEY_ID"),
getenv("SIGNING_KEY"),
getenv("SIGNING_KEY_PASSPHRASE")
)
sign(project.extensions.getByName<PublishingExtension>("publishing").publications)
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
artifactId = "rewrite-arrow"
from(components["java"])
pom {
name.set("Rewrite Arrow")
description.set("OpenRewrite recipes for Arrow 1.2.0-RC / 2.0.0")
url.set("https://github.com/arrow-kt/rewrite-arrow")
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("nomisRev")
name.set("Simon Vergauwen")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/arrow-kt/rewrite-arrow.git")
developerConnection.set("scm:git:ssh://github.com/arrow-kt/rewrite-arrow.git")
url.set("https://github.com/arrow-kt/rewrite-arrow")
}
}
}
}
}