mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-28 23:10:32 +00:00
Added Studio hotload command
- /iris studio hotload and its refresh alias reload the open Studio pack on Bukkit - Bukkit hotload refuses while Studio entry, pause or close is pending - Modded servers register the same hotload and refresh commands - Modded hotload reports busy while that Studio is already hotloading - Hotload messages and help entries are localized in every language file - Bukkit artifact verification reads the jar task output - Multiplexor takes the Bukkit artifact from the packedJar task - BukkitTestServer shares one-time registry setup across tests - Tests and a gameplay scenario cover both hotload commands
This commit is contained in:
1 parent
300ecbfc8b
commit
b3579e623a
37 files changed
+902
-52
No files matched your search
+5
-5
@@ -89,7 +89,6 @@ Closure<String> irisArtifactName = { String platform, String targetVersion ->
|
||||
String bukkitArtifactName = irisArtifactName('CraftBukkit', bukkitMinecraftRange)
|
||||
Map<String, String> runtimeDownloadRelocations = (Map<String, String>) ext.runtimeDownloadRelocations
|
||||
List<String> runtimeDownloadedPrefixes = (List<String>) ext.runtimeDownloadedPrefixes
|
||||
File bukkitArtifact = layout.buildDirectory.file("libs/${bukkitArtifactName}").get().asFile
|
||||
apply plugin: ApiGenerator
|
||||
|
||||
List<String> nmsBindings = ['v26_2_R1', 'v26_3_R1']
|
||||
@@ -542,19 +541,20 @@ List<String> requiredBukkitArtifactEntries = [
|
||||
tasks.register('verifyBukkitArtifact') {
|
||||
group = 'verification'
|
||||
dependsOn('jar')
|
||||
File artifact = bukkitArtifact
|
||||
Provider<RegularFile> artifact = tasks.named('jar', Jar).flatMap { Jar task -> task.archiveFile }
|
||||
inputs.file(artifact)
|
||||
inputs.files(nativeRuntime)
|
||||
inputs.files(commandHandlerSources)
|
||||
inputs.files(mantleComponentSources)
|
||||
doLast {
|
||||
File archive = artifact.get().asFile
|
||||
BukkitArtifactVerifier.verify(
|
||||
artifact,
|
||||
archive,
|
||||
requiredBukkitArtifactEntries,
|
||||
16,
|
||||
runtimeDownloadedPrefixes)
|
||||
NativeRuntimeArtifacts.verify(artifact, nativeRuntimeModules, embeddedNatives())
|
||||
logger.lifecycle("Verified ${artifact.name} packaging and class reference graph")
|
||||
NativeRuntimeArtifacts.verify(archive, nativeRuntimeModules, embeddedNatives())
|
||||
logger.lifecycle("Verified ${archive.name} packaging and class reference graph")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user