1
1
plugins {
2
- id ' org.springframework.boot' version ' 2.4.3 '
2
+ id ' org.springframework.boot' version ' 2.4.4 '
3
3
id ' io.spring.dependency-management' version ' 1.0.11.RELEASE'
4
- id ' java'
5
- id ' distribution'
6
- id ' java-library'
7
- id ' java-library-distribution'
4
+ id ' java-library'
8
5
id ' maven-publish'
6
+ id ' signing'
7
+ id ' io.github.gradle-nexus.publish-plugin' version ' 1.0.0'
9
8
id ' net.researchgate.release' version ' 2.8.1'
10
9
id ' com.github.ben-manes.versions' version ' 0.38.0'
11
10
id ' com.github.breadmoirai.github-release' version ' 2.2.12'
12
- id ' com.jfrog.bintray' version ' 1.8.5'
13
11
}
14
12
15
13
group = ' com.redislabs'
23
21
}
24
22
25
23
repositories {
26
- jcenter()
27
24
mavenCentral()
28
25
mavenLocal()
29
26
}
@@ -40,7 +37,7 @@ dependencies {
40
37
implementation (' org.springframework.boot:spring-boot-starter' ) {
41
38
exclude group : ' io.lettuce' , module : ' lettuce-core'
42
39
}
43
- api ' com.redislabs:lettusearch:3.0.1 '
40
+ api ' com.redislabs:lettusearch:3.1.2 '
44
41
api ' org.apache.commons:commons-pool2'
45
42
compileOnly ' org.projectlombok:lombok'
46
43
annotationProcessor ' org.projectlombok:lombok'
@@ -50,21 +47,7 @@ test {
50
47
useJUnitPlatform()
51
48
}
52
49
53
- distributions {
54
- main {
55
- contents {
56
- from (project. docsDir) {
57
- into ' docs'
58
- }
59
- from ' README.md'
60
- from ' LICENSE'
61
- }
62
- }
63
- }
64
-
65
- distTar {
66
- compression = Compression . GZIP
67
- }
50
+ ext. isReleaseVersion = ! version. endsWith(" SNAPSHOT" )
68
51
69
52
publishing {
70
53
publications {
@@ -104,37 +87,28 @@ publishing {
104
87
}
105
88
}
106
89
90
+ signing {
91
+ sign publishing. publications. mavenJava
92
+ }
93
+
94
+ tasks. withType(Sign ) {
95
+ onlyIf { isReleaseVersion }
96
+ }
97
+
98
+ nexusPublishing {
99
+ repositories {
100
+ sonatype()
101
+ }
102
+ }
103
+
107
104
githubRelease {
108
105
token = project. hasProperty(' githubToken' ) ? project. property(' githubToken' ) : ' '
109
106
owner " RediSearch"
110
107
repo " spring-redisearch"
111
- releaseAssets distZip, distTar
112
108
draft true
113
109
body changelog()
114
110
}
115
111
116
- bintray {
117
- user = project. hasProperty(' bintrayUser' ) ? project. property(' bintrayUser' ) : ' '
118
- key = project. hasProperty(' bintrayKey' ) ? project. property(' bintrayKey' ) : ' '
119
- publications = [' mavenJava' ]
120
- publish = true
121
- pkg {
122
- repo = ' maven'
123
- name = project. name
124
- licenses = [' Apache-2.0' ]
125
- vcsUrl = ' https://github.com/RediSearch/spring-redisearch.git'
126
- version {
127
- gpg {
128
- sign = true
129
- }
130
- mavenCentralSync {
131
- sync = true
132
- user = project. hasProperty(' ossrhUsername' ) ? project. property(' ossrhUsername' ) : ' '
133
- password = project. hasProperty(' ossrhPassword' ) ? project. property(' ossrhPassword' ) : ' '
134
- }
135
- }
136
- }
137
- }
138
-
139
- bintrayUpload. dependsOn " :githubRelease"
140
- afterReleaseBuild. dependsOn bintrayUpload
112
+ afterReleaseBuild. dependsOn " :githubRelease"
113
+ afterReleaseBuild. dependsOn " :publishToSonatype"
114
+ afterReleaseBuild. dependsOn " :closeAndReleaseSonatypeStagingRepository"
0 commit comments