-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
65 lines (50 loc) · 1.35 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.12.2'
}
group 'net.simplyvanilla'
version '0.8.4'
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
maven {
url 'https://repo.papermc.io/repository/maven-public/'
}
}
dependencies {
compileOnly 'io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT'
compileOnly 'io.github.miniplaceholders:miniplaceholders-api:2.2.3'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.2'
testImplementation 'com.github.seeseemelk:MockBukkit-v1.20:3.84.0'
testImplementation 'org.awaitility:awaitility:4.2.1'
testRuntimeOnly 'mysql:mysql-connector-java:8.0.33'
}
test {
useJUnitPlatform()
}
jacoco {
toolVersion = '0.8.11' // specify the desired version
}
jacocoTestReport {
reports {
xml.required = true
}
}
coveralls {
jacocoReportPath 'build/reports/jacoco/test/jacocoTestReport.xml'
}
processResources {
duplicatesStrategy = 'include'
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}