Port forge and finally fix build scripts
This commit is contained in:
@@ -1,24 +1,27 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'fabric-loom' version '0.12-SNAPSHOT'
|
||||
id 'maven-publish'
|
||||
id 'com.github.johnrengelman.shadow' version '7.0.0'
|
||||
id 'org.quiltmc.loom' version '1.3.+'
|
||||
}
|
||||
|
||||
apply plugin: 'com.github.johnrengelman.shadow'
|
||||
apply plugin: 'maven-publish'
|
||||
|
||||
archivesBaseName = "${mod_name}-common-${minecraft_version}"
|
||||
|
||||
loom {
|
||||
shareCaches()
|
||||
accessWidenerPath = project.file("src/main/resources/craterlib.aw")
|
||||
remapArchives = false
|
||||
mixin {
|
||||
useLegacyMixinAp = false
|
||||
}
|
||||
runConfigs.configureEach {
|
||||
ideConfigGenerated = false
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
minecraft "com.mojang:minecraft:${minecraft_version}"
|
||||
mappings loom.officialMojangMappings()
|
||||
modImplementation "org.quiltmc:quilt-loader:0.19.4"
|
||||
|
||||
compileOnly group: 'org.spongepowered', name: 'mixin', version: '0.8.5'
|
||||
implementation "com.hypherionmc:rpcsdk:1.0"
|
||||
}
|
||||
@@ -31,19 +34,31 @@ processResources {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Shadowjar Config
|
||||
*/
|
||||
shadowJar {
|
||||
exclude 'mappings/*'
|
||||
dependencies {
|
||||
include(dependency("me.hypherionmc.moon-config:core:${moon_config}"))
|
||||
include(dependency("me.hypherionmc.moon-config:toml:${moon_config}"))
|
||||
|
||||
relocate 'me.hypherionmc.moonconfig', 'shadow.hypherionmc.moonconfig'
|
||||
}
|
||||
setArchiveClassifier('')
|
||||
setArchiveClassifier('dev-shadow')
|
||||
}
|
||||
|
||||
build.dependsOn shadowJar
|
||||
reg.configureJarTask(shadowJar)
|
||||
remapJar {
|
||||
input.set shadowJar.archiveFile
|
||||
dependsOn shadowJar
|
||||
setArchiveClassifier(null)
|
||||
}
|
||||
|
||||
//reg.configureJarTask(shadowJar)
|
||||
|
||||
/**
|
||||
* Publishing Config
|
||||
*/
|
||||
publishing {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
|
Reference in New Issue
Block a user