[CHANGE] Implement Maven Publishing

This commit is contained in:
2023-11-08 20:57:08 +02:00
parent 8481afa16d
commit 9dbd7275b3
5 changed files with 61 additions and 7 deletions

View File

@@ -1,9 +1,26 @@
archivesBaseName = "ExampleMod-Common-${minecraft_version}"
// Adjust the output jar name here
archivesBaseName = "${mod_name}-Common-${minecraft_version}"
dependencies {
// Add your dependencies here
}
// Maven Publishing. Remove if not needed
publishing {
publications {
mavenJava(MavenPublication) {
artifactId base.archivesName.get()
from components.java
}
}
repositories {
// Add your maven repository here
maven {
url "file://" + System.getenv("local_maven")
}
}
}
/**
* ===============================================================================
* = DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING =