mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-18 14:50:56 +00:00
working forge buildscript
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
org.gradle.jvmargs=-Xmx4096m
|
org.gradle.jvmargs=-Xmx4096m
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
import com.dfsek.terra.configureCommon
|
||||||
|
import net.minecraftforge.gradle.userdev.UserDevExtension
|
||||||
|
import net.minecraftforge.gradle.common.util.RunConfig
|
||||||
|
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
maven { url = uri("https://files.minecraftforge.net/maven") }
|
||||||
|
jcenter()
|
||||||
|
mavenCentral()
|
||||||
|
maven { url = uri("https://repo.spongepowered.org/repository/maven-public/") }
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
classpath(group = "net.minecraftforge.gradle", name = "ForgeGradle", version = "4.1.+")
|
||||||
|
classpath("org.spongepowered:mixingradle:0.7-SNAPSHOT")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
apply(plugin = "net.minecraftforge.gradle")
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
java
|
||||||
|
}
|
||||||
|
|
||||||
|
configureCommon()
|
||||||
|
|
||||||
|
group = "com.dfsek.terra.forge"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven { url = uri("https://files.minecraftforge.net/maven") }
|
||||||
|
jcenter()
|
||||||
|
mavenCentral()
|
||||||
|
maven { url = uri("https://repo.spongepowered.org/repository/maven-public/") }
|
||||||
|
}
|
||||||
|
|
||||||
|
val forgeVersion = "36.1.13"
|
||||||
|
val mcVersion = "1.16.5"
|
||||||
|
dependencies {
|
||||||
|
"shadedApi"(project(":common"))
|
||||||
|
"minecraft"("net.minecraftforge:forge:$mcVersion-$forgeVersion")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
configure<UserDevExtension> {
|
||||||
|
mappings(mapOf(
|
||||||
|
"channel" to "official",
|
||||||
|
"version" to mcVersion
|
||||||
|
))
|
||||||
|
runs {
|
||||||
|
val runConfig = Action<RunConfig> {
|
||||||
|
properties(mapOf(
|
||||||
|
"forge.logging.markers" to "SCAN,REGISTRIES,REGISTRYDUMP",
|
||||||
|
"forge.logging.console.level" to "debug"
|
||||||
|
))
|
||||||
|
workingDirectory = project.file("run").canonicalPath
|
||||||
|
source(sourceSets["main"])
|
||||||
|
}
|
||||||
|
create("client", runConfig)
|
||||||
|
create("server", runConfig)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -13,6 +13,7 @@ include("platforms:bukkit")
|
|||||||
include("platforms:fabric")
|
include("platforms:fabric")
|
||||||
include("platforms:region")
|
include("platforms:region")
|
||||||
include("platforms:sponge")
|
include("platforms:sponge")
|
||||||
|
include("platforms:forge")
|
||||||
|
|
||||||
pluginManagement {
|
pluginManagement {
|
||||||
repositories {
|
repositories {
|
||||||
|
|||||||
Reference in New Issue
Block a user