-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
111 lines (90 loc) · 2.61 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
99
100
101
102
103
104
105
106
107
108
109
110
111
import nebula.plugin.release.git.opinion.Strategies
plugins {
jacoco
id("org.curioswitch.curiostack.java-library")
id("org.curioswitch.curiostack.publishing")
id("com.github.ben-manes.versions")
id("io.github.gradle-nexus.publish-plugin")
id("nebula.release")
}
release {
defaultVersionStrategy = Strategies.getSNAPSHOT()
}
nebulaRelease {
addReleaseBranchPattern("""v\d+\.\d+\.x""")
}
nexusPublishing {
repositories {
sonatype {
username.set(System.getenv("MAVEN_USERNAME"))
password.set(System.getenv("MAVEN_PASSWORD"))
}
}
}
description = "A library for efficient marshalling of Protocol Buffer messages to and from JSON."
dependencies {
compileOnly("com.fasterxml.jackson.core:jackson-databind")
api("com.fasterxml.jackson.core:jackson-core")
api("com.google.protobuf:protobuf-java")
implementation("net.bytebuddy:byte-buddy")
// Used by byte-buddy but not brought in as a transitive dependency.
compileOnly("com.google.code.findbugs:annotations")
testImplementation(project(":testing"))
testImplementation("com.google.protobuf:protobuf-java-util")
}
testing {
suites {
register<JvmTestSuite>("testDatabind") {
dependencies {
implementation(project())
implementation(project(":testing"))
implementation("com.fasterxml.jackson.core:jackson-databind")
implementation("com.google.protobuf:protobuf-java-util")
}
}
}
}
tasks {
withType<JavaCompile>().configureEach {
with(options) {
release.set(8)
}
}
check {
dependsOn(testing.suites.named("testDatabind"))
}
named("release") {
mustRunAfter("snapshotSetup", "finalSetup")
}
}
publishing {
publications {
named<MavenPublication>("maven") {
groupId = "org.curioswitch.curiostack"
pom {
name.set("protobuf-jackson")
url.set("https://github.com/curioswitch/protobuf-jackson")
licenses {
license {
name.set("MIT License")
url.set("https://opensource.org/licenses/MIT")
}
}
developers {
developer {
id.set("chokoswitch")
name.set("Choko")
email.set("choko@curioswitch.org")
organization.set("CurioSwitch")
organizationUrl.set("https://github.com/curioswitch/curiostack")
}
}
scm {
connection.set("scm:git:git://github.com/curioswitch/protobuf-jackson.git")
developerConnection.set("scm:git:git://github.com/curioswitch/protobuf-jackson.git")
url.set("git@github.com:curioswitch/protobuf-jackson.git")
}
}
}
}
}