diff options
Diffstat (limited to 'core/build.gradle')
| -rw-r--r-- | core/build.gradle | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/core/build.gradle b/core/build.gradle new file mode 100644 index 0000000..0743329 --- /dev/null +++ b/core/build.gradle @@ -0,0 +1,44 @@ +plugins { + id 'org.javacc.javacc' version '4.0.3' +} + +[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' +eclipse.project.name = appName + '-core' + +// JavaCC/JJTree configuration +def jjtreeOutputDir = layout.buildDirectory.dir('generated/sources/jjtree') +def javaccOutputDir = layout.buildDirectory.dir('generated/sources/javacc') +def javaccPackageDir = layout.buildDirectory.dir('generated/sources/javacc/coffee/liz/lambda/parser') + +sourceSets { + main { + java { + srcDirs javaccOutputDir + } + } +} + +compileJjtree { + inputDirectory = file('src/main/java/coffee/liz/lambda/parser') + outputDirectory = jjtreeOutputDir.get().asFile +} + +compileJavacc { + outputDirectory = javaccPackageDir.get().asFile + dependsOn compileJjtree +} + +dependencies { + api "com.badlogicgames.gdx:gdx-freetype:$gdxVersion" + api "com.badlogicgames.gdx:gdx:$gdxVersion" + api "com.kotcrab.vis:vis-ui:$visUiVersion" + + // Log4j logging + implementation 'org.apache.logging.log4j:log4j-api:2.25.3' + implementation 'org.apache.logging.log4j:log4j-core:2.25.3' + implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.25.3' + + if(enableGraalNative == 'true') { + implementation "io.github.berstanio:gdx-svmhelper-annotations:$graalHelperVersion" + } +} |
