123456789101112131415161718192021222324252627282930313233343536373839404142 |
- loom {
- accessWidener = file("src/main/resources/architectury-common.accessWidener")
- }
- dependencies {
- minecraft "com.mojang:minecraft:${rootProject.architectury.minecraft}"
- mappings minecraft.officialMojangMappings()
- // We depend on fabric loader here to use the fabric @Environment annotations
- // Do NOT use other classes from fabric loader
- modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
- implementation "net.jodah:typetools:0.6.2"
- }
- architectury {
- common()
- }
- publishing {
- publications {
- mavenCommon(MavenPublication) {
- artifactId = rootProject.archivesBaseName
- artifact(file("${project.buildDir}/libs/${project.archivesBaseName}-${project.version}.jar")) {
- builtBy build
- }
- artifact(sourcesJar) {
- builtBy remapSourcesJar
- }
- }
- }
- repositories {
- if (System.getenv("MAVEN_PASS") != null) {
- maven {
- url = "https://deploy.shedaniel.me/"
- credentials {
- username = "shedaniel"
- password = System.getenv("MAVEN_PASS")
- }
- }
- }
- }
- }
|