This repository has been archived by the owner on Dec 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
63 lines (45 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
apply plugin: 'eclipse'
apply plugin: 'groovy'
apply plugin: 'spring-boot'
def __env = 'local'
if(System.getProperty('env')){
__env = System.getProperty('env')
}
def __set = 'default'
if(System.getProperty('set')){
__set = System.getProperty('set')
}
println "Building $name for enviroment $__env, using card set $__set"
buildscript {
repositories { mavenCentral() }
dependencies { classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.2.5.RELEASE' }
}
repositories { mavenCentral() }
dependencies {
compile 'org.springframework.boot:spring-boot-starter-web:1.2.5.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-websocket:1.2.5.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-actuator:1.2.5.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-logging:1.2.5.RELEASE'
compile 'org.springframework.data:spring-data-jpa:1.8.2.RELEASE'
compile 'org.springframework.data:spring-data-mongodb:1.7.2.RELEASE'
compile 'org.springframework:spring-messaging'
compile 'com.fasterxml.jackson.core:jackson-databind:2.5.4'
compile 'org.codehaus.groovy:groovy-all:2.4.1'
testCompile 'junit:junit:4.4'
}
sourceCompatibility = 1.7
version = '0.0.1'
jar {
manifest {
attributes 'Implementation-Title': 'Deck Builder', 'Implementation-Version': version
}
}
test { systemProperties 'property': 'value' }
bootRun { addResources = false }
sourceSets {
main {
resources {
srcDirs = ['src/main/resources', "src/env/resources/$__env", "src/cards/set/$__set", "src/web/resources"]
}
}
}