build.gradle 913 B

1234567891011121314151617181920212223242526272829303132333435
  1. loom {
  2. accessWidenerPath = file("src/main/resources/architectury-common.accessWidener")
  3. }
  4. dependencies {
  5. // We depend on fabric loader here to use the fabric @Environment annotations
  6. // Do NOT use other classes from fabric loader
  7. modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
  8. implementation "net.jodah:typetools:0.6.2"
  9. }
  10. architectury {
  11. common()
  12. }
  13. publishing {
  14. publications {
  15. mavenCommon(MavenPublication) {
  16. artifactId = rootProject.archivesBaseName
  17. from components.java
  18. }
  19. }
  20. repositories {
  21. if (System.getenv("MAVEN_PASS") != null) {
  22. maven {
  23. url = "https://deploy.shedaniel.me/"
  24. credentials {
  25. username = "shedaniel"
  26. password = System.getenv("MAVEN_PASS")
  27. }
  28. }
  29. }
  30. }
  31. }