azkaban-memoizeit
Changes
build.gradle 47(+45 -2)
Details
build.gradle 47(+45 -2)
diff --git a/build.gradle b/build.gradle
index 7ec0e88..e0a7861 100644
--- a/build.gradle
+++ b/build.gradle
@@ -55,7 +55,8 @@ dependencies {
[group: 'org.apache.velocity', name:'velocity-tools', version: '2.0']
)
- test (
+ testCompile (
+ [group: 'junit', name:'junit', version: '4.11']
)
}
@@ -75,7 +76,9 @@ sourceSets {
srcDir 'src/java'
}
resources {
- srcDir 'src/resources'
+ srcDir 'src/java'
+ include '**/*.properties'
+ include '**/*.vm'
}
}
test {
@@ -84,3 +87,43 @@ sourceSets {
}
}
}
+
+task compileLess(type:Exec) {
+ workingDir 'src/less'
+ commandLine 'make', '-e'
+ environment (
+ OBJ_DIR : file(new File(buildDir,'/less'))
+ )
+}
+
+task compileDust(type:Exec) {
+ workingDir 'src/tl'
+ commandLine 'make', '-e'
+ environment (
+ OBJ_DIR : file(new File(buildDir,'/dust'))
+ )
+}
+
+task web << {
+ println 'Compiling Less'
+ tasks.compileLess.execute()
+
+ println 'compiling Dust'
+ tasks.compileDust.execute()
+
+ println 'Copying web files'
+ copy {
+ from('src/web')
+ into('build/web')
+ }
+
+ copy {
+ from('build/dust')
+ into('build/web/js')
+ }
+ copy {
+ from('build/less')
+ into('build/web/css')
+ }
+}
+