-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
108 lines (89 loc) · 3.08 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
plugins {
`java-library`
id("io.freefair.lombok") version "8.0.1"
`maven-publish`
id("signing")
}
group = "io.github.aquerr"
description = "Simple Java Steam Web API client."
version = "1.3.0-SNAPSHOT"
repositories {
mavenCentral()
}
java.toolchain.languageVersion.set(JavaLanguageVersion.of(JavaVersion.VERSION_11.majorVersion))
java {
withSourcesJar()
withJavadocJar()
}
dependencies {
api("com.fasterxml.jackson.core:jackson-databind:2.16.1")
testImplementation(platform("org.junit:junit-bom:5.9.3"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.mockito:mockito-core:5.4.0")
testImplementation("org.mockito:mockito-junit-jupiter:5.4.0")
testImplementation("org.assertj:assertj-core:3.24.2")
testImplementation("com.github.tomakehurst:wiremock-jre8:2.35.0")
}
tasks.test {
useJUnitPlatform()
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
pom {
name.set("Steam Web Api Client")
artifactId = "steam-web-api-client"
description.set(project.description)
url.set("https://github.com/Aquerr/steam-web-api-client")
licenses {
license {
name.set("Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0")
}
}
developers {
developer {
id.set("Aquerr")
name.set("Bartłomiej Stępień")
url.set("https://github.com/Aquerr")
}
developer {
id.set("mateo9x")
name.set("Mateusz P.")
url.set("https://github.com/mateo9x")
}
}
scm {
connection.set("scm:git:git://github.com/Aquerr/steam-web-api-client.git")
developerConnection.set("scm:git:ssh://github.com/Aquerr/steam-web-api-client.git")
url.set("https://github.com/Aquerr/steam-web-api-client")
}
}
}
}
repositories {
maven {
name = "oss"
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = project.findProperty("ossrhUsername") as String?
password = project.findProperty("ossrhPassword") as String?
}
}
maven {
name = "oss-snapshots"
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
credentials {
username = project.findProperty("ossrhUsername") as String?
password = project.findProperty("ossrhPassword") as String?
}
}
}
}
signing {
setRequired({
(!project.version.toString().endsWith("SNAPSHOT"))
})
sign(publishing.publications["maven"])
}