mirror of
https://github.com/TeamMidnightDust/DeliciousDishes.git
synced 2025-12-16 08:35:10 +01:00
Update to 1.20.4 and big refactoring
- Added new dishes and categories - Switched from Patchouli to the Lavender library for the cooking guide
This commit is contained in:
64
build.gradle
64
build.gradle
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id 'fabric-loom' version '1.0-SNAPSHOT'
|
||||
id 'fabric-loom' version '1.5-SNAPSHOT'
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
@@ -12,10 +12,26 @@ group = project.maven_group
|
||||
|
||||
repositories {
|
||||
maven { url "https://jitpack.io" }
|
||||
maven { url 'https://maven.blamejared.com' }
|
||||
maven { url 'https://maven.wispforest.io' }
|
||||
maven { url "https://api.modrinth.com/maven" }
|
||||
flatDir { dirs 'localMaven'}
|
||||
}
|
||||
loom {
|
||||
runs {
|
||||
//
|
||||
// This adds a new gradle task that runs the datagen API: "gradlew runDatagenClient"
|
||||
//
|
||||
datagenClient {
|
||||
inherit client
|
||||
name "Data Generation"
|
||||
vmArg "-Dfabric-api.datagen"
|
||||
vmArg "-Dfabric-api.datagen.output-dir=${file("src/main/generated")}"
|
||||
vmArg "-Dfabric-api.datagen.modid=dishes"
|
||||
|
||||
runDir "build/datagen"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
//to change the versions see the gradle.properties file
|
||||
@@ -24,16 +40,18 @@ dependencies {
|
||||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||
|
||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||
|
||||
modImplementation "vazkii.patchouli:Patchouli:${patchouli_version}"
|
||||
|
||||
modImplementation "com.github.Draylar:maybe-data:${maybedata_version}"
|
||||
include "com.github.Draylar:maybe-data:${maybedata_version}"
|
||||
|
||||
//modImplementation "com.github.Draylar:maybe-data:${maybedata_version}"
|
||||
//include "com.github.Draylar:maybe-data:${maybedata_version}"
|
||||
|
||||
modImplementation "maven.modrinth:midnightlib:${midnightlib_version}"
|
||||
include "maven.modrinth:midnightlib:${midnightlib_version}"
|
||||
|
||||
modImplementation "io.wispforest:lavender:${project.lavender_version}"
|
||||
//include "io.wispforest:owo-sentinel:${project.owo_version}"
|
||||
}
|
||||
|
||||
|
||||
processResources {
|
||||
inputs.property "version", project.version
|
||||
|
||||
@@ -52,17 +70,27 @@ tasks.withType(JavaCompile).configureEach {
|
||||
// Minecraft 1.17 (21w19a) upwards uses Java 16.
|
||||
it.options.release = 17
|
||||
}
|
||||
sourceSets {
|
||||
main {
|
||||
resources {
|
||||
srcDirs += [
|
||||
'src/main/generated'
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
|
||||
// if it is present.
|
||||
// If you remove this task, sources will not be generated.
|
||||
task sourcesJar(type: Jar, dependsOn: classes) {
|
||||
classifier = "sources"
|
||||
from sourceSets.main.allSource
|
||||
java {
|
||||
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
|
||||
// if it is present.
|
||||
// If you remove this line, sources will not be generated.
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
jar {
|
||||
from "LICENSE"
|
||||
from("LICENSE") {
|
||||
rename { "${it}_${project.archivesBaseName}"}
|
||||
}
|
||||
}
|
||||
|
||||
// configure the maven publication
|
||||
@@ -79,9 +107,11 @@ publishing {
|
||||
}
|
||||
}
|
||||
|
||||
// select the repositories you want to publish to
|
||||
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
|
||||
repositories {
|
||||
// uncomment to publish to the local maven
|
||||
// mavenLocal()
|
||||
// Add repositories to publish to here.
|
||||
// Notice: This block does NOT have the same function as the block in the top level.
|
||||
// The repositories here will be used for publishing your artifact, not for
|
||||
// retrieving dependencies.
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user