-
Notifications
You must be signed in to change notification settings - Fork 38
/
build.gradle
103 lines (94 loc) · 3.14 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
final List PROFILES = ['development', 'production']
ext {
javaVersion = '1.6'
fileEncoding = 'UTF-8'
springVersion = '3.1.2.RELEASE'
hibernateEntityManagerVersion = '4.1.10.Final'
hibernateCommonsAnnotationsVersion = '3.2.0.Final'
hibernateModelgenVersion = '1.2.0.Final'
jpaVersion = '2.0.0'
springSecurityVersion = '3.1.0.RELEASE'
springSocialVersion = '1.0.1.RELEASE'
slf4jVersion = '1.6.4'
jettyVersion = '6.1.22'
}
buildDir = 'target'
if (!hasProperty('profile')) {
// -Pprofile=프로필
ext.profile = PROFILES[0]
}
if (!PROFILES.contains(profile)) {
throw RuntimeException('You need to specify profile property properly : -Pprofile=developemnt|production')
}
task hello {
description = 'check profile'
doLast {
println "Profile : $profile"
}
}
configurations {
compile
runtime
}
dependencies {
compile (
"commons-httpclient:commons-httpclient:3.1",
)
/*
compile (
"commons-httpclient:commons-httpclient:3.1",
"commons-io:commons-io:1.4",
"commons-lang:commons-lang:2.5",
"commons-dbcp:commons-dbcp:1.4",
"asm:asm:3.2",
"junit:junit-dep:4.10",
"org.hamcrest:hamcrest-all:1.1",
"org.springframework:spring-test:$springVersion",
"org.mockito:mockito-all:1.9.0"
)
compile("org.springframework:spring-context:$springVersion") {
exclude group: "commons-logging", module: "commons-logging" // use SLF4j
}
compile (
"org.springframework:spring-core:$springVersion",
"org.springframework:spring-beans:$springVersion",
"org.springframework:spring-aspects:$springVersion",
"org.springframework:spring-orm:$springVersion",
"org.springframework:spring-oxm:$springVersion",
"org.springframework:spring-tx:$springVersion",
"org.springframework:spring-webmvc:$springVersion",
"org.springframework:spring-beans:$springVersion"
)
compile (
"org.springframework.data:spring-data-jpa:1.1.0.RELEASE"
)
compile (
"org.springframework.social:spring-social-twitter:$springSocialVersion",
"org.springframework.social:spring-social-facebook:$springSocialVersion",
"org.springframework.social:spring-social-core:$springSocialVersion",
"org.springframework.social:spring-social-web:$springSocialVersion"
)
compile (
"org.hibernate:hibernate-entitymanager:$hibernateEntityManagerVersion",
"org.hibernate.java-persistence:jpa-api:2.0-cr-1"
)
compile("org.hibernate:hibernate-commons-annotations:$hibernateCommonsAnnotationsVersion") {
exclude group: "org.hibernate", module: "hibernate"
exclude group: "javax.persistence", module: "persistence-api"
}
compile (
"mysql:mysql-connector-java:5.1.12",
)
compile (
"com.google.code.gson:gson:1.4",
"org.aspectj:aspectjrt:1.6.8",
"org.xerial:sqlite-jdbc:3.7.2",
"org.slf4j:slf4j-api:$slf4jVersion",
"org.slf4j:slf4j-log4j12:$slf4jVersion",
"org.slf4j:jcl-over-slf4j:$slf4jVersion",
)
*/
}
repositories {
mavenCentral()
}