-
Notifications
You must be signed in to change notification settings - Fork 72
/
build.gradle
60 lines (52 loc) · 1.27 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
plugins {
id 'java'
id 'maven-publish'
id 'com.diffplug.spotless' version '6.25.0'
id 'org.sonarqube' version '5.1.0.4882'
id 'jacoco'
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:[5.11.3,)'
testImplementation 'org.hamcrest:hamcrest-core:[3.0,)'
testImplementation 'org.zapodot:embedded-db-junit-jupiter:[2.2.0,)'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:[1.11.3,)'
}
test {
useJUnitPlatform()
maxParallelForks = Runtime.runtime.availableProcessors()
}
group = 'com.github.javadev'
version = '1.39-SNAPSHOT'
description = 'leetcode-in-java'
java.sourceCompatibility = JavaVersion.VERSION_17
java {
withSourcesJar()
withJavadocJar()
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
spotless {
java {
encoding 'UTF-8'
target fileTree(projectDir) {
include '**/src/**/*.java'
exclude '**/build/**'
}
importOrder '\\#', '', '*'
removeUnusedImports()
googleJavaFormat('1.22.0').aosp()
toggleOffOn()
endWithNewline()
}
}
jacocoTestReport {
reports {
xml.required = true
html.required = false
}
}