mirror of
https://github.com/JonasunderscoreJones/nicer-skies.git
synced 2025-10-23 03:39:18 +02:00
new: mod
This commit is contained in:
parent
e2246761dd
commit
7d37cc3c87
18 changed files with 783 additions and 1 deletions
79
build.gradle
Normal file
79
build.gradle
Normal file
|
@ -0,0 +1,79 @@
|
|||
plugins {
|
||||
id 'fabric-loom' version '0.12-SNAPSHOT'
|
||||
id 'io.github.juuxel.loom-quiltflower' version '1.7.1' // to use genSourcesWithQuiltflower
|
||||
}
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
|
||||
archivesBaseName = project.archives_base_name
|
||||
version = project.mod_version
|
||||
group = project.maven_group
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url "https://maven.parchmentmc.org" } // parchment mappings
|
||||
maven { url "https://maven.terraformersmc.com/" } // modmenu
|
||||
maven { name = "Modrinth" // lazydfu, starlight, lithium
|
||||
url = "https://api.modrinth.com/maven"
|
||||
content {
|
||||
includeGroup "maven.modrinth"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// essentials & mappings
|
||||
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
||||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||
|
||||
mappings loom.layered {
|
||||
it.parchment("org.parchmentmc.data:parchment-1.18.2:BLEEDING-20220313.132143-1@zip") // https://ldtteam.jfrog.io/ui/native/parchmentmc-public/org/parchmentmc/data/parchment-1.18.1/BLEEDING-SNAPSHOT
|
||||
it.officialMojangMappings {
|
||||
setNameSyntheticMembers(false)
|
||||
}
|
||||
}
|
||||
|
||||
// apis
|
||||
modImplementation "com.terraformersmc:modmenu:${project.modmenu_version}"
|
||||
|
||||
// devenv mods
|
||||
modRuntimeOnly "maven.modrinth:lazydfu:${project.lazydfu_version}"
|
||||
modRuntimeOnly "maven.modrinth:starlight:${project.starlight_version}"
|
||||
// modRuntimeOnly "maven.modrinth:sodium:${project.sodium_version}"
|
||||
// modRuntimeOnly include(fabricApi.module("fabric-rendering-data-attachment-v1", project.fabric_version))
|
||||
// modRuntimeOnly include(fabricApi.module("fabric-rendering-fluids-v1", project.fabric_version))
|
||||
// modRuntimeOnly include(fabricApi.module("fabric-resource-loader-v0", project.fabric_version))
|
||||
modRuntimeOnly "maven.modrinth:lithium:${project.lithium_version}"
|
||||
modRuntimeOnly "maven.modrinth:spark:${project.spark_version}"
|
||||
modRuntimeOnly include(fabricApi.module("fabric-command-api-v2", project.fabric_version))
|
||||
modRuntimeOnly include(fabricApi.module("fabric-lifecycle-events-v1", project.fabric_version))
|
||||
modRuntimeOnly("com.terraformersmc:modmenu:${project.modmenu_version}") { transitive = false }
|
||||
modRuntimeOnly(include(fabricApi.module("fabric-screen-api-v1", project.fabric_version)))
|
||||
|
||||
// libraries
|
||||
compileOnly 'org.projectlombok:lombok:1.18.24'
|
||||
annotationProcessor 'org.projectlombok:lombok:1.18.24'
|
||||
|
||||
// test
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.2'
|
||||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
|
||||
}
|
||||
|
||||
processResources {
|
||||
inputs.property "version", project.version
|
||||
|
||||
filesMatching("fabric.mod.json") {
|
||||
expand "version": project.version
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach { it.options.release = 17 }
|
||||
java { withSourcesJar() }
|
||||
|
||||
jar {
|
||||
from("LICENSE") {
|
||||
rename { "${it}_${project.archivesBaseName}"}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue