Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plugins {
- id "com.github.johnrengelman.shadow" version "7.1.2"
- }
- architectury {
- platformSetupLoomIde()
- fabric()
- }
- loom {
- accessWidenerPath = project(":common").loom.accessWidenerPath
- }
- configurations {
- common
- shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this.
- compileClasspath.extendsFrom common
- runtimeClasspath.extendsFrom common
- developmentFabric.extendsFrom common
- }
- dependencies {
- modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
- include("com.github.LlamaLad7:MixinExtras:0.1.1")
- implementation 'com.electronwill.night-config:core:3.6.5'
- implementation 'com.electronwill.night-config:toml:3.6.5'
- modImplementation "curse.maven:forgeconfigapiport-547434:3943250"
- modApi "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_api_version}"
- //include(annotationProcessor(implementation("com.github.LlamaLad7.MixinExtras:mixinextras-fabric:${rootProject.mixinextras_version}")))
- modImplementation "curse.maven:bettercombat-639842:4428886" // Better Combat
- modImplementation "curse.maven:clothconfig-348521:3972420" // Cloth Config
- modImplementation "curse.maven:playeranim-658587:4418153" // playerAnimator
- // Remove the next line if you don't want to depend on the API
- modApi "dev.architectury:architectury-fabric:${rootProject.architectury_version}"
- common(project(path: ":common", configuration: "namedElements")) { transitive false }
- shadowCommon(project(path: ":common", configuration: "transformProductionFabric")) { transitive false }
- }
- processResources {
- inputs.property "version", project.version
- filesMatching("fabric.mod.json") {
- expand "version": project.version
- }
- }
- shadowJar {
- exclude "architectury.common.json"
- configurations = [project.configurations.shadowCommon]
- archiveClassifier = "dev-shadow"
- relocate("com.llamalad7.mixinextras", "net.geradesolukas.mixinextras")
- mergeServiceFiles()
- }
- remapJar {
- injectAccessWidener = true
- input.set shadowJar.archiveFile
- dependsOn shadowJar
- archiveClassifier = "fabric"
- }
- jar {
- archiveClassifier = "dev"
- }
- sourcesJar {
- def commonSources = project(":common").sourcesJar
- dependsOn commonSources
- from commonSources.archiveFile.map { zipTree(it) }
- }
- components.java {
- withVariantsFromConfiguration(project.configurations.shadowRuntimeElements) {
- skip()
- }
- }
- publishing {
- publications {
- mavenFabric(MavenPublication) {
- artifactId = rootProject.archives_base_name + "-fabric-" + project.name
- 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.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement