-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
128 lines (108 loc) · 3.14 KB
/
build.gradle
File metadata and controls
128 lines (108 loc) · 3.14 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
buildscript {
repositories {
mavenCentral()
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.3.RELEASE")
classpath("org.codehaus.groovy:groovy:2.4.6")
classpath("com.bertramlabs.plugins:asset-pipeline-gradle:2.7.4")
classpath("gradle.plugin.com.boxfuse.client:flyway-release:4.0")
}
}
plugins {
id 'com.craigburke.client-dependencies' version '1.0.0-RC2'
}
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'spring-boot'
apply plugin: 'asset-pipeline'
apply plugin: 'org.flywaydb.flyway'
apply plugin: 'war'
jar {
baseName = 'boot-demo'
version = '0.1.0'
}
repositories {
mavenCentral()
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
jcenter()
maven { url "http://repo.spring.io/libs-snapshot" }
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
configurations {
providedRuntime
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("mysql:mysql-connector-java")
compile("org.flywaydb:flyway-core:4.0")
//devtool
// compile("org.springframework.boot:spring-boot-devtools")
//compile("org.codehaus.groovy:groovy")
compile group: 'org.codehaus.groovy', name: 'groovy', version: '2.4.6'
testCompile("org.springframework.boot:spring-boot-starter-test")
compile("com.bertramlabs.plugins:asset-pipeline-spring-boot:2.7.4")
compile("javax.inject:javax.inject:1")
compile("org.springframework.boot:spring-boot-starter-security")
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-hibernate4', version: '2.7.4'
testCompile("junit:junit")
}
task wrapper(type: Wrapper) {
gradleVersion = '2.11'
}
clientDependencies {
bower {
'jquery'('2.2.x', from:'dist') {
include 'jquery.js'
include 'jquery.min.js'
}
'materialize'('0.97.x', from:'dist', into:'materialize'){
include "**"
}
}
npm {
'angular'('1.5.x', into: 'angular') {
include 'angular.js'
include 'angular.min.js'
}
'angular-resource'('1.5.x', into: 'angular') {
include 'angular-resource.js'
include 'angular-resource.min.js'
}
'angular-mocks'('1.5.x', into: 'angular') {
include 'angular-mocks.js'
include 'angular-mocks.min.js'
}
'angular-ui-router'('0.2.18', into: 'angular'){
include 'angular-ui-router.js'
include 'angular-ui-router.min.js'
}
'angular-animate'('1.5.x', into: 'angular') {
include 'angular-animate.js'
include 'angular-animate.min.js'
}
'angular-cookies'('1.5.x', into: 'angular') {
include 'angular-cookies.js'
include 'angular-cookies.min.js'
}
}
}
assets {
minifyJs = true
minifyCss = true
}
flyway {
driver = 'com.mysql.jdbc.Driver'
url = 'jdbc:mysql://localhost:3306/demo'
user = 'root'
password = 'root'
}