actions: More GitHub actions (#1678)

* actions: Rename stale action

* actions: Use master branch of the action repos

* actions: Use OpenOSRS as name

* gradle: filter dependency updates

* gradle: Add use-latest-versions plugin

* actions: Update dependencies

* actions: Combine actions

* actions: Lint PR title

* actions: gradle console plain

* actions: Build and test with java matrix

* actions: Rane some actions
This commit is contained in:
Owain van Brakel
2019-09-30 02:56:40 +02:00
committed by Ganom
parent 49ccc6f9a0
commit d0133dc77a
9 changed files with 161 additions and 97 deletions

View File

@@ -13,8 +13,9 @@ buildscript {
plugins {
id 'com.adarshr.test-logger' version '1.7.0' apply false
id "com.github.ben-manes.versions" version "0.22.0" apply false
id "com.github.ben-manes.versions" version "0.22.0"
id "com.gradle.build-scan" version "2.4"
id 'se.patrikerdes.use-latest-versions' version '0.2.8'
}
apply plugin: 'application'
@@ -109,7 +110,6 @@ subprojects {
apply plugin: 'com.adarshr.test-logger'
apply plugin: 'java-library'
apply plugin: 'maven'
apply plugin: "com.github.ben-manes.versions"
apply plugin: 'fernflower'
sourceCompatibility = 1.8
@@ -171,3 +171,23 @@ run {
classpath = childProjects.client.sourceSets.main.runtimeClasspath
mainClassName = "net.runelite.client.RuneLite"
}
def isNonStable = { String version ->
def unstableKeyword = ['ALPHA', 'BETA', 'RC'].any { it -> version.toUpperCase().contains(it) }
return unstableKeyword
}
dependencyUpdates {
checkForGradleUpdate = false
resolutionStrategy {
componentSelection {
all {
if (isNonStable(candidate.version)) {
reject()
}
}
}
}
}