mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-10 12:34:11 +01:00
Final fix-ups
- Revert mods.toml version to ${file.jarVersion} - Fix license not being added to built jars - Rename LICENCE.md to LICENSE.md
This commit is contained in:
parent
2a715dfd5d
commit
2323e770d2
14
build.gradle
14
build.gradle
@ -124,19 +124,11 @@ dependencies {
|
||||
}
|
||||
}
|
||||
|
||||
processResources {
|
||||
inputs.property 'version', mod_version
|
||||
|
||||
filesMatching('META-INF/mods.toml') {
|
||||
expand 'version': mod_version
|
||||
}
|
||||
}
|
||||
|
||||
mixin {
|
||||
add sourceSets.main, 'flywheel.refmap.json'
|
||||
}
|
||||
|
||||
// Fix for SpongePowered/MixinGradle#38
|
||||
// Workaround for SpongePowered/MixinGradle#38
|
||||
afterEvaluate {
|
||||
tasks.configureReobfTaskForReobfJar.mustRunAfter(tasks.compileJava)
|
||||
}
|
||||
@ -172,8 +164,8 @@ java {
|
||||
}
|
||||
|
||||
void addLicense(jarTask) {
|
||||
jarTask.from('LICENSE') {
|
||||
rename { "${it}_${project.archivesBaseName}" }
|
||||
jarTask.from('LICENSE.md') {
|
||||
rename '(.*)\\.(.*)', '$1_' + archivesBaseName + '.$2'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,8 @@ license = "MIT"
|
||||
|
||||
[[mods]]
|
||||
modId = "flywheel"
|
||||
version = "${version}"
|
||||
# The Implementation-Version property in the jar's MANIFEST.MF file will be used as the mod version at runtime
|
||||
version = "${file.jarVersion}"
|
||||
displayName = "Flywheel"
|
||||
logoFile = "logo.png"
|
||||
displayURL = "https://www.curseforge.com/minecraft/mc-mods/flywheel"
|
||||
|
Loading…
Reference in New Issue
Block a user