generated from Lenni0451/GradleTemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
48 lines (40 loc) · 1.2 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
plugins {
id "java"
id "checkstyle"
}
base {
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
compileJava.options.encoding = compileTestJava.options.encoding = javadoc.options.encoding = "UTF-8"
archivesName = project.maven_name ?: rootProject.maven_name
group = project.maven_group ?: rootProject.maven_group
version = project.maven_version ?: rootProject.maven_version
}
repositories {
mavenCentral()
maven {
name = "viaversion"
url = "https://repo.viaversion.com/everything"
}
}
dependencies {
compileOnly "com.google.code.findbugs:jsr305:3.0.2"
compileOnly "org.jetbrains:annotations:26.0.1"
compileOnly(annotationProcessor("org.projectlombok:lombok:1.18.36"))
compileOnly "net.raphimc:ViaProxy:3.3.8-SNAPSHOT"
}
processResources {
//Config file: "version: ${version}"
inputs.properties(
"version": project.maven_version
)
filesMatching("viaproxy.yml") {
expand(
"version": project.maven_version
)
}
}
checkstyle {
toolVersion = "10.16.0" //Latest version for Java 8: 9.3
configFile = rootProject.file("config/checkstyle/checkstyle.xml")
}
build.dependsOn(check)