-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathbuild.gradle
More file actions
65 lines (52 loc) · 1.52 KB
/
build.gradle
File metadata and controls
65 lines (52 loc) · 1.52 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
plugins {
id 'java-library'
id 'java'
id 'com.modrinth.minotaur' version "2.8.10"
}
group 'org.geysermc.extension.thirdpartycosmetics'
version '1.0.0'
repositories {
// mavenLocal()
mavenCentral()
maven {
url 'https://repo.opencollab.dev/main'
}
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.0'
compileOnly 'com.google.code.gson:gson:2.3.1'
compileOnly 'org.geysermc.geyser:api:2.4.1-SNAPSHOT'
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archiveFileName = "${project.name}.jar"
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
test {
useJUnitPlatform()
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.getByName("modrinth") {
dependsOn("modrinthSyncBody")
}
modrinth {
token = System.getenv("MODRINTH_TOKEN") ?: ""
debugMode = (System.getenv("MODRINTH_TOKEN") == null)
projectId = "thirdpartycosmetics"
def versionDisplay = "${project.version}-b${System.getenv("BUILD_NUMBER")}"
versionName = "ThirdPartyCosmetics ${versionDisplay}"
versionNumber = versionDisplay
versionType = "release"
changelog = System.getenv("CHANGELOG") ?: ""
gameVersions.addAll(["1.21.10"])
loaders.addAll(["geyser"])
failSilently = true
syncBodyFrom = file("README.md").text
uploadFile.set(tasks.getByPath("jar"))
}