This repository was archived by the owner on Jan 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (56 loc) · 1.52 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
buildscript {
repositories {
mavenLocal()
maven {
url "https://repo.grails.org/grails/core"
}
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
}
}
version "0.1"
group "tempvs"
apply plugin:"idea"
apply plugin:"org.grails.grails-web"
apply plugin:"org.grails.grails-gsp"
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
repositories {
mavenLocal()
maven {
url "https://repo.grails.org/grails/core"
}
}
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Edgware.SR5'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
compile "org.grails:grails-core"
compile "org.grails:grails-web-boot"
compile "org.grails:grails-plugin-rest"
compile "org.grails:grails-plugin-url-mappings"
compile "org.grails.plugins:gsp"
testCompile "org.grails:grails-test-mixins:3.3.0.RC1"
testCompile "org.grails:grails-web-testing-support"
}
bootRun {
jvmArgs('-Dspring.output.ansi.enabled=always')
addResources = true
String springProfilesActive = 'spring.profiles.active'
systemProperty springProfilesActive, System.getProperty(springProfilesActive)
}
task stage() {
dependsOn clean, assemble
}
assemble.mustRunAfter clean
tasks.stage.doLast() {
delete fileTree(dir: "build", exclude: "libs/*.jar")
}
jar {
baseName = 'tempvs'
version = '1.0.0'
}