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-19 01:51:13 +07:00
|
|
|
sourceSets.main.resources.srcDirs += rootProject.file('assets')
|
|
|
|
idea.module.resourceDirs += rootProject.file('assets')
|
|
|
|
|
2020-11-30 08:52:36 +07:00
|
|
|
project.ext.generatedSourceDirs = file('gen/main/java/');
|
|
|
|
sourceSets.main.java.srcDirs += generatedSourceDirs
|
|
|
|
idea.module.generatedSourceDirs += generatedSourceDirs
|
2020-11-17 14:14:33 +07:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
api "com.badlogicgames.gdx:gdx:$gdxVersion"
|
|
|
|
api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
|
2020-11-21 06:44:52 +07:00
|
|
|
api "com.badlogicgames.gdx:gdx-ai:$gdxAiVersion"
|
2020-11-17 14:14:33 +07:00
|
|
|
api "com.badlogicgames.gdx:gdx-controllers:$gdxVersion"
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
api "com.google.guava:guava:20.0"
|
2020-11-22 08:16:06 +07:00
|
|
|
api "com.android.support:support-annotations:28.0.0"
|
2020-11-17 14:14:33 +07:00
|
|
|
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"
|
2020-11-21 06:44:52 +07:00
|
|
|
api "com.badlogicgames.box2dlights:box2dlights:$box2DLightsVersion"
|
2020-11-17 14:14:33 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
api "org.reflections:reflections:0.9.12"
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// components to expose
|
2020-11-21 06:44:52 +07:00
|
|
|
api "net.onedaybeard.artemis:artemis-odb:$artemisOdbVersion"
|
2020-11-17 14:14:33 +07:00
|
|
|
api "net.mostlyoriginal.artemis-odb:contrib-core:$artemisContribVersion"
|
|
|
|
//api "net.mostlyoriginal.artemis-odb:contrib-jam:$artemisContribVersion"
|
|
|
|
|
|
|
|
// Artemis-odb
|
2020-11-21 06:44:52 +07:00
|
|
|
api "net.onedaybeard.artemis:artemis-odb:$artemisOdbVersion"
|
|
|
|
// api "net.onedaybeard.artemis:artemis-odb-serializer-json-libgdx:$artemisOdbVersion"
|
2020-11-17 14:14:33 +07:00
|
|
|
|
|
|
|
// 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
|
|
|
|
2020-11-21 06:44:52 +07:00
|
|
|
// TODO: configure atemis weave and debug unknown primitive type [B error
|
|
|
|
// weave {
|
|
|
|
// classesDir = sourceSets.main.java.outputDir
|
|
|
|
// enableArtemisPlugin = true
|
|
|
|
// enablePooledWeaving = true
|
|
|
|
// generateLinkMutators = true
|
|
|
|
// optimizeEntitySystems = true
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// classes.finalizedBy weave
|
|
|
|
|
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
|
|
|
}
|