|
1 | 1 | import io.papermc.paperweight.util.constants.PAPERCLIP_CONFIG
|
2 | 2 |
|
3 | 3 | plugins {
|
4 |
| - java |
5 |
| - id("com.github.johnrengelman.shadow") version "7.1.1" |
6 |
| - id("io.papermc.paperweight.patcher") version "1.3.4" |
| 4 | + java |
| 5 | + id("com.github.johnrengelman.shadow") version "7.1.1" |
| 6 | + id("io.papermc.paperweight.patcher") version "1.3.4" |
7 | 7 | }
|
8 | 8 |
|
9 | 9 | repositories {
|
10 |
| - mavenCentral() |
11 |
| - maven("https://papermc.io/repo/repository/maven-public/") { |
12 |
| - content { onlyForConfigurations(PAPERCLIP_CONFIG) } |
13 |
| - } |
| 10 | + mavenCentral() |
| 11 | + maven("https://papermc.io/repo/repository/maven-public/") { |
| 12 | + content { onlyForConfigurations(PAPERCLIP_CONFIG) } |
| 13 | + } |
14 | 14 | }
|
15 | 15 |
|
16 | 16 | dependencies {
|
17 |
| - remapper("net.fabricmc:tiny-remapper:0.8.1") |
18 |
| - decompiler("net.minecraftforge:forgeflower:1.5.498.22") |
19 |
| - paperclip("io.papermc:paperclip:3.0.2") |
| 17 | + remapper("net.fabricmc:tiny-remapper:0.8.1") |
| 18 | + decompiler("net.minecraftforge:forgeflower:1.5.498.22") |
| 19 | + paperclip("io.papermc:paperclip:3.0.2") |
20 | 20 | }
|
21 | 21 |
|
22 | 22 | allprojects {
|
23 |
| - apply(plugin = "java") |
24 |
| - apply(plugin = "maven-publish") |
| 23 | + apply(plugin = "java") |
| 24 | + apply(plugin = "maven-publish") |
25 | 25 |
|
26 |
| - java { |
27 |
| - toolchain { |
28 |
| - languageVersion.set(JavaLanguageVersion.of(17)) |
29 |
| - } |
| 26 | + java { |
| 27 | + toolchain { |
| 28 | + languageVersion.set(JavaLanguageVersion.of(17)) |
30 | 29 | }
|
| 30 | + } |
31 | 31 | }
|
32 | 32 |
|
33 | 33 | subprojects {
|
34 |
| - tasks.withType<JavaCompile> { |
35 |
| - options.encoding = Charsets.UTF_8.name() |
36 |
| - options.release.set(17) |
37 |
| - } |
38 |
| - tasks.withType<Javadoc> { |
39 |
| - options.encoding = Charsets.UTF_8.name() |
40 |
| - } |
41 |
| - tasks.withType<ProcessResources> { |
42 |
| - filteringCharset = Charsets.UTF_8.name() |
43 |
| - } |
| 34 | + tasks.withType<JavaCompile> { |
| 35 | + options.encoding = Charsets.UTF_8.name() |
| 36 | + options.release.set(17) |
| 37 | + } |
| 38 | + tasks.withType<Javadoc> { |
| 39 | + options.encoding = Charsets.UTF_8.name() |
| 40 | + } |
| 41 | + tasks.withType<ProcessResources> { |
| 42 | + filteringCharset = Charsets.UTF_8.name() |
| 43 | + } |
44 | 44 |
|
45 |
| - repositories { |
46 |
| - mavenCentral() |
47 |
| - maven("https://papermc.io/repo/repository/maven-public/") |
48 |
| - } |
| 45 | + repositories { |
| 46 | + mavenCentral() |
| 47 | + maven("https://papermc.io/repo/repository/maven-public/") |
| 48 | + } |
49 | 49 | }
|
50 | 50 |
|
51 | 51 | paperweight {
|
52 |
| - serverProject.set(project(":PaperX-Server")) |
| 52 | + serverProject.set(project(":PaperX-Server")) |
53 | 53 |
|
54 |
| - remapRepo.set("https://maven.fabricmc.net/") |
55 |
| - decompileRepo.set("https://files.minecraftforge.net/maven/") |
| 54 | + remapRepo.set("https://maven.fabricmc.net/") |
| 55 | + decompileRepo.set("https://files.minecraftforge.net/maven/") |
56 | 56 |
|
57 |
| - usePaperUpstream(providers.gradleProperty("paperRef")) { |
58 |
| - withPaperPatcher { |
59 |
| - apiPatchDir.set(layout.projectDirectory.dir("patches/api")) |
60 |
| - apiOutputDir.set(layout.projectDirectory.dir("PaperX-API")) |
| 57 | + usePaperUpstream(providers.gradleProperty("paperRef")) { |
| 58 | + withPaperPatcher { |
| 59 | + apiPatchDir.set(layout.projectDirectory.dir("patches/api")) |
| 60 | + apiOutputDir.set(layout.projectDirectory.dir("PaperX-API")) |
61 | 61 |
|
62 |
| - serverPatchDir.set(layout.projectDirectory.dir("patches/server")) |
63 |
| - serverOutputDir.set(layout.projectDirectory.dir("PaperX-Server")) |
64 |
| - } |
| 62 | + serverPatchDir.set(layout.projectDirectory.dir("patches/server")) |
| 63 | + serverOutputDir.set(layout.projectDirectory.dir("PaperX-Server")) |
65 | 64 | }
|
| 65 | + } |
66 | 66 | }
|
0 commit comments