build.gradle 762 B

123456789101112131415161718192021222324252627282930313233343536
  1. plugins {
  2. id "architect-plugin" version "1.0.10"
  3. id "org.cadixdev.licenser" version "0.5.0"
  4. }
  5. architect {
  6. minecraft = rootProject.minecraft_version
  7. }
  8. allprojects {
  9. apply plugin: "java"
  10. apply plugin: "architect-plugin"
  11. apply plugin: "org.cadixdev.licenser"
  12. archivesBaseName = rootProject.archives_base_name
  13. version = rootProject.mod_version
  14. group = rootProject.maven_group
  15. tasks.withType(JavaCompile) {
  16. options.encoding = "UTF-8"
  17. }
  18. license {
  19. header = rootProject.file("HEADER")
  20. ext {
  21. name = "shedaniel"
  22. year = 2020
  23. }
  24. ignoreFailures = true
  25. }
  26. }
  27. task licenseFormatAll
  28. subprojects { p -> licenseFormatAll.dependsOn("${p.path}:licenseFormat") }