mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-10 15:20:25 +07:00
f361d48777
Added flatbuffers dependency Created test connection.fbs
29 lines
620 B
Groovy
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'
|
|
}
|