riiablo/core/build.gradle
Collin Smith f361d48777 Added flatbuffers dependency
Added flatbuffers dependency
Created test connection.fbs
2019-04-10 05:08:54 -07:00

29 lines
620 B
Groovy

import io.netifi.flatbuffers.plugin.tasks.FlatBuffers
apply plugin: "java"
apply plugin: "idea"
apply plugin: "io.netifi.flatbuffers"
sourceCompatibility = 1.7
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
sourceSets.main.java.srcDirs = [ "src/" ]
sourceSets.test.java.srcDirs = [ "test/" ]
sourceSets.main.java.srcDir file('gen/')
idea {
module {
generatedSourceDirs += file('gen/')
}
}
eclipse.project {
name = appName + "-core"
}
task createFlatBuffers(type: FlatBuffers) {
inputDir = file("src/com/riiablo/net/packet")
outputDir = file("gen/")
language = 'java'
}