-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
66 lines (57 loc) · 1.76 KB
/
build.gradle
File metadata and controls
66 lines (57 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
plugins {
id 'java'
id "com.gradleup.shadow" version "9.4.0"
id 'org.jetbrains.kotlin.jvm' version "2.3.20"
id "xyz.jpenilla.run-paper" version "3.0.2"
}
def tagVersion = System.getenv('VERSION')
group = "de.raphaelgoetz"
version = tagVersion ?: '0.0.1-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
maven {
name = "papermc-repo"
url = "https://repo.papermc.io/repository/maven-public/"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/groups/public/"
}
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/raphael-goetz/astralis"
credentials {
username = project.findProperty("github_username") ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("github_token") ?: System.getenv("GITHUB_TOKEN")
}
}
}
dependencies {
api 'de.raphaelgoetz:astralis:0.0.20'
implementation 'org.jetbrains.exposed:exposed-core:0.61.0'
implementation 'org.jetbrains.exposed:exposed-jdbc:0.61.0'
implementation('org.xerial:sqlite-jdbc:3.51.3.0')
implementation 'org.apache.commons:commons-compress:1.28.0'
}
tasks.named("runServer") {
// Configure the Minecraft version for our task.
// This is the only required configuration besides applying the plugin.
// Your plugin's jar (or shadowJar if present) will be used automatically.
it.minecraftVersion("1.21.10")
}
def targetJavaVersion = 21
kotlin {
jvmToolchain(targetJavaVersion)
}
tasks.named("build") {
it.dependsOn("shadowJar")
}
tasks.named("processResources") {
def props = [version: version]
inputs.properties(props)
filteringCharset = "UTF-8"
filesMatching("paper-plugin.yml") {
expand(props)
}
}