forked from jobrunr/jobrunr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
86 lines (72 loc) · 2.2 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
plugins {
id 'com.github.ben-manes.versions' version '0.39.0'
id 'org.sonarqube' version '3.3'
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
id 'signing'
}
nexusPublishing {
repositories {
sonatype()
}
}
subprojects {
group = 'org.jobrunr'
version = System.getenv('DRONE_TAG') ?: "v1.0.0-SNAPSHOT"
}
configure(subprojects.findAll {it.name != 'platform'}) {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'jacoco'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileTestJava {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
implementation platform(project(':platform'))
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.awaitility:awaitility'
testImplementation 'org.assertj:assertj-core'
testImplementation 'com.tngtech.archunit:archunit-junit5'
testImplementation 'net.javacrumbs.json-unit:json-unit-assertj'
testImplementation 'ch.qos.logback:logback-classic'
testImplementation 'org.mockito:mockito-core'
testImplementation 'org.mockito:mockito-junit-jupiter'
}
test {
finalizedBy jacocoTestReport
reports.junitXml.destination = file("/tmp/reports/$project.name")
reports.html.destination = file("/tmp/reports/$project.name")
useJUnitPlatform()
testLogging {
minGranularity = 3
events "passed", "skipped", "failed"
}
}
jacoco {
toolVersion = "0.8.7"
}
jacocoTestReport {
dependsOn test
reports {
xml.enabled true
}
}
sonarqube {
properties {
property "sonar.sourceEncoding", "UTF-8"
property "sonar.projectKey", "jobrunr_jobrunr"
property "sonar.organization", "jobrunr"
}
}
if (JavaVersion.current().isJava8Compatible()) {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}