|
1 | 1 | @file:Suppress("UnstableApiUsage", "PropertyName") |
2 | 2 |
|
3 | | -import cc.polyfrost.gradle.util.noServerRunConfigs |
| 3 | +import org.polyfrost.gradle.util.noServerRunConfigs |
4 | 4 | import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar |
5 | 5 |
|
6 | 6 | // Adds support for kotlin, and adds the Polyfrost Gradle Toolkit |
7 | 7 | // which we use to prepare the environment. |
8 | 8 | plugins { |
9 | 9 | kotlin("jvm") |
10 | | - id("cc.polyfrost.multi-version") |
11 | | - id("cc.polyfrost.defaults.repo") |
12 | | - id("cc.polyfrost.defaults.java") |
13 | | - id("cc.polyfrost.defaults.loom") |
| 10 | + id("org.polyfrost.multi-version") |
| 11 | + id("org.polyfrost.defaults.repo") |
| 12 | + id("org.polyfrost.defaults.java") |
| 13 | + id("org.polyfrost.defaults.loom") |
14 | 14 | id("com.github.johnrengelman.shadow") |
15 | | - id("net.kyori.blossom") version "1.3.0" |
| 15 | + id("net.kyori.blossom") version "1.3.1" |
16 | 16 | id("signing") |
17 | 17 | java |
18 | 18 | } |
@@ -38,7 +38,7 @@ blossom { |
38 | 38 | version = mod_version |
39 | 39 | // Sets the group, make sure to change this to your own. It can be a website you own backwards or your GitHub username. |
40 | 40 | // e.g. com.github.<your username> or com.<your domain> |
41 | | -group = "cc.polyfrost" |
| 41 | +group = "org.polyfrost" |
42 | 42 |
|
43 | 43 | // Sets the name of the output jar (the one you put in your mods folder and send to other people) |
44 | 44 | // It outputs all versions of the mod into the `build` directory. |
@@ -52,16 +52,13 @@ loom { |
52 | 52 | // If you're developing a server-side mod, you can remove this line. |
53 | 53 | noServerRunConfigs() |
54 | 54 |
|
55 | | - // Adds the tweak class if we are building legacy version of forge as per the documentation (https://docs.polyfrost.cc) |
| 55 | + // Adds the tweak class if we are building legacy version of forge as per the documentation (https://docs.polyfrost.org) |
56 | 56 | if (project.platform.isLegacyForge) { |
57 | | - launchConfigs.named("client") { |
58 | | - arg("--tweakClass", "cc.polyfrost.oneconfig.loader.stage0.LaunchWrapperTweaker") |
59 | | - |
60 | | - // This is enabled so OneConfig can read our Mixins and automatically apply them. |
61 | | - property( |
62 | | - "mixin.debug.export", |
63 | | - "true" |
64 | | - ) |
| 57 | + runConfigs { |
| 58 | + "client" { |
| 59 | + programArgs("--tweakClass", "cc.polyfrost.oneconfig.loader.stage0.LaunchWrapperTweaker") |
| 60 | + property("mixin.debug.export", "true") |
| 61 | + } |
65 | 62 | } |
66 | 63 | } |
67 | 64 | // Configures the mixins if we are building for forge, useful for when we are dealing with cross-platform projects. |
@@ -88,13 +85,15 @@ sourceSets { |
88 | 85 |
|
89 | 86 | // Adds the Polyfrost maven repository so that we can get the libraries necessary to develop the mod. |
90 | 87 | repositories { |
91 | | - maven("https://repo.polyfrost.cc/releases") |
| 88 | + maven("https://repo.polyfrost.org/releases") |
92 | 89 | } |
93 | 90 |
|
94 | 91 | // Configures the libraries/dependencies for your mod. |
95 | 92 | dependencies { |
96 | 93 | // Adds the OneConfig library, so we can develop with it. |
97 | | - modCompileOnly("cc.polyfrost:oneconfig-$platform:0.2.0-alpha+") |
| 94 | + modCompileOnly("cc.polyfrost:oneconfig-$platform:0.2.1-alpha+") |
| 95 | + |
| 96 | + modRuntimeOnly("me.djtheredstoner:DevAuth-${if (platform.isFabric) "fabric" else if (platform.isLegacyForge) "forge-legacy" else "forge-latest"}:1.1.2") |
98 | 97 |
|
99 | 98 | // If we are building for legacy forge, includes the launch wrapper with `shade` as we configured earlier. |
100 | 99 | if (platform.isLegacyForge) { |
@@ -172,7 +171,7 @@ tasks { |
172 | 171 | } |
173 | 172 |
|
174 | 173 | remapJar { |
175 | | - input.set(shadowJar.get().archiveFile) |
| 174 | + inputFile.set(shadowJar.get().archiveFile) |
176 | 175 | archiveClassifier.set("") |
177 | 176 | } |
178 | 177 |
|
|