2020-11-17 14:14:33 +07:00
|
|
|
apply plugin: 'java-library'
|
|
|
|
apply plugin: 'artemis'
|
|
|
|
apply plugin: 'io.netifi.flatbuffers'
|
2019-04-10 19:08:54 +07:00
|
|
|
|
2020-11-17 14:14:33 +07:00
|
|
|
import io.netifi.flatbuffers.plugin.tasks.FlatBuffers
|
2019-01-12 16:04:56 +07:00
|
|
|
|
|
|
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
|
|
|
|
2020-11-16 14:49:18 +07:00
|
|
|
sourceSets.main.java.srcDirs += file('gen/')
|
2020-11-17 14:14:33 +07:00
|
|
|
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"
|
2019-04-10 19:08:54 +07:00
|
|
|
}
|
2019-01-12 16:04:56 +07:00
|
|
|
|
2019-04-10 19:08:54 +07:00
|
|
|
task createFlatBuffers(type: FlatBuffers) {
|
2020-11-17 14:14:33 +07:00
|
|
|
inputDir = file('src/main/java/com/riiablo/net/')
|
|
|
|
outputDir = file('gen/main/java/')
|
|
|
|
language = 'java'
|
2019-04-10 19:08:54 +07:00
|
|
|
}
|