Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/minigdx/minigdx-gradle-plugin
https://github.com/minigdx/minigdx-gradle-plugin
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/minigdx/minigdx-gradle-plugin
- Owner: minigdx
- Created: 2021-03-10T23:11:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-03T17:45:23.000Z (over 2 years ago)
- Last Synced: 2023-03-10T04:47:36.034Z (almost 2 years ago)
- Language: Kotlin
- Size: 152 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MiniGDX gradle plugin
## Configure the gradle project
Add those following plugins to configure the gradle build:
```kotlin
plugins {
// Generate a JVM game
id("com.github.minigdx.jvm") version "LATEST-SNAPSHOT"
// Generate a JS game
id("com.github.minigdx.js") version "LATEST-SNAPSHOT"
// Configure the game
id("com.github.minigdx.common") version "LATEST-SNAPSHOT"
}
```Platform specific plugins are required for each platform.
If a platform is not required, the plugin can be omitted for this platform.This example will generate a game for the JVM platform and the Web platform.
The plugin for the JS game can be removed to generate the
game only for the JVM platform.## MiniGDX configuration
The plugin can be configured to set which miniGDX version is used
or which class to use as Main class for the JVM platform.```kotlin
minigdx {
// Configure the version of minigdx used.
version.set("x.x.x")
// Configure the main class used by the JVM version
// Required only if the JVM platform is configured
jvm.mainClass.set("your.game.Main")
}
```