File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,11 @@ repositories {
15
15
plugins {
16
16
`java- library`
17
17
`maven- publish`
18
+ signing
18
19
id(" org.jetbrains.kotlin.jvm" ) version " 1.6.10"
19
20
kotlin(" plugin.serialization" ) version " 1.6.10"
20
21
id(" org.jlleitschuh.gradle.ktlint" ) version " 10.0.0"
22
+ id(" com.github.ben-manes.versions" ) version " 0.42.0"
21
23
}
22
24
23
25
group = " dev.gitlive"
@@ -180,3 +182,29 @@ tasks.named("publish").configure {
180
182
ktlint {
181
183
version.set(" 0.41.0" )
182
184
}
185
+
186
+ signing {
187
+ val signingKey: String? by project
188
+ val signingPassword: String? by project
189
+ useInMemoryPgpKeys(signingKey, signingPassword)
190
+ sign(publishing.publications)
191
+ }
192
+
193
+ tasks.withType< com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask > {
194
+
195
+ fun isNonStable (version : String ): Boolean {
196
+ val stableKeyword = listOf (" RELEASE" , " FINAL" , " GA" ).any { version.toUpperCase().contains(it) }
197
+ val versionMatch = " ^[0-9,.v-]+(-r)?$" .toRegex().matches(version)
198
+
199
+ return (stableKeyword || versionMatch).not ()
200
+ }
201
+
202
+ rejectVersionIf {
203
+ isNonStable(candidate.version)
204
+ }
205
+
206
+ checkForGradleUpdate = true
207
+ outputFormatter = " plain,html"
208
+ outputDir = " build/dependency-reports"
209
+ reportfileName = " dependency-updates"
210
+ }
You can’t perform that action at this time.
0 commit comments