-
Notifications
You must be signed in to change notification settings - Fork 112
Weaving Gradle
Adrian Papari edited this page Oct 3, 2015
·
33 revisions
1.7.1+
Weaving and factories might not work with older versions of Gradle! Use a recent version
Gradle is a bit more involved. It operates in place on .class files, you will have to hook the weave
task somewhere in your build process. See next chapter for a concrete example.
- Add plugin dependency to your build script
classpath "net.onedaybeard.artemis:artemis-odb-gradle-plugin:1.0.1"
. - Add repository
jcenter()
, which contains dependencies for the artemis gradle plugin. - Apply the plugin
apply plugin: "artemis"
- Specify classes folder with
Weave.classesDir
- Use
weave.dependsOn
to have it run somewhere after building. - (Optional) make your final build step depend on weave (lastTask.dependsOn weave).
weave {
classesDir = sourceSets.main.output.classesDir
dependsOn build
enableArtemisPlugin = true
enablePooledWeaving = true
ideFriendlyPacking = true
optimizeEntitySystems = true
}
See https://github.com/DaanVanYperen/libgdx-artemis-quickstart for an up to date example.
- Overview
- Concepts
- Getting Started
- Using
- More guides
- Plugins
- Game Gallery
- Tools and Frameworks
- API reference