-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
113 lines (92 loc) · 2.76 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
import org.springframework.boot.gradle.plugin.SpringBootPlugin
plugins {
id 'java-library'
id 'org.springframework.boot' version '3.4.1' apply false
id 'io.spring.dependency-management' version '1.1.7'
id 'com.diffplug.spotless' version '6.25.0'
id 'maven-publish'
id 'signing'
id 'net.thebugmc.gradle.sonatype-central-portal-publisher' version '1.2.4'
}
group = 'io.k8swatcher'
version = '1.0.3'
java {
sourceCompatibility = '17'
withJavadocJar()
withSourcesJar()
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencyManagement {
imports {
mavenBom SpringBootPlugin.BOM_COORDINATES
}
}
ext{
fabric8Version = '6.13.4'
}
dependencies {
api "io.fabric8:kubernetes-client:${fabric8Version}"
implementation 'jakarta.annotation:jakarta.annotation-api:3.0.0'
implementation 'org.springframework.boot:spring-boot-autoconfigure'
implementation 'org.springframework:spring-context-support'
implementation 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation "io.fabric8:kubernetes-server-mock:${fabric8Version}"
testImplementation "io.fabric8:mockwebserver:${fabric8Version}"
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
tasks.named('test') {
useJUnitPlatform()
}
tasks.withType(JavaCompile).configureEach {
options.compilerArgs.add("-parameters")
}
apply plugin: "com.diffplug.spotless"
spotless {
format 'misc', {
target '*.gradle', '.gitattributes', '.gitignore'
trimTrailingWhitespace()
endWithNewline()
}
java {
formatAnnotations()
removeUnusedImports()
palantirJavaFormat()
}
}
signing {
useGpgCmd()
}
centralPortal{
pom {
name= "Viktor Pergjoka"
description="Spring Boot library for watching Kubernetes resources with Informers. Create Kubernetes Controllers" +
" and Kubernetes Operators"
url = "https://github.com/viktorpergjoka/spring-k8swatcher"
licenses{
license{
name ="The Apache License, Version 2.0"
url="http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers{
developer{
name="Viktor Pergjoka"
email="[email protected]"
}
}
scm{
connection ="scm:git:https://github.com/viktorpergjoka/spring-k8swatcher"
developerConnection ="scm:git:https://github.com/viktorpergjoka/spring-k8swatcher"
url= "https://github.com/viktorpergjoka/spring-k8swatcher"
}
}
}