Fix JAR Shadowing
This commit is contained in:
parent
f7103e32c5
commit
a2c33c7cae
@ -1,5 +1,8 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
**1.0.5**
|
||||||
|
* Fix JAR Shadowing
|
||||||
|
|
||||||
**1.0.4**
|
**1.0.4**
|
||||||
* Bug Fixes
|
* Bug Fixes
|
||||||
|
|
||||||
|
19
build.gradle
19
build.gradle
@ -36,6 +36,24 @@ dependencies {
|
|||||||
shadow "com.squareup.moshi:moshi:${project.moshi_version}"
|
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 {
|
processResources {
|
||||||
inputs.property 'version', mod_version
|
inputs.property 'version', mod_version
|
||||||
inputs.property 'name', rootProject.name
|
inputs.property 'name', rootProject.name
|
||||||
@ -63,6 +81,7 @@ tasks.withType(JavaCompile) {
|
|||||||
task sourcesJar(type: Jar, dependsOn: classes) {
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
||||||
classifier 'sources'
|
classifier 'sources'
|
||||||
from sourceSets.main.allSource
|
from sourceSets.main.allSource
|
||||||
|
from sourceSets.main.resources
|
||||||
}
|
}
|
||||||
|
|
||||||
task javadocJar(type: Jar, dependsOn: javadoc) {
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
||||||
|
@ -10,7 +10,7 @@ org.gradle.jvmargs = -Xmx1G
|
|||||||
fabric_loader_version = 0.7.10+build.191
|
fabric_loader_version = 0.7.10+build.191
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.0.4
|
mod_version = 1.0.5
|
||||||
maven_group = com.thebrokenrail
|
maven_group = com.thebrokenrail
|
||||||
archives_base_name = reliccraft
|
archives_base_name = reliccraft
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user