Overgram/generator/build.gradle

24 lines
514 B
Groovy
Raw Normal View History

2018-07-23 19:01:05 +00:00
plugins {
id 'java'
2018-07-23 19:26:02 +00:00
id 'application'
2018-07-23 19:01:05 +00:00
}
version '0.1'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
2018-07-23 19:26:02 +00:00
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'
])
}