-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
85 lines (70 loc) · 1.69 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
plugins {
id 'application'
id 'java'
id 'idea'
id 'eclipse'
id 'jacoco'
}
group 'de.uni_passau.fim.se2'
version '1.0-SNAPSHOT'
sourceCompatibility = 17
targetCompatibility = 17
repositories {
mavenCentral()
}
dependencies {
implementation('commons-cli:commons-cli:1.5.0')
implementation('com.google.guava:guava:31.1-jre')
implementation('org.ow2.asm:asm:9.3')
implementation('org.ow2.asm:asm-analysis:9.3')
implementation('org.ow2.asm:asm-tree:9.3')
implementation('org.ow2.asm:asm-util:9.3')
testImplementation(platform('org.junit:junit-bom:5.7.2'))
testImplementation('org.junit.jupiter:junit-jupiter')
testImplementation('com.google.truth:truth:1.1.3')
testImplementation('org.mockito:mockito-core:4.6.1')
testImplementation('org.mockito:mockito-junit-jupiter:4.6.1')
testImplementation('org.hamcrest:hamcrest-library:2.2')
}
application {
mainClass = "de.uni_passau.fim.se2.StaticLineCounter"
}
test {
useJUnitPlatform()
finalizedBy(jacocoTestReport)
}
jacocoTestReport {
dependsOn(test)
enabled = true
reports {
csv.enabled true
html.enabled true
}
}
jacoco {
toolVersion = '0.8.8'
}
task runnableJar(type: Jar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes "Main-Class": "de.uni_passau.fim.se2.StaticLineCounter"
}
from {
configurations.runtimeClasspath.collect {
it.isDirectory() ? it : zipTree(it)
}
}
with jar
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
eclipse {
classpath {
downloadSources = true
downloadJavadoc = true
}
}