Overgram/generator/build.gradle

24 lines
514 B
Groovy

plugins {
id 'java'
id 'application'
}
version '0.1'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
task('gen_tl', dependsOn: jar, type: JavaExec) {
main = "io.github.lonamiwebs.overgram.Overgram"
classpath = sourceSets.main.runtimeClasspath
// TODO Learn gradle and do this properly
setArgs([
'../lib/src/main/java/io/github/lonamiwebs/overgram/tl/',
'src/main/resources/mtproto_api.tl',
'src/main/resources/telegram_api.tl'
])
}