-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
84 lines (67 loc) · 2.32 KB
/
build.gradle
File metadata and controls
84 lines (67 loc) · 2.32 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.2.RELEASE")
}
}
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'application'
group = 'org.swordexplorer'
def springVersion = '4.2.0.RELEASE'
mainClassName="org.swordexplorer.Main"
String appName = "kjv-service"
String ver = '0.1.0'
version = ver
repositories {
mavenCentral()
jcenter()
mavenLocal()
}
task wrapper(type: Wrapper) {
gradleVersion = '3.5'
}
task deploy(type:Exec) {
workingDir './deployment'
executable 'sh'
args "./deploy.sh", appName, ver
}
deploy.dependsOn build
dependencies {
compile('org.codehaus.groovy:groovy-all:2.4.0')
compile 'io.github.javaconductor:gserv:1.0.0'
// Spring
compile "org.springframework:spring-context:${springVersion}"
compile "org.springframework:spring-beans:${springVersion}"
compile "org.springframework:spring-core:${springVersion}"
compile "org.springframework:spring-context:${springVersion}"
//Spring Boot
compile group: 'org.springframework.boot', name: 'spring-boot-starter', version: '1.5.4.RELEASE'
compile (group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '1.5.4.RELEASE'){
exclude module: "spring-boot-starter-tomcat"
}
compile group: 'org.springframework.boot', name: 'spring-boot-starter-jetty', version: '1.5.4.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: '1.5.4.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-mongodb', version: '1.5.4.RELEASE'
/// Mongo
// compile "org.springframework.data:spring-data-mongodb:1.5.2.RELEASE"
compile "org.mongodb:mongo-java-driver:2.12.2"
compile "org.mongodb:mongodb-driver:3.4.2"
testCompile "org.springframework:spring-test:${springVersion}"
testCompile 'org.spockframework:spock-core:0.7-groovy-2.0'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task groovydocJar(type: Jar, dependsOn: groovydoc) {
classifier = 'groovydoc'
from groovydoc.destinationDir
}
artifacts {
archives sourcesJar
archives groovydocJar
}