apply plugin: 'java-library' apply plugin: 'artemis' apply plugin: 'io.netifi.flatbuffers' import io.netifi.flatbuffers.plugin.tasks.FlatBuffers [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' sourceSets.main.java.srcDirs += file('gen/') idea.module.generatedSourceDirs += file('gen/') dependencies { api "com.badlogicgames.gdx:gdx:$gdxVersion" api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion" api "com.badlogicgames.gdx:gdx-ai:1.8.2" api "com.badlogicgames.gdx:gdx-controllers:$gdxVersion" } dependencies { api "com.google.guava:guava:20.0" api "com.android.support:support-annotations:27.1.1" api "commons-io:commons-io:2.5" api "org.apache.commons:commons-lang3:3.6" api "org.apache.commons:commons-collections4:4.1" api "org.apache.commons:commons-math3:3.6.1" api "org.apache.commons:commons-text:1.8" api "com.jcraft:jzlib:1.1.3" api "com.google.flatbuffers:flatbuffers-java:1.11.0" } dependencies { api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion" api "com.badlogicgames.box2dlights:box2dlights:1.4" } dependencies { api "org.reflections:reflections:0.9.12" } dependencies { // components to expose api "net.onedaybeard.artemis:artemis-odb:$artemisVersion" api "net.mostlyoriginal.artemis-odb:contrib-core:$artemisContribVersion" //api "net.mostlyoriginal.artemis-odb:contrib-jam:$artemisContribVersion" // Artemis-odb api "net.onedaybeard.artemis:artemis-odb:$artemisVersion" api "net.onedaybeard.artemis:artemis-odb-serializer-json-libgdx:$artemisVersion" // Artemis-odb bonus functionality (systems, events, components). api "net.mostlyoriginal.artemis-odb:contrib-core:$artemisContribVersion" //api "net.mostlyoriginal.artemis-odb:contrib-jam:$artemisContribVersion" api "net.mostlyoriginal.artemis-odb:contrib-eventbus:$artemisContribVersion" //api "net.mostlyoriginal.artemis-odb:contrib-plugin-operations:$artemisContribVersion" //api "net.mostlyoriginal.artemis-odb:contrib-plugin-profiler:$artemisContribVersion" //api "net.mostlyoriginal.artemis-odb:contrib-plugin-singleton:$artemisContribVersion" } dependencies { api "io.netty:netty-all:$nettyVersion" } dependencies { testImplementation "junit:junit:4.12" testImplementation "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion" testImplementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop" } task createFlatBuffers(type: FlatBuffers) { inputDir = file('src/main/java/com/riiablo/net/') outputDir = file('gen/main/java/') language = 'java' }