forked from spolnik/JAlgoArena-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
58 lines (48 loc) · 1.41 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
buildscript {
ext {
kotlinVersion = '1.0.6'
springBootVersion = '1.4.2.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
}
}
apply plugin: 'kotlin'
apply plugin: 'org.springframework.boot'
apply from: "$rootDir/gradle/versioning.gradle"
repositories {
mavenCentral()
}
jar {
baseName = 'jalgoarena-api'
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion",
'org.springframework.boot:spring-boot-starter-web',
'org.springframework.boot:spring-boot-starter-actuator',
'org.springframework.cloud:spring-cloud-starter-zuul',
'org.springframework.cloud:spring-cloud-starter-eureka',
'io.springfox:springfox-swagger2:2.7.0',
'io.springfox:springfox-swagger-ui:2.7.0'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:Camden.SR3"
}
}
defaultTasks 'clean', 'bootRepackage'
task stage {
dependsOn 'bootRepackage'
}
task releaseZip(type: Zip, dependsOn: 'bootRepackage') {
from('build/libs/') {
include('*.jar')
}
from 'run.sh'
archiveName "JAlgoArena-API-${version}.zip"
destinationDir(file('build/libs'))
}