Advertisement
GeradesoLukas

Untitled

Jan 11th, 2024
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. plugins {
  2. id "com.github.johnrengelman.shadow" version "7.1.2"
  3. }
  4.  
  5. architectury {
  6. platformSetupLoomIde()
  7. forge()
  8. }
  9.  
  10. loom {
  11. accessWidenerPath = project(":common").loom.accessWidenerPath
  12.  
  13. forge {
  14. convertAccessWideners = true
  15.  
  16. extraAccessWideners.add loom.accessWidenerPath.get().asFile.name
  17.  
  18. mixinConfig "weaponleveling-common.mixins.json"
  19. mixinConfig "weaponleveling.mixins.json"
  20. }
  21. }
  22.  
  23. configurations {
  24. common
  25. shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this.
  26. compileClasspath.extendsFrom common
  27. runtimeClasspath.extendsFrom common
  28. developmentForge.extendsFrom common
  29. }
  30.  
  31. dependencies {
  32. forge "net.minecraftforge:forge:${rootProject.forge_version}"
  33. // Remove the next line if you don't want to depend on the API
  34. modApi "dev.architectury:architectury-forge:${rootProject.architectury_version}"
  35.  
  36. common(project(path: ":common", configuration: "namedElements")) { transitive false }
  37. shadowCommon(project(path: ":common", configuration: "transformProductionForge")) { transitive = false }
  38.  
  39. forgeRuntimeLibrary(shadowCommon(annotationProcessor("com.github.LlamaLad7:MixinExtras:0.1.1")))
  40.  
  41.  
  42. modCompileOnly "curse.maven:bettercombat-639842:4428885" // Better Combat
  43. modCompileOnly "curse.maven:clothconfig-348521:3972426" // Cloth Config
  44. modCompileOnly "curse.maven:playeranim-658587:4418152" // playerAnimator
  45.  
  46. modCompileOnly "curse.maven:crayfishgun-289479:4344223" //MrCrayfish's Gun Mod
  47. modCompileOnly "curse.maven:framework-549225:4287475" //Framework
  48. //modRuntimeOnly
  49. //modCompileOnly()
  50. modCompileOnly "curse.maven:tinkers-74072:4509008" //Tinkers
  51. modCompileOnly "curse.maven:mantle-74924:4509007" //Mantle
  52.  
  53. modCompileOnly "curse.maven:parrythis-479996:3910075" //Parry This!
  54.  
  55. modCompileOnly "curse.maven:tetra-289712:4029100" //Tetra
  56. modCompileOnly "curse.maven:mutil-351914:3788376" //mutil
  57.  
  58. //modImplementation "curse.maven:geckolib-388172:4181370"
  59. modImplementation "curse.maven:epic-fight-mod-405076:4922082" // Epic Fight
  60. }
  61.  
  62. processResources {
  63. inputs.property "version", project.version
  64.  
  65. filesMatching("META-INF/mods.toml") {
  66. expand "version": project.version
  67. }
  68. }
  69.  
  70. shadowJar {
  71. exclude "fabric.mod.json"
  72. exclude "architectury.common.json"
  73.  
  74. configurations = [project.configurations.shadowCommon]
  75. archiveClassifier = "dev-shadow"
  76.  
  77. relocate("com.llamalad7.mixinextras", "net.geradesolukas.mixinextras")
  78. mergeServiceFiles()
  79. }
  80.  
  81. remapJar {
  82. input.set shadowJar.archiveFile
  83. dependsOn shadowJar
  84. archiveClassifier = "forge"
  85. }
  86.  
  87. jar {
  88. archiveClassifier = "dev"
  89. }
  90.  
  91. sourcesJar {
  92. def commonSources = project(":common").sourcesJar
  93. dependsOn commonSources
  94. from commonSources.archiveFile.map { zipTree(it) }
  95. }
  96.  
  97. components.java {
  98. withVariantsFromConfiguration(project.configurations.shadowRuntimeElements) {
  99. skip()
  100. }
  101. }
  102.  
  103. publishing {
  104. publications {
  105. mavenForge(MavenPublication) {
  106. artifactId = rootProject.archives_base_name + "-forge-" + project.name
  107. from components.java
  108. }
  109. }
  110.  
  111. // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
  112. repositories {
  113. // Add repositories to publish to here.
  114. }
  115. }
  116.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement