Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xfl03/jmcccgradle
Launch Minecraft Client with JMCCC in Gradle PLugin.
https://github.com/xfl03/jmcccgradle
gradle kotlin minecraft
Last synced: 21 days ago
JSON representation
Launch Minecraft Client with JMCCC in Gradle PLugin.
- Host: GitHub
- URL: https://github.com/xfl03/jmcccgradle
- Owner: xfl03
- License: mit
- Created: 2023-02-03T08:35:25.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-23T05:05:59.000Z (over 1 year ago)
- Last Synced: 2023-08-28T08:22:11.716Z (over 1 year ago)
- Topics: gradle, kotlin, minecraft
- Language: Kotlin
- Homepage:
- Size: 91.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JMCCC Gradle 🐘
[![Pre Merge Checks](https://github.com/xfl03/JmcccGradle/workflows/Pre%20Merge%20Checks/badge.svg)](https://github.com/xfl03/JmcccGradle/actions?query=workflow%3A%22Pre+Merge+Checks%22) [![License](https://img.shields.io/github/license/xfl03/JmcccGradle.svg)](LICENSE) ![Language](https://img.shields.io/github/languages/top/xfl03/JmcccGradle?color=blue&logo=kotlin)
Launch Minecraft Client with JMCCC in Gradle PLugin.
## How To Use
Our plugin supports both Kotlin DSL and Groovy DSL, while the example code was written in Kotlin DSL.
```kotlin
jmccc {
runs {
// Add a new version to run
create("Forge 1.12.2") {
// The version which will be used
version {
// Minecraft version
minecraft.set("1.12.2")
// Forge version
forge.set("14.23.5.2860")
}
// Special the run dir
workingDirectory.set(project.file("run"))
// Copy mod file to mods dir automatically
modFiles.add(tasks["jar"])
// Special the Java version as Java 8
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
}
}
```## Publish Plugin Manually
This project is using Java 8 to compile.
```shell
export JAVA_HOME=(/usr/libexec/java_home -v 1.8)
export GRADLE_PUBLISH_KEY=
export GRADLE_PUBLISH_SECRET=
./gradlew preMerge --continue
./gradlew --project-dir plugin-build setupPluginUploadFromEnvironment publishPlugins
```