-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
48 lines (41 loc) · 1.26 KB
/
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
48
buildscript {
repositories {
maven { url "http://oss.jfrog.org/repo" }
mavenCentral()
}
dependencies {
classpath 'io.ratpack:ratpack-gradle:0.9.0'
}
}
repositories {
maven { url "http://oss.jfrog.org/repo" }
mavenCentral()
maven { url "http://repo.springsource.org/repo" } // for springloaded
}
// The “ratpack” plugin applies the “application” plugin, making it easy to create a standalone application.
// See: http://gradle.org/docs/current/userguide/application_plugin.html
apply plugin: "ratpack-groovy"
applicationName = "iui-seed"
// The “ratpack” plugin is IDEA aware.
// It will create a run configuration in IDEA to launch your app in your IDE, with hot reloading.
apply plugin: "idea"
idea {
project {
jdkName "1.7"
languageLevel "1.7"
}
}
dependencies {
// SpringLoaded enables runtime hot reloading.
// It is not part of the app runtime and is not shipped in the distribution.
springloaded "org.springsource.springloaded:springloaded-core:1.1.4"
}
run {
workingDir = project.file(".")
jvmArgs "-Dratpack.port=8080"
systemProperty "ratpack.reloadable", "true"
}
applicationDistribution.from(run.workingDir) {
into("app")
include 'public/**', 'templates/**', 'ratpack.groovy'
}