-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
72 lines (60 loc) · 1.79 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
plugins {
`java-library`
`maven-publish`
id("com.github.johnrengelman.shadow") version "7.1.2"
id("org.sonarqube") version "3.4.0.2513"
id("io.freefair.lombok") version "6.5.1"
jacoco
checkstyle
}
group = "org.kryonite"
version = "2.0.1"
repositories {
mavenCentral()
}
dependencies {
val junitVersion = "5.9.0"
api("com.rabbitmq:amqp-client:5.15.0")
api("com.fasterxml.jackson.core:jackson-databind:2.13.4")
testImplementation("com.github.fridujo:rabbitmq-mock:1.1.1")
testImplementation("org.slf4j:slf4j-simple:2.0.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
testImplementation("org.mockito:mockito-junit-jupiter:4.8.0")
testImplementation("org.awaitility:awaitility:4.2.0")
}
tasks.test {
finalizedBy("jacocoTestReport")
useJUnitPlatform()
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withJavadocJar()
}
tasks.jacocoTestReport {
reports {
xml.required.set(true)
}
}
checkstyle {
toolVersion = "9.2.1"
config = project.resources.text.fromUri("https://kryonite.org/checkstyle.xml")
}
sonarqube {
properties {
property("sonar.projectKey", "kryoniteorg_kryo-messaging")
property("sonar.organization", "kryoniteorg")
property("sonar.host.url", "https://sonarcloud.io")
}
}
publishing {
publications {
create<MavenPublication>("java") {
groupId = project.group.toString()
artifactId = project.name.toLowerCase()
version = project.version.toString()
from(components["java"])
}
}
}