-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.gradle
63 lines (54 loc) · 1.37 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
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'org.sonarqube' version '2.7'
}
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'jacoco'
repositories {
mavenCentral()
}
dependencies {
compile('com.sun.mail:javax.mail:1.6.1')
testCompile('org.junit.jupiter:junit-jupiter:5.5.1')
testCompile('org.mockito:mockito-core:3.0.0')
testCompile('org.hamcrest:java-hamcrest:2.0.0.0')
testCompile('org.jmockit:jmockit:1.47')
}
group = 'com.marcnuri'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
sourceCompatibility = 1.8
mainClassName = 'com.marcnuri.mnimapsync.MNIMAPSync'
test {
testLogging {
exceptionFormat = 'full'
}
jvmArgs "-javaagent:${classpath.find { it.name.contains("jmockit") }.absolutePath}"
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
task fatJar(type: Jar, group: BasePlugin.BUILD_GROUP) {
manifest {
attributes (
'Main-Class': mainClassName,
'Class-Path': configurations.runtime.files.collect { "$it.name" }.join(' ')
)
}
archiveBaseName = project.name
archiveVersion = ''
archiveClassifier = 'all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}