-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
86 lines (68 loc) · 1.94 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
/*
* This build file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* user guide available at https://docs.gradle.org/3.5/userguide/java_library_plugin.html
*/
// Apply the java-library plugin to add support for Java Library
plugins {
id "com.github.sherter.google-java-format" version "0.6"
}
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'checkstyle'
apply plugin: 'application'
// In this section you declare where to find the dependencies of your project
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
mavenCentral()
flatDir {
dirs 'libs'
}
}
javadoc {
source = sourceSets.main.allJava
classpath = configurations.compile
}
dependencies {
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:3.8.0'
compile 'com.sparkjava:spark-core:2.3'
compile 'com.google.code.gson:gson:2.7'
compile 'org.slf4j:slf4j-simple:1.7.21'
compile 'org.apache.commons:commons-lang3:3.5'
compile 'org.apache.commons:commons-io:1.3.2'
compile name: 'edu.mit.jwi_2.4.0'
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
checkstyle {
showViolations = true
toolVersion ="8.1"
}
test {
testLogging {
//showStandardStreams = true
}
}
task stage(dependsOn: ['assemble'])
// This task copies dependencies that are pulled down from Maven
// and copies into a directory specified in Procfile
task copyToLib(type: Copy) {
into "$buildDir/libs"
from(configurations.compile)
}
stage.dependsOn(copyToLib)
jar.enabled = false
check.dependsOn -= tasks['verifyGoogleJavaFormat']
check.dependsOn jacocoTestReport
task fixcs(dependsOn: [verifyGoogleJavaFormat])
mainClassName = "com.github.bot.curiosone.api.Main"