File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,11 @@ repositories {
1515plugins {
1616 `java- library`
1717 `maven- publish`
18+ signing
1819 id(" org.jetbrains.kotlin.jvm" ) version " 1.6.10"
1920 kotlin(" plugin.serialization" ) version " 1.6.10"
2021 id(" org.jlleitschuh.gradle.ktlint" ) version " 10.0.0"
22+ id(" com.github.ben-manes.versions" ) version " 0.42.0"
2123}
2224
2325group = " dev.gitlive"
@@ -180,3 +182,29 @@ tasks.named("publish").configure {
180182ktlint {
181183 version.set(" 0.41.0" )
182184}
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