1.0.5
RelicCraft/pipeline/head This commit looks good Details

Fix JAR Shadowing
This commit is contained in:
TheBrokenRail 2020-04-06 16:00:38 -04:00
parent f7103e32c5
commit a2c33c7cae
3 changed files with 23 additions and 1 deletions

View File

@ -1,5 +1,8 @@
# Changelog
**1.0.5**
* Fix JAR Shadowing
**1.0.4**
* Bug Fixes

View File

@ -36,6 +36,24 @@ dependencies {
shadow "com.squareup.moshi:moshi:${project.moshi_version}"
}
shadowJar {
configurations = [project.configurations.shadow]
classifier 'shadow-dev'
}
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
task relocateShadowJar(type: ConfigureShadowRelocation) {
target = tasks.shadowJar
prefix = "${project.group}.${project.archivesBaseName}.shadow"
}
tasks.shadowJar.dependsOn tasks.relocateShadowJar
remapJar {
dependsOn shadowJar
input.set shadowJar.archiveFile.get()
}
processResources {
inputs.property 'version', mod_version
inputs.property 'name', rootProject.name
@ -63,6 +81,7 @@ tasks.withType(JavaCompile) {
task sourcesJar(type: Jar, dependsOn: classes) {
classifier 'sources'
from sourceSets.main.allSource
from sourceSets.main.resources
}
task javadocJar(type: Jar, dependsOn: javadoc) {

View File

@ -10,7 +10,7 @@ org.gradle.jvmargs = -Xmx1G
fabric_loader_version = 0.7.10+build.191
# Mod Properties
mod_version = 1.0.4
mod_version = 1.0.5
maven_group = com.thebrokenrail
archives_base_name = reliccraft