dependencies: Match RL dependencies
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
|
||||
import org.ajoberstar.grgit.Grgit
|
||||
|
||||
buildscript {
|
||||
@@ -35,14 +34,10 @@ buildscript {
|
||||
}
|
||||
dependencies {
|
||||
classpath("org.ajoberstar.grgit:grgit-core:4.1.0")
|
||||
classpath("com.github.ben-manes:gradle-versions-plugin:0.36.0")
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("com.adarshr.test-logger") version "2.1.1" apply false
|
||||
id("com.github.ben-manes.versions") version "0.36.0"
|
||||
id("se.patrikerdes.use-latest-versions") version "0.2.15"
|
||||
id("org.ajoberstar.grgit") version "4.1.0"
|
||||
|
||||
application
|
||||
@@ -55,12 +50,6 @@ val localGitCommit = try {
|
||||
"n/a"
|
||||
}
|
||||
|
||||
fun isNonStable(version: String): Boolean {
|
||||
return listOf("ALPHA", "BETA", "RC").any {
|
||||
version.toUpperCase().contains(it)
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
group = "com.openosrs"
|
||||
version = ProjectVersions.openosrsVersion
|
||||
@@ -112,7 +101,6 @@ subprojects {
|
||||
}
|
||||
filter {
|
||||
includeModule("net.runelite", "fernflower")
|
||||
includeModule("com.openosrs.rxrelay3", "rxrelay")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,9 +109,6 @@ 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("\\", "/")
|
||||
@@ -185,27 +170,13 @@ 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")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
configurations["compileOnly"].extendsFrom(configurations["annotationProcessor"])
|
||||
}
|
||||
|
||||
application {
|
||||
mainClassName = "net.runelite.client.RuneLite"
|
||||
mainClass.set("net.runelite.client.RuneLite")
|
||||
}
|
||||
|
||||
tasks {
|
||||
@@ -215,18 +186,4 @@ tasks {
|
||||
classpath = project(":runelite-client").sourceSets.main.get().runtimeClasspath
|
||||
enableAssertions = true
|
||||
}
|
||||
|
||||
named<DependencyUpdatesTask>("dependencyUpdates") {
|
||||
checkForGradleUpdate = false
|
||||
|
||||
resolutionStrategy {
|
||||
componentSelection {
|
||||
all {
|
||||
if (candidate.displayName.contains("fernflower") || isNonStable(candidate.version)) {
|
||||
reject("Non stable")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user