-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
61 lines (53 loc) · 1.56 KB
/
build.gradle.kts
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
/* Copyright 2022 Ampflower
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
plugins {
java
application
alias(libs.plugins.shadow)
alias(libs.plugins.spotless)
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
application {
mainClass.set("gay.ampflower.maven.Maven")
}
repositories {
mavenCentral()
maven("Mojang") {
url = uri("https://libraries.minecraft.net")
content {
includeGroup("com.mojang")
}
}
}
dependencies {
implementation(libs.bouncyCastle)
implementation(libs.brigadier)
implementation(libs.bundles.jetty)
implementation(libs.bundles.logger)
testImplementation(libs.junit.jupiter.api)
testRuntimeOnly(libs.junit.jupiter.engine)
}
spotless {
java {
importOrderFile(projectDir.resolve(".internal/spotless.importorder"))
eclipse().configFile(projectDir.resolve(".internal/spotless-java.xml"))
licenseHeaderFile(projectDir.resolve(".internal/license-header.java"))
}
kotlinGradle {
// This would go ahead and do formatting as well,
// but there is no formatter that would allow a sane format similar to Java-style.
target("*.gradle.kts")
licenseHeaderFile(projectDir.resolve(".internal/license-header.java"), "(import|plugins|rootProject)")
}
}
tasks {
test {
useJUnitPlatform()
}
}