![]() When the server is started it executes forge tps before executing stop (automaticly done by the library). def mcVersion = '1.12' def forgeVersion = '14.' def modVersion = '1.0.0' then( () => nServer()) // Run the serverįor this to work, the minecraft/forge/mod versions must be defined in the adle file. Or alternatively: Tap the CTRL key twice, and type gradle setup in the Run command window that pops up. addCommand( 'forge tps') // Add command to run return tester.installForge() // Install Forge Open the Gradle sidebar on the right hand side of your screen, then open the forge project tree, select Tasks, then other and double-click the setup task (may also appear as MinecraftForge Setup. This file will not run correctly when put in. The source files jar, which you do not need to do anything with. The compiled jar file (your mod that you will distribute). setServerDirectory(serverDirectory) // Set the directory for the server You must build using gradlew build, Eclipse doesn't know about the reobfuscation task and as such, anything that Eclipse compiles (without using Gradle) will fail. useServerProperties() // Use ci-minecraft-forge-server-test's server.properties file setVersions(minecraftVersion, forgeVersion) // Set versions //.acceptEULA() // Accept Minecraft's EULA (commented out to prevent blindingly accepting by copy/paste) You can obtain one from Eclipse Adoptium. Using a 32-bit JVM will result in some problems when running the below gradle tasks. Minecraft and MinecraftForge both compile against Java 17 and as such should be used for development. ![]() Create instance of ci-minecraft-forge-server-test const tester = new CIMinecraftForgeServerTest() Obtain a Java 17 Development Kit (JDK) and a 64-bit Java Virtual Machine (JVM). Make sure to follow existing naming conventions. This would make it so we do not have to manually increment it everytime we commit. Change the group to your desired package name. I am working on a mod with some buddies of mine and I want to make it so whenever Jenkins builds our mod, it appends the build number to the version number (so '0.0.1' because '0.0.1.103'). Additionally, replace all occurrences of examplemod with the mod id as well. In this tutorial we will set up a versioning plugin for Gradle, that will be run with a. Tip: You can archive the log file as a post action. Customize your Gradle buildscript for your mod: Set archivesBaseName to the desired mod id. To run the code on a Jenkins CI server, simply add sh 'npm install' and sh 'npm start' as a step in your Jenkinsfile. This is only a library and will need to be executed by other code (See example code below), as different projects will have different requirements for the server testing. This handles installing Minecraft Forge, copy/download mods, starting the server, running commands and stopping the server again. Purpur is a fork of Pufferfish (and by extension, Paper) with the goal of providing new and interesting configuration options, which allow for creating a unique gameplay experience not seen. Tool for testing Minecraft Forge servers as part of testing on CI servers. To install the purpur-api and purpur dependencies to your local maven repo, run.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |