riiablo/core/build.gradle

25 lines
564 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/')
}
}
task createFlatBuffers(type: FlatBuffers) {
inputDir = file("src/com/riiablo/net/")
outputDir = file("gen/")
language = 'java'
}