Updated to use Gradle Utils for gradle/project update management
This commit is contained in:
parent
000f14ada9
commit
4b31f4bfef
@ -15,7 +15,6 @@
|
||||
*/
|
||||
|
||||
|
||||
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
|
||||
import java.time.Instant
|
||||
import java.util.*
|
||||
import kotlin.reflect.KMutableProperty
|
||||
@ -42,9 +41,7 @@ plugins {
|
||||
id("com.dorkbox.CrossCompile") version "1.0.1"
|
||||
id("com.dorkbox.Licensing") version "1.4"
|
||||
id("com.dorkbox.VersionUpdate") version "1.4.1"
|
||||
|
||||
// setup checking for the latest version of a plugin or dependency
|
||||
id("com.github.ben-manes.versions") version "0.21.0"
|
||||
id("com.dorkbox.GradleUtils") version "1.0"
|
||||
|
||||
kotlin("jvm") version "1.3.21"
|
||||
}
|
||||
@ -321,37 +318,3 @@ nexusStaging {
|
||||
signing {
|
||||
sign(publishing.publications["maven"])
|
||||
}
|
||||
|
||||
|
||||
|
||||
///////////////////////////////
|
||||
///// Prevent anything other than a release from showing version updates
|
||||
//// https://github.com/ben-manes/gradle-versions-plugin/blob/master/README.md
|
||||
///////////////////////////////
|
||||
tasks.named<DependencyUpdatesTask>("dependencyUpdates") {
|
||||
resolutionStrategy {
|
||||
componentSelection {
|
||||
all {
|
||||
val rejected = listOf("alpha", "beta", "rc", "cr", "m", "preview")
|
||||
.map { qualifier -> Regex("(?i).*[.-]$qualifier[.\\d-]*") }
|
||||
.any { it.matches(candidate.version) }
|
||||
if (rejected) {
|
||||
reject("Release candidate")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// optional parameters
|
||||
checkForGradleUpdate = true
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////
|
||||
////// Gradle Wrapper Configuration.
|
||||
///// Run this task, then refresh the gradle project
|
||||
///////////////////////////////
|
||||
val wrapperUpdate by tasks.creating(Wrapper::class) {
|
||||
gradleVersion = "5.3"
|
||||
distributionUrl = distributionUrl.replace("bin", "all")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user