131 lines
3.3 KiB
Groovy
131 lines
3.3 KiB
Groovy
plugins {
|
|
id 'net.fabricmc.fabric-loom-remap' version "${loom_version}"
|
|
id 'maven-publish'
|
|
}
|
|
|
|
version = project.mod_version
|
|
group = project.maven_group
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
maven {
|
|
name "cloth config"
|
|
url "https://maven.shedaniel.me"
|
|
}
|
|
maven {
|
|
name "mod menu"
|
|
url "https://maven.terraformersmc.com"
|
|
}
|
|
maven {
|
|
name "playerabilitylib"
|
|
url "https://maven.ladysnake.org/releases"
|
|
}
|
|
maven {
|
|
name "reach entity attributes"
|
|
url "https://maven.jamieswhiteshirt.com/libs-release"
|
|
}
|
|
maven {
|
|
name "jitpack"
|
|
url "https://jitpack.io"
|
|
}
|
|
maven {
|
|
name = "Up-Mods"
|
|
url = "https://maven.uuid.gg/releases"
|
|
}
|
|
maven {
|
|
name = "JourneyMap"
|
|
url = "https://jm.gserv.me/repository/maven-public"
|
|
}
|
|
maven {
|
|
name = "TeamResourceful"
|
|
url = "https://maven.teamresourceful.com/repository/maven-releases"
|
|
}
|
|
}
|
|
|
|
// loom {
|
|
// splitEnvironmentSourceSets()
|
|
|
|
// mods {
|
|
// "modid" {
|
|
// sourceSet sourceSets.main
|
|
// sourceSet sourceSets.client
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
dependencies {
|
|
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
|
mappings loom.layered {
|
|
// officialMojangMappings()
|
|
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
|
|
// parchment("org.parchmentmc.data:parchment-${parchment_minecraft}:${parchment_mappings}@zip")
|
|
}
|
|
|
|
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
|
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
|
|
|
modImplementation "com.terraformersmc:modmenu:${project.modmenu_version}"
|
|
|
|
modImplementation "com.github.apace100:origins-fabric:${project.origins_version}"
|
|
modImplementation "com.github.apace100:apoli:${project.apoli_version}"
|
|
modImplementation "com.github.apace100:calio:${project.calio_version}"
|
|
modApi("com.github.Virtuoel:Pehkui:${pehkui_version}", {
|
|
exclude group: "net.fabricmc.fabric-api"
|
|
})
|
|
|
|
modCompileOnly "dev.emi:emi-fabric:${emi_version}:api"
|
|
modLocalRuntime "dev.emi:emi-fabric:${emi_version}"
|
|
|
|
modImplementation "dev.cammiescorner.icarus:Icarus-Fabric:${project.icarus_version}"
|
|
|
|
}
|
|
|
|
processResources {
|
|
def version = project.version
|
|
inputs.property "version", version
|
|
|
|
filesMatching("fabric.mod.json") {
|
|
expand "version": version
|
|
}
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
it.options.release = 17
|
|
}
|
|
|
|
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()
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
jar {
|
|
def projectName = project.name
|
|
inputs.property "projectName", projectName
|
|
|
|
from("LICENSE") {
|
|
rename { "${it}_$projectName"}
|
|
}
|
|
}
|
|
|
|
// configure the maven publication
|
|
publishing {
|
|
publications {
|
|
create("mavenJava", MavenPublication) {
|
|
from components.java
|
|
}
|
|
}
|
|
|
|
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
|
|
repositories {
|
|
// 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.
|
|
}
|
|
}
|