-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathbuild.gradle
More file actions
80 lines (67 loc) · 1.76 KB
/
build.gradle
File metadata and controls
80 lines (67 loc) · 1.76 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
plugins {
id 'java-library'
id 'java'
id 'com.modrinth.minotaur' version "2.8.10"
}
group 'org.geysermc.extension.connect'
version '1.0.0'
repositories {
// mavenLocal()
mavenCentral()
maven {
url 'https://repo.opencollab.dev/main'
}
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
mavenContent {
snapshotsOnly()
}
}
maven {
url 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
}
maven {
url 'https://jitpack.io'
}
}
dependencies {
compileOnly(libs.bundles.geyser) {
exclude group: 'io.netty'
exclude group: 'io.netty.incubator'
}
compileOnly libs.yamlConfigurate
implementation libs.sqlite
implementation libs.mysql
}
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 = "geyserconnect"
def versionDisplay = "${project.version}-b${System.getenv("BUILD_NUMBER")}"
versionName = "GeyserConnect ${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"))
}