https://github.com/mini2dx/gradle-mini2dx-mgcb
mini2Dx gradle plugin for generating a MonoGame Content Builder project
https://github.com/mini2dx/gradle-mini2dx-mgcb
Last synced: 2 months ago
JSON representation
mini2Dx gradle plugin for generating a MonoGame Content Builder project
- Host: GitHub
- URL: https://github.com/mini2dx/gradle-mini2dx-mgcb
- Owner: mini2Dx
- License: apache-2.0
- Created: 2019-07-10T14:19:19.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-05-08T15:45:51.000Z (about 4 years ago)
- Last Synced: 2025-12-26T23:59:18.985Z (6 months ago)
- Language: Groovy
- Size: 75.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
- License: LICENSE
Awesome Lists containing this project
README
# gradle-mini2Dx-mgcb
mini2Dx gradle plugin for generating a MonoGame Content Builder project
## Usage
Add the following to your build.gradle
```
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath "org.mini2Dx:gradle-mini2Dx-mgcb:1.2.0"
}
}
...
project(":your-project") {
apply plugin: "org.mini2Dx.mgcb"
mgcb {
assetsDirectory = file('../path/to/assets')
projectDirectory = file('../path/to/monogame/Content')
dlls = files('../path/to/monogame-pipeline-ext.dll')
excludes = ['**/.cache/*']
}
...
```
The full set of options for the extension are as follows:
```
mgcb {
//Your source assets directory
assetsDirectory = file('../path/to/assets')
//Your MonoGame Content project directory
projectDirectory = file('../path/to/monogame/Content')
//Any pipeline extension DLLs required (including mini2Dx)
dlls = files('../path/to/monogame-pipeline-ext.dll')
//The MonoGame platform
platform = "DesktopGL"
//True if assets should be compressed
compress = true
//Override default sounds directory search
//By default it searches for the following folders with the assets directory:
//sfx , sounds , sound , soundeffects , sound-effects
soundsDirectory = file('../path/to/assets/sound')
//Override default music directory search
//By default it searches for the following folders with the assets directory:
//music , tracks , soundtrack
musicDirectory = file('../path/to/assets/music')
//Best, Medium or Low based on MG spec
sfxQuality = "Best"
//Best, Medium or Low based on MG spec
musicQuality = "Best"
}
```
## License
The project is licensed under the Apache License 2.0 and can be found [here](https://github.com/mini2Dx/gradle-mini2Dx-mgcb/blob/master/LICENSE)