Factor out common versions in build files

This commit is contained in:
Frank van der Heijden 2021-08-04 20:35:58 +02:00
parent fd69f74b22
commit 44fb0e00b3
No known key found for this signature in database
GPG key ID: B808721C2DD5B5B8
5 changed files with 23 additions and 19 deletions

View file

@ -5,13 +5,13 @@ version = rootProject.version
archivesBaseName = rootProject.name + '-Bukkit' archivesBaseName = rootProject.name + '-Bukkit'
dependencies { dependencies {
implementation "com.github.FrankHeijden.cloud:cloud-paper:${rootProject.cloudVersion}" implementation "cloud.commandframework:cloud-paper:${rootProject.cloudVersion}"
implementation 'net.kyori:adventure-api:4.8.1' implementation "net.kyori:adventure-api:${rootProject.adventureVersion}"
implementation 'net.kyori:adventure-platform-bukkit:4.0.0-SNAPSHOT' implementation "net.kyori:adventure-platform-bukkit:${rootProject.adventurePlatformVersion}"
implementation ('net.kyori:adventure-text-minimessage:4.1.0-SNAPSHOT') { implementation ("net.kyori:adventure-text-minimessage:${rootProject.adventureMinimessageVersion}") {
exclude group: 'net.kyori', module: 'adventure-api' exclude group: 'net.kyori', module: 'adventure-api'
} }
implementation 'org.bstats:bstats-bukkit:2.2.1' implementation "org.bstats:bstats-bukkit:${rootProject.bstatsVersion}"
implementation project(":Common") implementation project(":Common")
compileOnly 'com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT' compileOnly 'com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT'
} }

View file

@ -9,13 +9,13 @@ repositories {
} }
dependencies { dependencies {
implementation "com.github.FrankHeijden.cloud:cloud-bungee:${rootProject.cloudVersion}" implementation "cloud.commandframework:cloud-bungee:${rootProject.cloudVersion}"
implementation 'net.kyori:adventure-api:4.8.1' implementation "net.kyori:adventure-api:${rootProject.adventureVersion}"
implementation 'net.kyori:adventure-platform-bungeecord:4.0.0-SNAPSHOT' implementation "net.kyori:adventure-platform-bungeecord:${rootProject.adventurePlatformVersion}"
implementation ('net.kyori:adventure-text-minimessage:4.1.0-SNAPSHOT') { implementation ("net.kyori:adventure-text-minimessage:${rootProject.adventureMinimessageVersion}") {
exclude group: 'net.kyori', module: 'adventure-api' exclude group: 'net.kyori', module: 'adventure-api'
} }
implementation 'org.bstats:bstats-bungeecord:2.2.1' implementation "org.bstats:bstats-bungeecord:${rootProject.bstatsVersion}"
implementation project(":Common") implementation project(":Common")
compileOnly 'net.md-5:bungeecord-api:1.17-R0.1-SNAPSHOT' compileOnly 'net.md-5:bungeecord-api:1.17-R0.1-SNAPSHOT'
} }

View file

@ -11,11 +11,11 @@ repositories {
} }
dependencies { dependencies {
compileOnly 'net.kyori:adventure-platform-api:4.0.0-SNAPSHOT' compileOnly "net.kyori:adventure-platform-api:${rootProject.adventurePlatformVersion}"
compileOnly 'net.kyori:adventure-text-minimessage:4.1.0-SNAPSHOT' compileOnly "net.kyori:adventure-text-minimessage:${rootProject.adventureMinimessageVersion}"
compileOnly 'com.github.FrankHeijden:ServerUtilsUpdater:v1.0.0' compileOnly 'com.github.FrankHeijden:ServerUtilsUpdater:v1.0.0'
testImplementation 'net.kyori:adventure-text-serializer-plain:4.8.1' testImplementation "net.kyori:adventure-text-serializer-plain:${rootProject.adventureVersion}"
} }
blossom { blossom {

View file

@ -13,10 +13,10 @@ repositories {
} }
dependencies { dependencies {
implementation "com.github.FrankHeijden.cloud:cloud-velocity:${rootProject.cloudVersion}" implementation "cloud.commandframework:cloud-velocity:${rootProject.cloudVersion}"
implementation 'org.bstats:bstats-velocity:2.2.1' implementation "org.bstats:bstats-velocity:${rootProject.bstatsVersion}"
implementation project(":Common") implementation project(":Common")
implementation ('net.kyori:adventure-text-minimessage:4.1.0-SNAPSHOT') { implementation ("net.kyori:adventure-text-minimessage:${rootProject.adventureMinimessageVersion}") {
exclude group: 'net.kyori', module: 'adventure-api' exclude group: 'net.kyori', module: 'adventure-api'
} }
compileOnly 'com.velocitypowered:velocity-api:3.0.0' compileOnly 'com.velocitypowered:velocity-api:3.0.0'

View file

@ -9,7 +9,11 @@ version = '3.0.0-DEV'
allprojects { allprojects {
ext { ext {
cloudVersion = '62e3bc97ef' cloudVersion = '1.6.0-SNAPSHOT'
adventureVersion = '4.8.1'
adventurePlatformVersion = '4.0.0-SNAPSHOT'
adventureMinimessageVersion = '4.1.0-SNAPSHOT'
bstatsVersion = '2.2.1'
} }
} }
@ -31,8 +35,8 @@ subprojects {
} }
dependencies { dependencies {
implementation "com.github.FrankHeijden.cloud:cloud-core:${rootProject.cloudVersion}" implementation "cloud.commandframework:cloud-core:${rootProject.cloudVersion}"
implementation "com.github.FrankHeijden.cloud:cloud-brigadier:${rootProject.cloudVersion}" implementation "cloud.commandframework:cloud-brigadier:${rootProject.cloudVersion}"
implementation 'com.github.FrankHeijden:MinecraftReflection:1.0.0' implementation 'com.github.FrankHeijden:MinecraftReflection:1.0.0'
implementation 'com.google.guava:guava:30.1.1-jre' implementation 'com.google.guava:guava:30.1.1-jre'
implementation 'com.google.code.gson:gson:2.8.6' implementation 'com.google.code.gson:gson:2.8.6'