Skip to content

Commit

Permalink
feat: remove platforms plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Apehum committed Nov 17, 2023
1 parent da7b18a commit 8a1cb16
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 36 deletions.
34 changes: 33 additions & 1 deletion src/main/kotlin/su/plo/voice/plugin/entrypoints.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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")
}
35 changes: 0 additions & 35 deletions src/main/kotlin/su/plo/voice/plugin/platforms.gradle.kts

This file was deleted.

0 comments on commit 8a1cb16

Please sign in to comment.