You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

94 lines
2.0 KiB

  1. buildscript {
  2. repositories {
  3. maven {
  4. name = 'Fabric'
  5. url = 'https://maven.fabricmc.net/'
  6. }
  7. gradlePluginPortal()
  8. }
  9. }
  10. plugins {
  11. id 'java'
  12. id 'fabric-loom' version "0.4.29"
  13. id 'org.jetbrains.kotlin.jvm' version "1.4.0"
  14. }
  15. sourceCompatibility = 1.8
  16. targetCompatibility = 1.8
  17. compileKotlin {
  18. kotlinOptions {
  19. jvmTarget = '1.8'
  20. }
  21. }
  22. archivesBaseName = "${project.mod_name}-${project.mod_version}+${project.minecraft_version}"
  23. dependencies {
  24. minecraft "com.mojang:minecraft:${project.minecraft_version}"
  25. mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
  26. modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
  27. modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
  28. modImplementation "net.fabricmc:fabric-language-kotlin:$project.fabric_language_kotlin"
  29. modApi ("alexiil.mc.lib:libblockattributes-fatjar_devonly:0.7.0") {
  30. transitive = false
  31. }
  32. modApi ("teamreborn:energy:${project.tr_energy_version}")
  33. modImplementation ("com.github.vini2003:blade:${project.blade_version}")
  34. include "alexiil.mc.lib:libblockattributes-all:0.7.0"
  35. include "com.github.vini2003:blade:${project.blade_version}"
  36. modRuntime "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
  37. modRuntime "net.fabricmc:fabric-language-kotlin:$project.fabric_language_kotlin"
  38. }
  39. repositories {
  40. mavenCentral()
  41. jcenter()
  42. maven {
  43. name = "TechReborn"
  44. url = "https://maven.fabricmc.net/"
  45. }
  46. maven {
  47. name = "Blade"
  48. url "https://dl.bintray.com/blade/Blade"
  49. }
  50. maven {
  51. name = "BuildCraft"
  52. url = "https://mod-buildcraft.com/maven"
  53. }
  54. maven {
  55. name = "Jitpack"
  56. url "https://jitpack.io/"
  57. }
  58. }
  59. processResources {
  60. inputs.property "version", project.version
  61. from(sourceSets.main.resources.srcDirs) {
  62. include "fabric.mod.json"
  63. expand "version": project.version
  64. }
  65. from(sourceSets.main.resources.srcDirs) {
  66. exclude "fabric.mod.json"
  67. }
  68. }
  69. jar {
  70. from "LICENSE"
  71. }
  72. task sourcesJar(type: Jar, dependsOn: classes) {
  73. archiveClassifier.set("sources")
  74. from sourceSets.main.allSource
  75. }
  76. jar.dependsOn sourcesJar
  77. build.dependsOn jar