Advertisement
GeradesoLukas

Untitled

Jan 5th, 2024
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.17 KB | None | 0 0
  1. plugins {
  2. id 'fabric-loom' version '1.2-SNAPSHOT'
  3. id 'maven-publish'
  4. }
  5.  
  6. version = project.mod_version
  7. group = project.maven_group
  8.  
  9. repositories {
  10. // Add repositories to retrieve artifacts from in here.
  11. // You should only use this when depending on other mods because
  12. // Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
  13. // See https://docs.gradle.org/current/userguide/declaring_repositories.html
  14. // for more information about repositories.
  15. maven { url "https://maven.terraformersmc.com/" }
  16. maven {
  17. name = "QuiltMC"
  18. url = "https://maven.quiltmc.org/repository/release"
  19. }
  20. maven { url = 'https://maven.ladysnake.org/releases' }
  21. maven { url "https://maven.shedaniel.me/" }
  22. maven { url "https://maven.jamieswhiteshirt.com/libs-release/" }
  23. maven { url "https://jitpack.io/" }
  24. maven { url 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/' }
  25. maven { url "https://cursemaven.com" }
  26. maven { url 'https://maven.merchantpug.net/releases/'}
  27.  
  28. maven { url 'https://maven.firstdarkdev.xyz/snapshots/'}
  29. maven { url 'https://maven.kosmx.dev/'}
  30. maven {
  31. url "https://maven.firstdarkdev.xyz/releases"
  32. }
  33. //maven { url 'https://maven.covers1624.net/' }
  34. exclusiveContent {
  35. forRepository {
  36. maven {
  37. name = "Modrinth"
  38. url = "https://api.modrinth.com/maven"
  39. }
  40. }
  41. filter {
  42. includeGroup "maven.modrinth"
  43. }
  44. }
  45.  
  46.  
  47.  
  48.  
  49. }
  50.  
  51.  
  52.  
  53. dependencies {
  54. // To change the versions see the gradle.properties file
  55. minecraft "com.mojang:minecraft:${project.minecraft_version}"
  56. mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
  57. modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
  58. implementation("com.github.LlamaLad7:MixinExtras:0.1.1")
  59. annotationProcessor("com.github.LlamaLad7:MixinExtras:0.1.1")
  60. modImplementation "com.ptsmods:devlogin:3.5" // For Fabric and Quilt
  61. //localRuntime 'net.covers1624:DevLogin:0.1.0.2'
  62.  
  63. // Fabric API. This is technically optional, but you probably want it anyway.
  64. modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
  65.  
  66. //modImplementation "curse.maven:origins-391943:4044263"
  67. //modImplementation "curse.maven:clothconfig-348521:3972423"
  68. modImplementation "maven.modrinth:origins:${project.origins_version}"
  69. //modImplementation "com.github.apace100:origins-fabric:${project.origins_version}"
  70. modImplementation "com.github.apace100:apoli:${project.apoli_version}"
  71. modImplementation "com.github.apace100:calio:${project.calio_version}"
  72. modImplementation "dev.onyxstudios.cardinal-components-api:cardinal-components-base:${project.cca_version}"
  73. modImplementation "dev.onyxstudios.cardinal-components-api:cardinal-components-entity:${project.cca_version}"
  74. modImplementation 'software.bernie.geckolib:geckolib-fabric-1.20.1:4.2.2'
  75. modImplementation "net.merchantpug:Apugli:${project.apugli_version}-fabric"
  76. //minecraftRuntimeLibraries("com.lowdragmc.ldlib:ldlib-fabric-1.20.1:${project.ldlib_version}")
  77. modCompileOnly "com.lowdragmc.photon:photon-fabric-1.20.1:${project.photon_version}"
  78. //modImplementation "com.lowdragmc.shimmer:Shimmer-fabric:${project.minecraft_version}:${project.shimmer_version}"
  79. //modImplementation "curse.maven:shimmer-627824:4923048"
  80. modImplementation "curse.maven:architectury-api-419699:4875182"
  81. //modImplementation "maven.modrinth:gravity-api-fork:${project.gravity_api_version}"
  82. //modImplementation "curse.maven:icarus-428151:4429130"
  83. //modImplementation "curse.maven:identity-391390:4399469"
  84. modImplementation "dev.emi:trinkets:${project.trinkets_version}"
  85. //modImplementation "curse.maven:trinkets-341284:4441758"
  86. //modImplementation "curse.maven:impaled-478843:3823512"
  87. //modImplementation("dev.kosmx.player-anim:player-animation-lib-fabric:${project.player_anim}")
  88. modApi("com.github.Virtuoel:Pehkui:${pehkui_version}", {
  89. exclude group: "net.fabricmc.fabric-api"
  90. })
  91.  
  92. modImplementation include("io.github.ladysnake:satin:${satin_version}")
  93.  
  94. modImplementation "io.github.ladysnake:PlayerAbilityLib:${pal_version}"
  95.  
  96.  
  97. //modImplementation include ("com.github.Draylar.omega-config:omega-config-base:1.2.3-1.18.1") {
  98. // exclude group: "net.fabricmc.fabric-api"
  99. //}
  100.  
  101.  
  102. modImplementation "curse.maven:female-gender-fabric-456319:4600149"
  103.  
  104.  
  105. //modImplementation "curse.maven:slimeorigin-643546:4357214"
  106. //modImplementation "curse.maven:slime-origin-remastered-643546:4357214"
  107. //modImplementation "curse.maven:mob-origins-449974:4415979"
  108.  
  109. //modImplementation include("com.github.Arathain:LodestoneLib-Quilt:1.19.3-SNAPSHOT")
  110.  
  111.  
  112.  
  113. // Uncomment the following line to enable the deprecated Fabric API modules.
  114. // These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
  115.  
  116. // modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
  117. }
  118.  
  119. base {
  120. archivesName = project.archives_base_name
  121. }
  122.  
  123. processResources {
  124. inputs.property "version", project.version
  125.  
  126. filesMatching("fabric.mod.json") {
  127. expand "version": project.version
  128. }
  129. }
  130.  
  131. tasks.withType(JavaCompile).configureEach {
  132. // Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
  133. it.options.release = 17
  134. }
  135.  
  136. java {
  137. // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
  138. // if it is present.
  139. // If you remove this line, sources will not be generated.
  140. withSourcesJar()
  141.  
  142. sourceCompatibility = JavaVersion.VERSION_17
  143. targetCompatibility = JavaVersion.VERSION_17
  144. }
  145.  
  146. jar {
  147. from("LICENSE") {
  148. rename { "${it}${base.archivesName.get()}"}
  149. }
  150. }
  151.  
  152. loom {
  153. accessWidenerPath = file("src/main/resources/mmpextras.accesswidener")
  154. }
  155.  
  156.  
  157.  
  158. // configure the maven publication
  159. publishing {
  160. publications {
  161. mavenJava(MavenPublication) {
  162. from components.java
  163. }
  164. }
  165.  
  166. // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
  167. repositories {
  168. // Add repositories to publish to here.
  169. // Notice: This block does NOT have the same function as the block in the top level.
  170. // The repositories here will be used for publishing your artifact, not for
  171. // retrieving dependencies.
  172. }
  173. }
  174.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement