[CHANGE] Implement Maven Publishing
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
archivesBaseName = "ExampleMod-Fabric-${minecraft_version}"
|
||||
// Adjust the output jar name here
|
||||
archivesBaseName = "${mod_name}-Fabric-${minecraft_version}"
|
||||
|
||||
dependencies {
|
||||
// Add your own dependencies here
|
||||
@@ -10,6 +11,22 @@ dependencies {
|
||||
implementation(project(":Common"))
|
||||
}
|
||||
|
||||
// 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 =
|
||||
|
Reference in New Issue
Block a user