riiablo/core/build.gradle

74 lines
2.5 KiB
Groovy
Raw Normal View History

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