-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathbuild.gradle.kts
73 lines (63 loc) · 2.44 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm")
signing
}
repositories {
mavenCentral()
}
val springBootVersion: String by extra
val springRestDocsVersion: String by extra
val junitVersion: String by extra
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation(project(":restdocs-api-spec"))
implementation("org.springframework.restdocs:spring-restdocs-webtestclient:$springRestDocsVersion")
testImplementation("org.springframework.boot:spring-boot-starter-test:$springBootVersion") {
exclude("junit")
}
testImplementation("org.hibernate.validator:hibernate-validator:8.0.0.Final")
testImplementation("org.springframework.boot:spring-boot-starter-validation:$springBootVersion")
testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
testImplementation("org.junit-pioneer:junit-pioneer:0.3.0")
testImplementation("org.springframework.boot:spring-boot-starter-web:$springBootVersion")
testImplementation("org.springframework.boot:spring-boot-starter-hateoas:$springBootVersion")
testImplementation("io.projectreactor:reactor-core:3.2.8.RELEASE")
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
pom {
name.set("REST Doc API Spec - Web Test Client")
description.set("Adds API specification support to Spring REST Docs ")
url.set("https://github.com/ePages-de/restdocs-api-spec")
licenses {
license {
name.set("MIT License")
url.set("https://github.com/ePages-de/restdocs-api-spec/blob/master/LICENSE")
}
}
developers {
developer {
id.set("ePages")
name.set("ePages Devs")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/ePages-de/restdocs-api-spec.git")
developerConnection.set("scm:git:ssh://github.com/ePages-de/restdocs-api-spec.git")
url.set("https://github.com/ePages-de/restdocs-api-spec")
}
}
}
}
}
signing {
sign(publishing.publications["mavenJava"])
}
java {
withJavadocJar()
withSourcesJar()
}