mirror of
https://github.com/TeamMidnightDust/Decorative.git
synced 2025-12-15 12:35:10 +01:00
Code refactoring & Port to 1.21
This commit is contained in:
28
build.gradle
28
build.gradle
@@ -1,18 +1,15 @@
|
||||
plugins {
|
||||
id 'fabric-loom' version '0.10-SNAPSHOT'
|
||||
id 'fabric-loom' version '1.7-SNAPSHOT'
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
sourceCompatibility = JavaVersion.VERSION_21
|
||||
targetCompatibility = JavaVersion.VERSION_21
|
||||
|
||||
archivesBaseName = project.archives_base_name
|
||||
version = project.mod_version
|
||||
group = project.maven_group
|
||||
|
||||
minecraft {
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven { url "https://jitpack.io" }
|
||||
maven { url "https://maven.blamejared.com" }
|
||||
@@ -20,6 +17,7 @@ repositories {
|
||||
maven {
|
||||
url = "https://api.modrinth.com/maven"
|
||||
}
|
||||
maven { url 'https://maven.nucleoid.xyz' }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -31,16 +29,18 @@ dependencies {
|
||||
// Fabric API. This is technically optional, but you probably want it anyway.
|
||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||
|
||||
modImplementation("vazkii.patchouli:Patchouli:${project.patchouli_version}"){
|
||||
exclude module: "fabric-api"
|
||||
}
|
||||
|
||||
modImplementation ("com.terraformersmc:modmenu:${project.mod_menu_version}"){
|
||||
exclude module: "fabric-api"
|
||||
}
|
||||
// modImplementation("vazkii.patchouli:Patchouli:${project.patchouli_version}"){
|
||||
// exclude module: "fabric-api"
|
||||
// }
|
||||
|
||||
modImplementation "maven.modrinth:midnightlib:${midnightlib_version}"
|
||||
include "maven.modrinth:midnightlib:${midnightlib_version}"
|
||||
|
||||
modImplementation include("eu.pb4:polymer-core:${polymer_version}")
|
||||
modImplementation include("eu.pb4:polymer-blocks:${polymer_version}")
|
||||
modImplementation include("eu.pb4:polymer-resource-pack:${polymer_version}")
|
||||
modImplementation include("eu.pb4:polymer-virtual-entity:${polymer_version}")
|
||||
modImplementation include("eu.pb4:factorytools:${factorytools_version}")
|
||||
}
|
||||
|
||||
processResources {
|
||||
@@ -59,7 +59,7 @@ tasks.withType(JavaCompile).configureEach {
|
||||
it.options.encoding = "UTF-8"
|
||||
|
||||
// Minecraft 1.17 (21w19a) upwards uses Java 16.
|
||||
it.options.release = 17
|
||||
it.options.release = 21
|
||||
}
|
||||
|
||||
java {
|
||||
|
||||
Reference in New Issue
Block a user