-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbuild.gradle
More file actions
49 lines (38 loc) · 1.11 KB
/
build.gradle
File metadata and controls
49 lines (38 loc) · 1.11 KB
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
plugins {
id 'java'
id 'fabric-loom' version "1.11-SNAPSHOT" apply false
}
def moudVersion = rootProject.file('VERSION').text.trim()
subprojects {
apply plugin: 'java'
apply plugin: 'checkstyle'
group = 'com.moud'
version = moudVersion
repositories {
mavenCentral()
// Repository for Minestom SNAPSHOTS
maven { url 'https://jitpack.io' }
}
checkstyle {
toolVersion = '11.0.1'
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.2'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.10.2'
}
tasks.named('check') {
dependsOn tasks.named('checkstyleMain')
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
}
}