build.gradle 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. plugins {
  2. id 'fabric-loom' version '0.2.4-SNAPSHOT'
  3. id 'maven-publish'
  4. id 'com.jfrog.bintray' version '1.8.4'
  5. }
  6. sourceCompatibility = 1.8
  7. targetCompatibility = 1.8
  8. group = "me.shedaniel"
  9. archivesBaseName = "ClothConfig2"
  10. version = project.mod_version
  11. minecraft {
  12. }
  13. processResources {
  14. filesMatching('fabric.mod.json') {
  15. expand 'version': project.version
  16. }
  17. inputs.property "version", project.version
  18. }
  19. dependencies {
  20. minecraft "com.mojang:minecraft:${project.minecraft_version}"
  21. mappings "net.fabricmc:yarn:${project.yarn_version}"
  22. modImplementation "net.fabricmc:fabric-loader:${project.fabric_loader_version}"
  23. modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
  24. modApi "io.github.prospector.modmenu:ModMenu:${modmenu_version}"
  25. }
  26. bintray {
  27. user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
  28. key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_KEY')
  29. publications = ["MyPublication"]
  30. pkg {
  31. repo = "ClothConfig"
  32. name = "ClothConfig2"
  33. userOrg = "shedaniel"
  34. licenses = ["Unlicense"]
  35. vcsUrl = "https://github.com/shedaniel/ClothConfig.git"
  36. version {
  37. name = project.version
  38. vcsTag = project.version
  39. released = new Date()
  40. }
  41. }
  42. }
  43. publishing {
  44. publications {
  45. MyPublication(MavenPublication) {
  46. artifact(file("${project.buildDir}/libs/${project.archivesBaseName}-${project.version}.jar")) {
  47. builtBy remapJar
  48. }
  49. artifact(jar) {
  50. builtBy jar
  51. }
  52. }
  53. }
  54. // select the repositories you want to publish to
  55. repositories {
  56. // uncomment to publish to the local maven
  57. // mavenLocal()
  58. }
  59. }