-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (53 loc) · 1.18 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
/*
* This file was generated by the Gradle 'init' task.
*/
allprojects {
group = 'org.jtmc'
version = '0.1.0-SNAPSHOT'
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'jacoco'
apply plugin: 'checkstyle'
repositories {
jcenter()
mavenCentral()
}
sourceCompatibility = '1.8'
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/" + System.getenv("GITHUB_REPOSITORY"))
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_PKG_USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_PKG_TOKEN")
}
}
}
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
jacocoTestReport {
dependsOn test // tests are required to run before generating t
reports {
xml.enabled true
csv.enabled false
html.destination file("${buildDir}/jacocoHtml")
}
}
checkstyle {
toolVersion '8.39'
sourceSets = []
configFile = file("${rootDir}/config/checkstyle/checkstyle.xml")
ignoreFailures = false
maxWarnings = 0
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
}