-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
50 lines (44 loc) · 1.03 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
plugins {
id 'java'
id 'com.diffplug.spotless' version '5.0.0'
}
repositories {
maven {
url = uri('https://plugins.gradle.org/m2/')
}
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1'
}
group = 'com'
version = '3.0'
description = 'This is a selection of competitive programming solutions and problems.'
sourceCompatibility = '17'
spotless {
java {
googleJavaFormat()
}
groovyGradle {
target fileTree('.') {
include '**/*.gradle'
exclude '**/build/**', '**/build-*/**'
}
greclipse()
indentWithSpaces(4)
trimTrailingWhitespace()
endWithNewline()
}
format 'misc', {
target fileTree('.') {
include '**/*.md', '**/.gitignore'
exclude '**/build/**', '**/build-*/**'
}
trimTrailingWhitespace()
indentWithSpaces(2)
endWithNewline()
}
}
compileJava.dependsOn spotlessApply
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}