-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
126 lines (108 loc) · 3.21 KB
/
build.gradle
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
plugins {
id "signing"
id 'maven-publish'
id "com.github.ben-manes.versions" version "${benManesVersionsVersion}"
id "io.github.gradle-nexus.publish-plugin" version "${publishPluginVersion}"
id "io.gitlab.arturbosch.detekt" version "${detektPluginVersion}"
id "io.micronaut.minimal.library" version "${micronautPluginVersion}"
id "org.jetbrains.dokka" version "${dokkaVersion}"
id "org.jetbrains.kotlin.jvm" version "${kotlinVersion}"
id "com.google.devtools.ksp" version "${kspVersion}"
id "org.jetbrains.kotlin.plugin.allopen" version "${kotlinVersion}"
id "org.jetbrains.kotlinx.kover" version "${koverPluginVersion}"
}
group = 'com.rapatao.micronaut'
repositories {
mavenCentral()
}
micronaut {
version "${micronautVersion}"
testRuntime "junit5"
processing {
incremental true
annotations "com.rapatao.micronaut.wiremock.*"
}
}
dependencies {
api("org.wiremock:wiremock:${wiremockVersion}")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlinVersion}")
implementation("org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}")
compileOnly("org.junit.jupiter:junit-jupiter-api")
testImplementation("io.micronaut.serde:micronaut-serde-jackson")
testImplementation("io.micronaut:micronaut-http-client")
}
java {
withSourcesJar()
withJavadocJar()
}
compileKotlin {
kotlinOptions.jvmTarget = "${javaVersion}"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "${javaVersion}"
}
test {
useJUnitPlatform()
}
kover {
reports {
verify {
rule {
minBound(90)
}
}
}
}
detekt {
buildUponDefaultConfig = true
allRules = false
reports {
html.enabled = true
xml.enabled = true
txt.enabled = true
sarif.enabled = true
}
}
signing {
useGpgCmd()
sign publishing.publications
}
nexusPublishing {
repositories {
sonatype {
username = System.getenv('OSSRH_USERNAME')
password = System.getenv('OSSRH_PASSWORD')
}
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
pom {
name = "Micronaut WireMock Support"
description = "WireMock integration for Micronaut"
url = "https://github.com/rapatao/micronaut-wiremock"
packaging = "jar"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "https://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = "rapatao"
name = "Luiz Henrique Rapatao"
email = "rapatao@rapatao.com"
}
}
scm {
connection = "scm:git:git://github.com/rapatao/micronaut-wiremock.git"
developerConnection = "scm:git:ssh://github.com/rapatao/micronaut-wiremock.git"
url = "https://github.com/rapatao/micronaut-wiremock"
}
}
}
}
}