-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
72 lines (58 loc) · 1.52 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
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'java-library'
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.10.1'
}
group = "de.bwaldvogel"
version = '1.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
ext {
title = 'base91'
}
task sourceJar(type: Jar) {
archiveClassifier = "sources"
from sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = "javadoc"
from javadoc.destinationDir
}
repositories {
mavenCentral()
}
jacocoTestReport {
reports {
html.enabled = true
xml.enabled = true
csv.enabled = false
}
dependsOn test
}
wrapper {
gradleVersion = "6.7.1"
distributionType = Wrapper.DistributionType.ALL
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: 'latest.release'
testImplementation group: 'org.slf4j', name: 'slf4j-api', version: 'latest.release'
testImplementation group: 'org.assertj', name: 'assertj-core', version: 'latest.release'
testRuntimeOnly group: 'ch.qos.logback', name: 'logback-classic', version: 'latest.release'
components.all { ComponentMetadataDetails details ->
details.statusScheme = ['candidate', 'release']
if (details.id.version =~ /(?i).+([-.])(CANDIDATE|RC|BETA|ALPHA).*/) {
details.status = 'candidate'
} else {
details.status = 'release'
}
}
}
dependencyLocking {
lockAllConfigurations()
}