-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
47 lines (37 loc) · 1015 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
apply plugin: 'java-library'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
classpath 'net.bitbadger.hypher.plugin.language:language-generator:1.0-SNAPSHOT'
}
}
dependencies {
testImplementation 'com.google.guava:guava:21.0'
testImplementation 'junit:junit:4.12'
testImplementation 'org.assertj:assertj-core:3.8.0'
testImplementation 'pl.pragmatists:JUnitParams:1.1.1'
compile 'com.google.code.gson:gson:2.8.2'
}
apply plugin: 'net.bitbadger.hypher.plugin.language.generator'
sourceSets {
main {
resources {
srcDirs = ['src/main/resources', 'src/generated/resources']
}
}
}
task generateLanguageFiles(type: net.bitbadger.hypher.plugin.language.GeneratorTask) {
inputDirectory "${projectDir}/src/main/languages"
outputDirectory "${projectDir}/src/generated/resources"
}
compileJava.dependsOn(generateLanguageFiles)