Skip to content

Commit

Permalink
Exclude things from jar
Browse files Browse the repository at this point in the history
  • Loading branch information
Urkaz committed Jul 14, 2024
1 parent 1ebcafb commit b555dbf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ architectury {
allprojects {
def runNumber = (System.getenv("GITHUB_RUN_NUMBER") == null ? "9999" : System.getenv("GITHUB_RUN_NUMBER"))

version = rootProject.mod_version + "-(" + runNumber + ")"
version = rootProject.mod_version + "-" + runNumber
group = rootProject.maven_group

gradle.projectsEvaluated {
Expand Down Expand Up @@ -81,7 +81,7 @@ subprojects {

jar {
from(rootProject.file("LICENSE")) {
rename { "${it}_${mod_name}" }
rename { "${it}_${mod_id}" }
}
manifest {
attributes([
Expand Down
6 changes: 2 additions & 4 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,11 @@ dependencies {
if (test_enable_crimson_moon.toBoolean()) {
modImplementation "curse.maven:crimson-moon-${cm_fabric_projectid}:${cm_fabric_fileids}"
modImplementation "dev.draylar:world-data:${cm_world_data_ver}"
include "dev.draylar:world-data:${cm_world_data_ver}"
modImplementation "draylar.omega-config:omega-config-base:${cm_omega_config_ver}"
include "draylar.omega-config:omega-config-base:${cm_omega_config_ver}"
} else {
modCompileOnly "curse.maven:crimson-moon-${cm_fabric_projectid}:${cm_fabric_fileids}"
modCompileOnly "dev.draylar:world-data:${cm_world_data_ver}"
include "dev.draylar:world-data:${cm_world_data_ver}"
modCompileOnly "draylar.omega-config:omega-config-base:${cm_omega_config_ver}"
include "draylar.omega-config:omega-config-base:${cm_omega_config_ver}"
}

// Lunar
Expand Down Expand Up @@ -104,6 +100,8 @@ processResources {

shadowJar {
exclude "architectury.common.json"
exclude "urkazmoontools.accesswidener"
exclude "urkazmoontools.mixins.json"

configurations = [project.configurations.shadowBundle]
archiveClassifier = 'dev-shadow'
Expand Down
1 change: 0 additions & 1 deletion fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
]
},
"mixins": [
"urkazmoontools.mixins.json",
"urkazmoontools-common.mixins.json"
],
"depends": {
Expand Down
7 changes: 6 additions & 1 deletion forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ loom {
//extraAccessWideners.add loom.accessWidenerPath.get().asFile.name

mixinConfig "urkazmoontools-common.mixins.json"
mixinConfig "urkazmoontools.mixins.json"
//mixinConfig "urkazmoontools.mixins.json"
}
}

Expand Down Expand Up @@ -88,6 +88,11 @@ processResources {
}

shadowJar {
exclude "fabric.mod.json"
exclude "architectury.common.json"
exclude "urkazmoontools.accesswidener"
exclude "urkazmoontools.mixins.json"

configurations = [project.configurations.shadowBundle]
archiveClassifier = 'dev-shadow'
}
Expand Down

0 comments on commit b555dbf

Please sign in to comment.