-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
51 lines (42 loc) · 1.01 KB
/
build.gradle
File metadata and controls
51 lines (42 loc) · 1.01 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
group 'andySchwartz'
version '1.0'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.adarshr:gradle-test-logger-plugin:1.1.2"
}
}
apply plugin: 'application'
apply plugin: 'java'
apply plugin: "com.adarshr.test-logger"
mainClassName = "http.server.Main"
sourceCompatibility = 1.8
run {
if (project.hasProperty('args')) {
args project.args.split('\\s+')
}
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.1.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.1.0'
compile 'commons-io:commons-io:2.4'
compile 'commons-codec:commons-codec:1.6'
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes "Main-Class": "http.server.Main"
attributes "Class-Path": configurations.compile.collect { it.absolutePath }.join(" ")
}
}
task stage(dependsOn: ['build', 'clean'])
build.mustRunAfter clean