diff --git a/src/main/kotlin/su/plo/voice/plugin/entrypoints.gradle.kts b/src/main/kotlin/su/plo/voice/plugin/entrypoints.gradle.kts index 1eeea66..00454e0 100644 --- a/src/main/kotlin/su/plo/voice/plugin/entrypoints.gradle.kts +++ b/src/main/kotlin/su/plo/voice/plugin/entrypoints.gradle.kts @@ -4,8 +4,9 @@ import org.gradle.api.tasks.SourceSet plugins { java // apply java plugin to compile generated code properly - id("su.plo.voice.plugin.platforms") id("su.plo.voice.plugin.relocate-kotlin") + + id("net.minecraftforge.gradle") } val generateLoadersEntrypoints = tasks.create("generateLoadersEntrypoints", GenerateLoadersEntryPointsTask::class.java) @@ -25,3 +26,34 @@ tasks { getByName("compileKotlin").dependsOn(generateLoadersEntrypoints) } } + +// platforms +minecraft { + mappings("official", "1.16.5") +} + +dependencies { + val paperVersion = "1.16.5-R0.1-SNAPSHOT" + compileOnly("com.destroystokyo.paper:paper-api:${paperVersion}") + val fabricLoaderVersion = "0.14.18" + compileOnly("net.fabricmc:fabric-loader:${fabricLoaderVersion}") + val forgeVersion = "1.16.5-36.2.34" + "minecraft"("net.minecraftforge:forge:${forgeVersion}") + val velocityVersion = "3.1.1" + compileOnly("com.velocitypowered:velocity-api:$velocityVersion") + val bungeeVersion = "1.19-R0.1-SNAPSHOT" + compileOnly("net.md-5:bungeecord-api:$bungeeVersion") +} + +repositories { + mavenCentral() + mavenLocal() + + maven("https://maven.fabricmc.net") + maven("https://repo.papermc.io/repository/maven-public/") + maven("https://maven.minecraftforge.net") + maven("https://oss.sonatype.org/content/repositories/snapshots") + maven("https://repo.plo.su") + maven("https://repo.plasmoverse.com/releases") + maven("https://repo.plasmoverse.com/snapshots") +} diff --git a/src/main/kotlin/su/plo/voice/plugin/platforms.gradle.kts b/src/main/kotlin/su/plo/voice/plugin/platforms.gradle.kts deleted file mode 100644 index d01fbf9..0000000 --- a/src/main/kotlin/su/plo/voice/plugin/platforms.gradle.kts +++ /dev/null @@ -1,35 +0,0 @@ -package su.plo.voice.plugin - -plugins { - id("net.minecraftforge.gradle") -} - -minecraft { - mappings("official", "1.16.5") -} - -dependencies { - val paperVersion = "1.16.5-R0.1-SNAPSHOT" - compileOnly("com.destroystokyo.paper:paper-api:${paperVersion}") - val fabricLoaderVersion = "0.14.18" - compileOnly("net.fabricmc:fabric-loader:${fabricLoaderVersion}") - val forgeVersion = "1.16.5-36.2.34" - "minecraft"("net.minecraftforge:forge:${forgeVersion}") - val velocityVersion = "3.1.1" - compileOnly("com.velocitypowered:velocity-api:$velocityVersion") - val bungeeVersion = "1.19-R0.1-SNAPSHOT" - compileOnly("net.md-5:bungeecord-api:$bungeeVersion") -} - -repositories { - mavenCentral() - mavenLocal() - - maven("https://maven.fabricmc.net") - maven("https://repo.papermc.io/repository/maven-public/") - maven("https://maven.minecraftforge.net") - maven("https://oss.sonatype.org/content/repositories/snapshots") - maven("https://repo.plo.su") - maven("https://repo.plasmoverse.com/releases") - maven("https://repo.plasmoverse.com/snapshots") -}