build.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. plugins {
  2. id "architect-plugin" version "1.0.10"
  3. id "org.cadixdev.licenser" version "0.5.0"
  4. id "com.jfrog.bintray" version "1.8.4"
  5. id "maven"
  6. id "maven-publish"
  7. }
  8. architect {
  9. minecraft = rootProject.minecraft_version
  10. }
  11. allprojects {
  12. apply plugin: "java"
  13. apply plugin: "architect-plugin"
  14. apply plugin: "org.cadixdev.licenser"
  15. archivesBaseName = rootProject.archives_base_name
  16. version = rootProject.mod_version + "." + (System.getenv("GITHUB_RUN_NUMBER") == null ? "9999" : (System.getenv("GITHUB_RUN_NUMBER").toInteger() - Integer.parseInt(rootProject.last_minor_build)).toString())
  17. group = rootProject.maven_group
  18. tasks.withType(JavaCompile) {
  19. options.encoding = "UTF-8"
  20. }
  21. license {
  22. header = rootProject.file("HEADER")
  23. ext {
  24. name = "shedaniel"
  25. year = 2020
  26. }
  27. exclude "**/NbtType.java"
  28. exclude "**/*.accessWidener"
  29. ignoreFailures = true
  30. }
  31. }
  32. task licenseFormatAll
  33. subprojects { p -> licenseFormatAll.dependsOn("${p.path}:licenseFormat") }
  34. bintray {
  35. user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
  36. key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_KEY')
  37. publications = ["mavenCommon", "mavenFabric", "mavenForge"]
  38. publish = true
  39. pkg {
  40. repo = "cloth"
  41. name = "architectury"
  42. userOrg = "shedaniel"
  43. licenses = ["Apache-2.0"]
  44. version {
  45. vcsUrl = "https://github.com/shedaniel/architectury.git"
  46. }
  47. }
  48. }