-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbuild.gradle
141 lines (112 loc) · 3.42 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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
buildscript {
repositories {
mavenCentral()
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.2.RELEASE")
classpath("org.codehaus.groovy:groovy:2.4.7")
classpath("com.bertramlabs.plugins:asset-pipeline-gradle:2.12.1")
classpath("gradle.plugin.com.boxfuse.client:flyway-release:4.0.3")
}
}
plugins {
id 'com.craigburke.client-dependencies' version '1.3.1'
}
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'asset-pipeline'
apply plugin: 'org.flywaydb.flyway'
apply plugin: 'war'
war {
baseName = 'boot-demo'
version = '0.1.0'
}
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("org.springframework.boot:spring-boot-starter-security")
compile("mysql:mysql-connector-java")
compile("org.flywaydb:flyway-core:4.0.3")
//compile("org.codehaus.groovy:groovy")
compile group: 'org.codehaus.groovy', name: 'groovy', version: '2.4.7'
compile("com.bertramlabs.plugins:asset-pipeline-spring-boot:2.12.1")
//compile("javax.inject:javax.inject:1")
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-hibernate4', version: '2.8.5'
assets 'com.craigburke.angular:angular-annotate-asset-pipeline:2.4.1'
testCompile("junit:junit")
testCompile("org.springframework.boot:spring-boot-starter-test")
}
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
enableSourceMaps = true
configOptions = [:]
minifyOptions = [
languageMode: 'ES5',
targetLanguage: 'ES5', //Can go from ES6 to ES5 for those bleeding edgers
optimizationLevel: 'SIMPLE',
angularPass: true // Can use @ngInject annotation for Angular Apps
]
//includes = []
excludes = ['**/*.less'] //Example Exclude GLOB pattern
//for plugin packaging
packagePlugin=false //set to true if this is a library
//developmentRuntime can be turned off
//developmentRuntime=true
}
flyway {
driver = 'com.mysql.jdbc.Driver'
url = 'jdbc:mysql://localhost:3306/demo'
user = 'root'
password = 'root'
}