2023-11-12 12:30:11 +02:00
|
|
|
archivesBaseName = "${mod_name.replace(" ", "")}-Common-${minecraft_version}"
|
2022-05-12 00:18:53 +02:00
|
|
|
|
|
|
|
dependencies {
|
2023-07-31 01:36:45 +02:00
|
|
|
implementation "com.hypherionmc:rpcsdk:1.0"
|
2022-05-12 00:18:53 +02:00
|
|
|
}
|
|
|
|
|
2022-06-10 18:58:26 +02:00
|
|
|
shadowJar {
|
2023-11-12 12:30:11 +02:00
|
|
|
from sourceSets.main.output
|
2022-06-10 18:58:26 +02:00
|
|
|
dependencies {
|
2023-03-19 13:52:23 +02:00
|
|
|
include(dependency("me.hypherionmc.moon-config:core:${moon_config}"))
|
|
|
|
include(dependency("me.hypherionmc.moon-config:toml:${moon_config}"))
|
2022-06-10 18:58:26 +02:00
|
|
|
|
2023-04-02 17:01:02 +02:00
|
|
|
relocate 'me.hypherionmc.moonconfig', 'shadow.hypherionmc.moonconfig'
|
2022-06-10 18:58:26 +02:00
|
|
|
}
|
2023-11-12 12:30:11 +02:00
|
|
|
setArchiveClassifier("dev")
|
2023-09-25 20:18:35 +02:00
|
|
|
}
|
|
|
|
|
2023-11-12 12:30:11 +02:00
|
|
|
/**
|
|
|
|
* ===============================================================================
|
|
|
|
* = DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING =
|
|
|
|
* ===============================================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
unimined.minecraft {
|
|
|
|
fabric {
|
|
|
|
loader fabric_loader
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultRemapJar = false
|
2022-06-10 18:58:26 +02:00
|
|
|
}
|
|
|
|
|
2023-11-12 12:30:11 +02:00
|
|
|
processResources {
|
|
|
|
def buildProps = project.properties.clone()
|
|
|
|
|
|
|
|
filesMatching(['pack.mcmeta']) {
|
|
|
|
expand buildProps
|
|
|
|
}
|
|
|
|
}
|
2022-06-10 18:58:26 +02:00
|
|
|
|
2023-09-25 20:18:35 +02:00
|
|
|
/**
|
|
|
|
* Publishing Config
|
|
|
|
*/
|
2022-05-12 00:18:53 +02:00
|
|
|
publishing {
|
|
|
|
publications {
|
2023-11-12 12:30:11 +02:00
|
|
|
mavenCommon(MavenPublication) {
|
2022-05-12 00:18:53 +02:00
|
|
|
groupId project.group
|
|
|
|
artifactId project.archivesBaseName
|
|
|
|
version project.version
|
|
|
|
from components.java
|
2023-09-10 17:17:49 +02:00
|
|
|
|
2022-06-10 18:58:26 +02:00
|
|
|
pom.withXml {
|
|
|
|
Node pomNode = asNode()
|
|
|
|
pomNode.dependencies.'*'.findAll() {
|
|
|
|
it.artifactId.text() == 'regutils-joined-fabric' ||
|
|
|
|
it.artifactId.text() == 'core' ||
|
|
|
|
it.artifactId.text() == 'toml'
|
|
|
|
}.each() {
|
|
|
|
it.parent().remove(it)
|
|
|
|
}
|
|
|
|
}
|
2022-05-12 00:18:53 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven {
|
2023-07-13 22:36:16 +02:00
|
|
|
url "https://maven.firstdark.dev/" + (project.release ? "releases" : "snapshots")
|
2022-06-10 18:58:26 +02:00
|
|
|
credentials {
|
|
|
|
username System.getenv("MAVEN_USER")
|
|
|
|
password System.getenv("MAVEN_PASS")
|
|
|
|
}
|
2022-05-12 00:18:53 +02:00
|
|
|
}
|
|
|
|
}
|
2023-11-12 12:30:11 +02:00
|
|
|
}
|