aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorMarvin Borner2019-04-02 22:25:14 +0200
committerMarvin Borner2019-04-02 22:25:14 +0200
commit644fcfd8f97c90180485e686d0b593efb986541e (patch)
treed3c998686e7a595487ab2619652033c71e2711e7 /build.gradle
parent4aeb6a0ec4c2e51f9d618639f2b0edf6e63da73f (diff)
Tried implementing rocker templating engine
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle50
1 files changed, 50 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..7269324
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,50 @@
+plugins {
+ id 'org.jetbrains.kotlin.jvm' version '1.3.11'
+ id "com.fizzed.rocker" version "1.2.1"
+ id 'java'
+}
+
+group "space.anity"
+version "1.0-SNAPSHOT"
+
+repositories {
+ jcenter()
+ mavenCentral()
+}
+
+sourceSets {
+ main {
+ rocker {
+ srcDir('src/main/kotlin')
+ }
+ }
+}
+
+buildscript {
+ repositories {
+ mavenLocal()
+ jcenter()
+ maven {
+ url "https://plugins.gradle.org/m2/"
+ }
+ }
+
+ dependencies {
+ classpath "gradle.plugin.com.fizzed:rocker-gradle-plugin:1.2.1"
+ }
+}
+
+dependencies {
+ compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
+ compile "io.javalin:javalin:2.8.0"
+ compile "org.slf4j:slf4j-simple:1.7.26"
+ compile "com.fasterxml.jackson.core:jackson-databind:2.9.8"
+ compile "com.fizzed:rocker-compiler:0.14.0"
+}
+
+compileKotlin {
+ kotlinOptions.jvmTarget = "1.8"
+}
+compileTestKotlin {
+ kotlinOptions.jvmTarget = "1.8"
+}