-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
107 lines (87 loc) · 2.85 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "3.2.5"
id("io.spring.dependency-management") version "1.1.4"
id("com.github.ben-manes.versions") version "0.51.0"
id("org.jmailen.kotlinter") version "4.3.0"
kotlin("jvm") version "1.9.22"
kotlin("plugin.spring") version "1.9.22"
id("net.thebugmc.gradle.sonatype-central-portal-publisher") version "1.2.3"
id("maven-publish")
}
group = "com.valensas"
version = "0.3.1"
java.sourceCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral()
mavenLocal()
}
tasks.getByName<Jar>("jar") {
archiveClassifier.set("")
}
dependencies {
// Autoconfiguration
implementation("org.springframework.boot:spring-boot-autoconfigure")
// Reflection
implementation("org.reflections:reflections:0.10.2")
// Jackson
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
// Kafka
api("org.springframework.kafka:spring-kafka")
// Kafka documentation support
implementation("io.github.springwolf:springwolf-ui:1.1.0")
implementation("io.github.springwolf:springwolf-asyncapi:1.1.0")
implementation("io.github.springwolf:springwolf-kafka:1.1.0")
implementation("org.openfolder:kotlin-asyncapi-spring-web:3.0.3")
// Test
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.boot:spring-boot-starter-web")
testImplementation("org.springframework.kafka:spring-kafka-test")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "17"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
}
}
}
signing {
val keyId = System.getenv("SIGNING_KEYID")
val secretKey = System.getenv("SIGNING_SECRETKEY")
val passphrase = System.getenv("SIGNING_PASSPHRASE")
useInMemoryPgpKeys(keyId, secretKey, passphrase)
}
centralPortal {
username = System.getenv("SONATYPE_USERNAME")
password = System.getenv("SONATYPE_PASSWORD")
pom {
name = "Valensas Kafka"
description = "This library contains the minimum requirements set by Valensas for kafka libraries that use kafka producer or consumer."
url = "https://valensas.com/"
scm {
url = "https://github.com/Valensas/spring-kafka"
}
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("0")
name.set("Valensas")
email.set("info@valensas.com")
}
}
}
}