mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-10-31 08:32:18 +01:00
Add runServer, runWaterfall and runVelocity tasks
This commit is contained in:
parent
2081240e1c
commit
fa1b517d5e
@ -5,6 +5,9 @@ plugins {
|
|||||||
alias(libs.plugins.indra.licenser) apply false
|
alias(libs.plugins.indra.licenser) apply false
|
||||||
alias(libs.plugins.dependencydownload.plugin) apply false
|
alias(libs.plugins.dependencydownload.plugin) apply false
|
||||||
alias(libs.plugins.idea.ext) apply false
|
alias(libs.plugins.idea.ext) apply false
|
||||||
|
alias(libs.plugins.run.paper) apply false
|
||||||
|
alias(libs.plugins.run.waterfall) apply false
|
||||||
|
alias(libs.plugins.run.velocity) apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
version '3.0.0-SNAPSHOT'
|
version '3.0.0-SNAPSHOT'
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import org.apache.tools.ant.filters.ReplaceTokens
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||||||
|
|
||||||
|
apply plugin: 'xyz.jpenilla.run-paper'
|
||||||
apply from: rootProject.file('buildscript/loader.gradle')
|
apply from: rootProject.file('buildscript/loader.gradle')
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@ -21,4 +22,10 @@ shadowJar {
|
|||||||
archiveBaseName = 'DiscordSRV-Bukkit'
|
archiveBaseName = 'DiscordSRV-Bukkit'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
runServer {
|
||||||
|
minecraftVersion("1.21.1")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// buildscript/loader.gradle includes the jarinjar in the jar
|
// buildscript/loader.gradle includes the jarinjar in the jar
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import org.apache.tools.ant.filters.ReplaceTokens
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||||||
|
|
||||||
|
apply plugin: 'xyz.jpenilla.run-waterfall'
|
||||||
apply from: rootProject.file('buildscript/loader.gradle')
|
apply from: rootProject.file('buildscript/loader.gradle')
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@ -18,4 +19,10 @@ shadowJar {
|
|||||||
archiveBaseName = 'DiscordSRV-Bungee'
|
archiveBaseName = 'DiscordSRV-Bungee'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
runWaterfall {
|
||||||
|
waterfallVersion("1.20")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// buildscript/loader.gradle includes the jarinjar in the jar
|
// buildscript/loader.gradle includes the jarinjar in the jar
|
||||||
|
@ -17,6 +17,12 @@ dependencyResolutionManagement {
|
|||||||
plugin('indra-licenser', 'net.kyori.indra.licenser.spotless').version('2.2.0')
|
plugin('indra-licenser', 'net.kyori.indra.licenser.spotless').version('2.2.0')
|
||||||
plugin('idea-ext', 'org.jetbrains.gradle.plugin.idea-ext').version('1.1.7')
|
plugin('idea-ext', 'org.jetbrains.gradle.plugin.idea-ext').version('1.1.7')
|
||||||
|
|
||||||
|
// Run platforms
|
||||||
|
version('runtask', '2.3.1')
|
||||||
|
plugin('run-paper', 'xyz.jpenilla.run-paper').versionRef('runtask')
|
||||||
|
plugin('run-velocity', 'xyz.jpenilla.run-velocity').versionRef('runtask')
|
||||||
|
plugin('run-waterfall', 'xyz.jpenilla.run-waterfall').versionRef('runtask')
|
||||||
|
|
||||||
// Bukkit
|
// Bukkit
|
||||||
version('bukkit_minimum', '1.8.8-R0.1-SNAPSHOT')
|
version('bukkit_minimum', '1.8.8-R0.1-SNAPSHOT')
|
||||||
version('bukkit1_12', '1.12.2-R0.1-SNAPSHOT')
|
version('bukkit1_12', '1.12.2-R0.1-SNAPSHOT')
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
apply from: rootProject.file('buildscript/standalone.gradle')
|
apply from: rootProject.file('buildscript/standalone.gradle')
|
||||||
apply plugin: 'net.kyori.blossom'
|
apply plugin: 'net.kyori.blossom'
|
||||||
apply plugin: 'org.jetbrains.gradle.plugin.idea-ext'
|
apply plugin: 'org.jetbrains.gradle.plugin.idea-ext'
|
||||||
|
apply plugin: 'xyz.jpenilla.run-velocity'
|
||||||
|
|
||||||
java {
|
java {
|
||||||
disableAutoTargetJvm() // Requires Java 17, we target 8
|
disableAutoTargetJvm() // Requires Java 17, we target 8
|
||||||
@ -50,3 +51,9 @@ dependencies {
|
|||||||
// DependencyDownload
|
// DependencyDownload
|
||||||
implementation(libs.mcdependencydownload.velocity)
|
implementation(libs.mcdependencydownload.velocity)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
runVelocity {
|
||||||
|
velocityVersion("3.1.2-SNAPSHOT")
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user