riiablo/core/build.gradle

25 lines
564 B
Groovy
Raw Normal View History

import io.netifi.flatbuffers.plugin.tasks.FlatBuffers
2019-01-12 16:04:56 +07:00
apply plugin: "java"
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/" ]
sourceSets.test.java.srcDirs = [ "test/" ]
2019-01-12 16:04:56 +07:00
sourceSets.main.java.srcDir file('gen/')
idea {
module {
generatedSourceDirs += file('gen/')
}
}
2019-01-12 16:04:56 +07:00
task createFlatBuffers(type: FlatBuffers) {
inputDir = file("src/com/riiablo/net/")
outputDir = file("gen/")
language = 'java'
}