SpongePowered / VanillaGradle

A toolchain for Minecraft: Java Edition that builds a workspace to interact with the game using the official mappings provided to the public by Mojang Studios.
MIT License
89 stars 18 forks source link

Add syntax highlighting to readme #25

Closed HappyFacade closed 3 years ago

zml2008 commented 3 years ago

Thanks!

To answer the question I asked myself, here are some other options that could have been used. It seems that gradle as a format name does produce the best results though.

Groovy

plugins {
    java
    id("org.spongepowered.gradle.vanilla") version "0.1"
}

group = "org.example"
version = "1.0-SNAPSHOT"

repositories {
    mavenCentral()
}

minecraft {
    version("21w03a")
    runs {
        server()
        client()
    }
}

Kotlin

plugins {
    java
    id("org.spongepowered.gradle.vanilla") version "0.1"
}

group = "org.example"
version = "1.0-SNAPSHOT"

repositories {
    mavenCentral()
}

minecraft {
    version("21w03a")
    runs {
        server()
        client()
    }
}