-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
92 lines (82 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
plugins {
`maven-publish`
`java-library`
signing
id("io.freefair.lombok") version "8.11"
}
group = "com.ardetrick.testcontainers"
version = "0.0.1"
repositories {
mavenCentral()
}
dependencies {
api(platform("org.testcontainers:testcontainers-bom:1.20.4"))
api("org.testcontainers:testcontainers")
api("org.testcontainers:junit-jupiter")
testImplementation(platform("org.junit:junit-bom:5.11.4"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.testcontainers:junit-jupiter")
testImplementation("org.assertj:assertj-core:3.27.2")
}
java.toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
tasks.test {
useJUnitPlatform()
}
java {
withJavadocJar()
withSourcesJar()
}
configure<PublishingExtension> {
publications {
create<MavenPublication>("maven") {
from(components["java"])
groupId = groupId
artifactId = artifactId
description = "Test Container for Ory Hydra"
}
withType<MavenPublication> {
pom {
packaging = "jar"
name.set("testcontainers-ory-hydra")
description.set("testcontainers ory hydra")
url.set("https://github.com/ardetrick/testcontainers-ory-hydra")
inceptionYear.set("2023")
licenses {
license {
name.set("MIT license")
url.set("https://opensource.org/licenses/MIT")
}
}
developers {
developer {
id.set("ardetrick")
name.set("Alex Detrick")
email.set("oss@ardetrick.com")
}
}
scm {
connection.set("scm:git:git@github.com:ardetrick/testcontainers-ory-hydra/.git")
developerConnection.set("scm:git:ssh:git@github.com:ardetrick/testcontainers-ory-hydra/.git")
url.set("https://github.com/ardetrick/testcontainers-ory-hydra/")
}
}
}
}
repositories {
maven {
name = "OSSRH"
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?
}
}
}
}
signing {
configure<SigningExtension> {
sign(publishing.publications["maven"])
}
}