Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.spongepowered.gradle.vanilla.repository.mappings.TinyMappingsEntry
- plugins {
- `java-library`
- id("org.spongepowered.gradle.vanilla") version "0.2.1-SNAPSHOT"
- }
- minecraft {
- val intermediary by mappings.creating(TinyMappingsEntry::class) {
- format("tiny")
- dependency("net.fabricmc:intermediary:1.16.5:v2")
- from("official")
- to("intermediary")
- }
- minecraftMappings(intermediary)
- version("1.16.5")
- // or: injectedVersion("path to json file")
- // or: latestRelease()
- // or: latestSnapshot()
- platform(org.spongepowered.gradle.vanilla.repository.MinecraftPlatform.JOINED)
- runs {
- // VanillaGradle provides two presets, for a Minecraft client and server
- // These settings gather information based on the Mojang launcher manifest
- client()
- server()
- // A customized run configuration
- server("integrationTestServer") {
- mainClass("org.example.test.IntegrationTestMain")
- }
- }
- // optional
- // accessWideners("src/main/resources/myproject.accesswidener")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement