2019-04-10 19:08:54 +07:00
|
|
|
import io.netifi.flatbuffers.plugin.tasks.FlatBuffers
|
|
|
|
|
2019-01-12 16:04:56 +07:00
|
|
|
apply plugin: "java"
|
2019-04-10 19:08:54 +07:00
|
|
|
apply plugin: "idea"
|
|
|
|
apply plugin: "io.netifi.flatbuffers"
|
2019-01-12 16:04:56 +07:00
|
|
|
|
|
|
|
sourceCompatibility = 1.7
|
|
|
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
|
|
|
|
|
|
|
sourceSets.main.java.srcDirs = [ "src/" ]
|
2019-01-26 08:01:35 +07:00
|
|
|
sourceSets.test.java.srcDirs = [ "test/" ]
|
2019-01-12 16:04:56 +07:00
|
|
|
|
2019-04-10 19:08:54 +07:00
|
|
|
sourceSets.main.java.srcDir file('gen/')
|
|
|
|
idea {
|
|
|
|
module {
|
|
|
|
generatedSourceDirs += file('gen/')
|
|
|
|
}
|
|
|
|
}
|
2019-01-12 16:04:56 +07:00
|
|
|
|
2019-04-10 19:08:54 +07:00
|
|
|
task createFlatBuffers(type: FlatBuffers) {
|
2019-04-13 05:33:02 +07:00
|
|
|
inputDir = file("src/com/riiablo/net/")
|
2019-04-10 19:08:54 +07:00
|
|
|
outputDir = file("gen/")
|
|
|
|
language = 'java'
|
|
|
|
}
|