forked from jalgoarena/JAlgoArena-Judge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
107 lines (88 loc) · 2.68 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
buildscript {
ext.kotlin_version = '1.0.6'
ext.spring_version = '1.5.1.RELEASE'
repositories {
jcenter()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:$spring_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id "jacoco"
}
apply plugin: 'kotlin'
apply plugin: 'org.springframework.boot'
apply from: "$rootDir/gradle/versioning.gradle"
group = 'jalgoarena'
description = """JAlgoArena Judge Service"""
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
configurations {
compile.exclude module: "spring-boot-starter-tomcat"
}
jar {
baseName = 'jalgoarena-judge'
}
dependencies {
compile 'com.google.guava:guava:18.0',
'com.fasterxml.jackson.core:jackson-databind',
'com.fasterxml.jackson.core:jackson-core',
'com.fasterxml.jackson.core:jackson-annotations',
"com.fasterxml.jackson.module:jackson-module-kotlin",
"org.springframework.boot:spring-boot-starter-web",
"org.springframework.boot:spring-boot-starter-undertow",
"org.springframework.boot:spring-boot-starter-actuator",
'org.springframework.cloud:spring-cloud-starter-eureka',
"org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version",
"org.jetbrains.kotlin:kotlin-reflect:$kotlin_version",
"org.jetbrains.kotlin:kotlin-compiler:$kotlin_version"
runtime "org.jetbrains.kotlin:kotlin-runtime:$kotlin_version"
testCompile 'junit:junit:4.12',
'pl.pragmatists:JUnitParams:1.0.5',
"org.springframework.boot:spring-boot-starter-test",
'com.squareup.okhttp3:okhttp:3.4.2'
}
apply plugin: 'jacoco'
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
check.dependsOn jacocoTestReport
defaultTasks 'clean', 'bootRepackage'
bootRun {
systemProperty 'sun.zip.disableMemoryMapping', 'true'
}
task stage {
dependsOn 'bootRepackage'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:Camden.SR3"
}
}
task releaseZip(type: Zip, dependsOn: 'bootRepackage') {
from('build/libs/') {
include('*.jar')
}
from 'run.sh'
from('lib/') {
include('*.jar')
into('lib')
}
from('build/classes/main/com/jalgoarena/type') {
into('build/classes/main/com/jalgoarena/type')
include('*.class')
}
from('build/resources/main') {
into('build/resources/main')
include('**/*.yml', '**/*.xml')
}
archiveName "JAlgoArena-Judge-${version}.zip"
destinationDir(file('build/libs'))
}