Advertisement
Earthcomputer

build.gradle.kts

Oct 3rd, 2021
1,318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 1.12 KB | None | 0 0
  1. import org.spongepowered.gradle.vanilla.repository.mappings.TinyMappingsEntry
  2.  
  3. plugins {
  4.     `java-library`
  5.     id("org.spongepowered.gradle.vanilla") version "0.2.1-SNAPSHOT"
  6. }
  7.  
  8. minecraft {
  9.     val intermediary by mappings.creating(TinyMappingsEntry::class) {
  10.         format("tiny")
  11.         dependency("net.fabricmc:intermediary:1.16.5:v2")
  12.         from("official")
  13.         to("intermediary")
  14.     }
  15.  
  16.     minecraftMappings(intermediary)
  17.  
  18.     version("1.16.5")
  19.     // or: injectedVersion("path to json file")
  20.     // or: latestRelease()
  21.     // or: latestSnapshot()
  22.  
  23.     platform(org.spongepowered.gradle.vanilla.repository.MinecraftPlatform.JOINED)
  24.  
  25.     runs {
  26.         // VanillaGradle provides two presets, for a Minecraft client and server
  27.         // These settings gather information based on the Mojang launcher manifest
  28.         client()
  29.         server()
  30.  
  31.         // A customized run configuration
  32.         server("integrationTestServer") {
  33.             mainClass("org.example.test.IntegrationTestMain")
  34.         }
  35.     }
  36.  
  37.      // optional
  38.     // accessWideners("src/main/resources/myproject.accesswidener")
  39. }
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement