1
1
plugins {
2
- id ' org.springframework.boot' version ' 2.4.5'
3
- id ' io.spring.dependency-management' version ' 1.0.11.RELEASE'
4
- id ' io.freefair.lombok' version ' 6.0.0-m2'
5
2
id ' java-library'
6
3
id ' maven-publish'
7
4
id ' signing'
5
+ id ' jacoco'
6
+ id ' org.jreleaser' version ' 0.4.0'
8
7
id ' io.github.gradle-nexus.publish-plugin' version ' 1.1.0'
9
- id ' net.researchgate.release' version ' 2.8.1'
10
8
id ' com.github.ben-manes.versions' version ' 0.38.0'
11
- id ' com.github.breadmoirai.github-release' version ' 2.2.12'
12
- id ' jacoco'
13
9
}
14
10
15
11
group = ' com.redislabs'
16
12
description = ' Kafka Connect source and sink connectors for Redis Enterprise'
17
- sourceCompatibility = ' 1.8'
18
- targetCompatibility = ' 1.8'
19
-
20
- java {
21
- withJavadocJar()
22
- withSourcesJar()
23
- }
24
13
25
14
repositories {
26
15
mavenCentral()
27
16
maven {
28
17
name = " GitHubPackages"
29
- url = uri(" https://maven.pkg.github.com/redis-developer/testcontainers-redis " )
18
+ url = uri(" https://maven.pkg.github.com/redis-developer/registry " )
30
19
credentials {
31
20
username = project. findProperty(" github.username" ) ?: System . getenv(" GITHUB_USERNAME" )
32
21
password = project. findProperty(" github.token" ) ?: System . getenv(" GITHUB_TOKEN" )
33
22
}
34
23
}
35
24
}
36
25
37
- bootJar {
38
- enabled = false
39
- }
40
-
41
- jar {
42
- enabled = true
43
- }
44
-
45
26
dependencies {
46
- compileOnly ' org.projectlombok:lombok'
47
- annotationProcessor ' org.projectlombok:lombok'
27
+ compileOnly ' org.projectlombok:lombok:1.18.20 '
28
+ annotationProcessor ' org.projectlombok:lombok:1.18.20 '
48
29
implementation ' org.apache.kafka:connect-api:2.8.0'
49
30
implementation ' com.github.jcustenborder.kafka.connect:connect-utils:0.4.164'
50
31
implementation ' com.redislabs:spring-batch-redis:2.13.0'
51
- testImplementation ' com.redislabs:testcontainers-redis:1.1.4 '
32
+ testImplementation ' com.redislabs:testcontainers-redis:1.1.6 '
52
33
testImplementation ' org.testcontainers:junit-jupiter:1.15.3-REDISLABS'
53
34
testImplementation ' io.projectreactor:reactor-test:3.4.6'
54
35
testImplementation ' org.mockito:mockito-core:2.21.0'
55
- testImplementation ' org.junit.jupiter:junit-jupiter-api'
56
- testImplementation ' org.junit.jupiter:junit-jupiter-engine'
57
- testImplementation ' org.junit.jupiter:junit-jupiter-params'
36
+ testImplementation ' org.junit.jupiter:junit-jupiter-api:5.7.2'
37
+ testImplementation ' org.junit.jupiter:junit-jupiter-engine:5.7.2'
38
+ testImplementation ' org.junit.jupiter:junit-jupiter-params:5.7.2'
39
+ testImplementation ' org.projectlombok:lombok:1.18.20'
40
+ testAnnotationProcessor ' org.projectlombok:lombok:1.18.20'
58
41
testImplementation ' com.github.jcustenborder.kafka.connect:connect-utils-testing:0.4.164'
59
42
}
60
43
@@ -110,19 +93,6 @@ tasks.withType(Sign) {
110
93
onlyIf { isReleaseVersion }
111
94
}
112
95
113
- nexusPublishing {
114
- repositories {
115
- sonatype()
116
- }
117
- }
118
-
119
- githubRelease {
120
- token = project. hasProperty(' github.token' ) ? project. property(' github.token' ) : ' '
121
- owner " RedisLabs-Field-Engineering"
122
- repo " redis-enterprise-kafka"
123
- body changelog()
124
- }
125
-
126
96
def isNonStable = { String version ->
127
97
def nonStableKeyword = [' PREVIEW' ]. any { it -> version. toUpperCase(). contains(it) }
128
98
def stableKeyword = [' RELEASE' , ' FINAL' , ' GA' , ' JRE8' ]. any { it -> version. toUpperCase(). contains(it) }
@@ -147,7 +117,29 @@ jacocoTestReport {
147
117
148
118
check. dependsOn jacocoTestReport
149
119
150
- afterReleaseBuild. dependsOn " :githubRelease"
151
- afterReleaseBuild. dependsOn " :publishToSonatype"
152
- afterReleaseBuild. dependsOn " :closeAndReleaseSonatypeStagingRepository"
153
- afterReleaseBuild. dependsOn " :publishToMavenLocal"
120
+
121
+ nexusPublishing {
122
+ repositories {
123
+ sonatype()
124
+ }
125
+ }
126
+
127
+
128
+ jreleaser {
129
+ project {
130
+ name = ' redis-enterprise-kafka'
131
+ description = ' Redis Enterprise Kafka Connector'
132
+ longDescription = ' Kafka Connect source and sink connectors for Redis Enterprise'
133
+ website = ' https://github.com/RedisLabs-Field-Engineering/redis-enterprise-kafka'
134
+ authors = [' Julien Ruaux' ]
135
+ tags = [' redis' , ' enterprise' , ' kafka' ]
136
+ license = ' Apache-2.0'
137
+ }
138
+ release {
139
+ github {
140
+ username = ' jruaux'
141
+ owner = ' RedisLabs-Field-Engineering'
142
+ overwrite = true
143
+ }
144
+ }
145
+ }
0 commit comments