-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (66 loc) · 2.06 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
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
plugins {
id 'java'
id 'maven-publish'
id("io.papermc.paperweight.userdev") version "1.5.10"
id("xyz.jpenilla.run-paper") version "2.2.2"
}
apply plugin: 'java'
apply plugin: 'maven-publish'
group = 'me.dueris'
version = '1.0'
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
repositories {
mavenCentral()
maven {
name = "papermc-repo"
url = "https://repo.papermc.io/repository/maven-public/"
}
maven {
name = "sonatype"
url = "https://s01.oss.sonatype.org/content/groups/public/"
}
maven {
url = uri("https://repo.spongepowered.org/maven/")
}
maven {
url = uri("https://files.minecraftforge.net/maven/")
}
maven {
url = uri("https://maven.fabricmc.net/")
}
}
dependencies {
paperweight.paperDevBundle("1.20.4-R0.1-SNAPSHOT", "io.github.dueris")
implementation("io.github.dueris:dev-bundle:1.20.4-R0.1-SNAPSHOT")
implementation("org.spongepowered:configurate-hocon:4.2.0-SNAPSHOT")
implementation("org.spongepowered:configurate-gson:4.2.0-SNAPSHOT")
implementation("net.fabricmc:access-widener:2.1.0")
implementation("net.fabricmc:sponge-mixin:0.12.4+mixin.0.8.5")
}
tasks {
assemble {
dependsOn(reobfJar)
}
compileJava {
// Set the release flag. This configures what version bytecode the compiler will emit, as well as what JDK APIs are usable.
// See https://openjdk.java.net/jeps/247 for more information.
options.release.set(17)
}
/*
reobfJar {
// This is an example of how you might change the output location for reobfJar. It's recommended not to do this
// for a variety of reasons, however it's asked frequently enough that an example of how to do it is included here.
outputJar.set(layout.buildDirectory.file("libs/PaperweightTestPlugin-${project.version}.jar"))
}
*/
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}