|
1 | 1 | @file:Suppress("UnstableApiUsage", "PropertyName") |
2 | 2 |
|
3 | 3 | import dev.deftu.gradle.utils.GameSide |
4 | | -import dev.deftu.gradle.utils.MinecraftVersion |
5 | 4 |
|
6 | 5 | plugins { |
7 | 6 | java |
8 | | - kotlin("jvm") |
9 | | - id("dev.deftu.gradle.multiversion") // Applies preprocessing for multiple versions of Minecraft and/or multiple mod loaders. |
10 | | - id("dev.deftu.gradle.tools") // Applies several configurations to things such as the Java version, project name/version, etc. |
11 | | - id("dev.deftu.gradle.tools.resources") // Applies resource processing so that we can replace tokens, such as our mod name/version, in our resources. |
12 | | - id("dev.deftu.gradle.tools.bloom") // Applies the Bloom plugin, which allows us to replace tokens in our source files, such as being able to use `@MOD_VERSION` in our source files. |
13 | | - id("dev.deftu.gradle.tools.shadow") // Applies the Shadow plugin, which allows us to shade our dependencies into our mod JAR. This is NOT recommended for Fabric mods, but we have an *additional* configuration for those! |
14 | | - id("dev.deftu.gradle.tools.minecraft.loom") // Applies the Loom plugin, which automagically configures Essential's Architectury Loom plugin for you. |
15 | | - id("dev.deftu.gradle.tools.minecraft.releases") // Applies the Minecraft auto-releasing plugin, which allows you to automatically release your mod to CurseForge and Modrinth. |
| 7 | + kotlin("jvm") version("2.0.0") |
| 8 | + val dgtVersion = "2.17.0" |
| 9 | + id("dev.deftu.gradle.tools") version(dgtVersion) // Applies several configurations to things such as the Java version, project name/version, etc. |
| 10 | + id("dev.deftu.gradle.tools.resources") version(dgtVersion) // Applies resource processing so that we can replace tokens, such as our mod name/version, in our resources. |
| 11 | + id("dev.deftu.gradle.tools.bloom") version(dgtVersion) // Applies the Bloom plugin, which allows us to replace tokens in our source files, such as being able to use `@MOD_VERSION` in our source files. |
| 12 | + id("dev.deftu.gradle.tools.shadow") version(dgtVersion) // Applies the Shadow plugin, which allows us to shade our dependencies into our mod JAR. This is NOT recommended for Fabric mods, but we have an *additional* configuration for those! |
| 13 | + id("dev.deftu.gradle.tools.minecraft.loom") version(dgtVersion) // Applies the Loom plugin, which automagically configures Essential's Architectury Loom plugin for you. |
| 14 | + id("dev.deftu.gradle.tools.minecraft.releases") version(dgtVersion) // Applies the Minecraft auto-releasing plugin, which allows you to automatically release your mod to CurseForge and Modrinth. |
16 | 15 | } |
17 | 16 |
|
18 | 17 | toolkitLoomHelper { |
@@ -42,9 +41,4 @@ toolkitLoomHelper { |
42 | 41 | // Configures the Mixin tweaker if we are building for Forge. |
43 | 42 | useForgeMixin(modData.id) |
44 | 43 | } |
45 | | - |
46 | | - // Sets up the KotlinForForge library for Forge 1.16.5+ and NeoForge. |
47 | | - if (mcData.isForgeLike && mcData.version >= MinecraftVersion.VERSION_1_16_5) { |
48 | | - useKotlinForForge() |
49 | | - } |
50 | 44 | } |
0 commit comments