build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. loom {
  2. accessWidener = file("src/main/resources/architectury-common.accessWidener")
  3. }
  4. dependencies {
  5. minecraft "com.mojang:minecraft:${rootProject.architectury.minecraft}"
  6. mappings minecraft.officialMojangMappings()
  7. // We depend on fabric loader here to use the fabric @Environment annotations
  8. // Do NOT use other classes from fabric loader
  9. modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
  10. implementation "net.jodah:typetools:0.6.2"
  11. }
  12. architectury {
  13. common()
  14. }
  15. publishing {
  16. publications {
  17. mavenCommon(MavenPublication) {
  18. artifactId = rootProject.archivesBaseName
  19. artifact(file("${project.buildDir}/libs/${project.archivesBaseName}-${project.version}.jar")) {
  20. builtBy build
  21. }
  22. artifact(sourcesJar) {
  23. builtBy remapSourcesJar
  24. }
  25. }
  26. }
  27. repositories {
  28. if (System.getenv("MAVEN_PASS") != null) {
  29. maven {
  30. url = "https://deploy.shedaniel.me/"
  31. credentials {
  32. username = "shedaniel"
  33. password = System.getenv("MAVEN_PASS")
  34. }
  35. }
  36. }
  37. }
  38. }