Improved organization of :core build.gradle

This commit is contained in:
Collin Smith 2020-12-02 00:29:08 -08:00
parent cb4c7596bf
commit 42f077d680

View File

@ -16,6 +16,7 @@ idea.module.generatedSourceDirs += generatedSourceDirs
project.ext.flatbuffersSourceDirs = file('src/main/flatbuffers/')
// LibGDX
dependencies {
api "com.badlogicgames.gdx:gdx:$gdxVersion"
api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
@ -23,6 +24,7 @@ dependencies {
api "com.badlogicgames.gdx:gdx-controllers:$gdxVersion"
}
// Libraries
dependencies {
api "com.google.guava:guava:20.0"
api "com.android.support:support-annotations:28.0.0"
@ -32,18 +34,28 @@ dependencies {
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:$flatbuffersVersion"
}
// Networking
dependencies {
api "com.google.flatbuffers:flatbuffers-java:$flatbuffersVersion"
api "io.netty:netty-all:$nettyVersion"
}
// Box2D (to be deprecated)
dependencies {
api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
api "com.badlogicgames.box2dlights:box2dlights:$box2DLightsVersion"
}
// Logging
// Some utilities do not work on Android
// Intended for use in :desktop to get package tree at runtime for debugging
dependencies {
api "org.reflections:reflections:0.9.12"
}
// Artemis ODB
dependencies {
// components to expose
api "net.onedaybeard.artemis:artemis-odb:$artemisOdbVersion"
@ -63,10 +75,6 @@ dependencies {
//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"