gradle: Run update dependencies

This commit is contained in:
Owain van Brakel
2020-04-08 17:15:46 +02:00
parent 3c1e04d147
commit 7b9ef78c40
6 changed files with 36 additions and 20 deletions

View File

@@ -33,14 +33,14 @@ buildscript {
}
dependencies {
classpath("org.ajoberstar.grgit:grgit-core:4.0.1")
classpath("com.github.ben-manes:gradle-versions-plugin:0.27.0")
classpath("com.github.ben-manes:gradle-versions-plugin:0.28.0")
classpath("com.openosrs:injector-plugin:${ProjectVersions.openosrsInjectorVersion}")
}
}
plugins {
id("com.adarshr.test-logger") version "2.0.0" apply false
id("com.github.ben-manes.versions") version "0.27.0"
id("com.github.ben-manes.versions") version "0.28.0"
id("se.patrikerdes.use-latest-versions") version "0.2.13"
id("org.ajoberstar.grgit") version "4.0.1"
@@ -98,6 +98,8 @@ subprojects {
apply<JavaLibraryPlugin>()
//apply<MavenPublishPlugin>()
apply(plugin = "com.adarshr.test-logger")
apply(plugin = "com.github.ben-manes.versions")
apply(plugin = "se.patrikerdes.use-latest-versions")
project.extra["gitCommit"] = localGitCommit
project.extra["rootPath"] = rootDir.toString().replace("\\", "/")
@@ -143,6 +145,20 @@ subprojects {
exclude("**/LayoutSolver.java")
exclude("**/RoomType.java")
}
named<DependencyUpdatesTask>("dependencyUpdates") {
checkForGradleUpdate = false
resolutionStrategy {
componentSelection {
all {
if (candidate.displayName.contains("fernflower") || isNonStable(candidate.version)) {
reject("Non stable")
}
}
}
}
}
}
}