build.gradle 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. ignoreFailures = true
  28. }
  29. }
  30. task licenseFormatAll
  31. subprojects { p -> licenseFormatAll.dependsOn("${p.path}:licenseFormat") }
  32. bintray {
  33. user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
  34. key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_KEY')
  35. publications = ["mavenCommon", "mavenFabric", "mavenForge"]
  36. publish = true
  37. pkg {
  38. repo = "cloth"
  39. name = "architectury"
  40. userOrg = "shedaniel"
  41. licenses = ["Apache-2.0"]
  42. version {
  43. vcsUrl = "https://github.com/shedaniel/architectury.git"
  44. }
  45. }
  46. }