File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ plugins {
77/*
88 * Gets the version name from the latest Git tag
99 */
10- // https://stackoverflow.com/questions/28498688/gradle-script-to-autoversion-and-include-the-commit-hash-in-android
1110def getVersionMetadata () {
1211 // CI builds version numbers
1312 def build_id = System . getenv(" RELEASE_TAG" )
@@ -29,8 +28,8 @@ def getVersionMetadata() {
2928 return " rev.${ id} "
3029}
3130
32- archivesBaseName = project. archives_base_name
33- version = " 1.16.1- ${ getVersionMetadata()} "
31+ archivesBaseName = " ${ project.archives_base_name} - ${ project.minecraft_version } "
32+ version = " ${ getVersionMetadata()} "
3433group = project. maven_group
3534
3635dependencies {
@@ -48,10 +47,11 @@ dependencies {
4847}
4948
5049processResources {
50+ inputs. property " mod_id" , project. archives_base_name
5151 inputs. property " version" , project. version
5252
5353 filesMatching(" fabric.mod.json" ) {
54- expand " version" : project. version
54+ expand " mod_id " : project . archives_base_name, " version" : project. version
5555 }
5656}
5757
7777 targetCompatibility = JavaVersion . VERSION_1_8
7878}
7979jar {
80- from " LICENSE"
80+ from " LICENSE.txt "
8181}
Original file line number Diff line number Diff line change 11{
22 "schemaVersion" : 1 ,
3- "id" : " starlight " ,
3+ "id" : " ${mod_id} " ,
44 "version" : " ${version}" ,
55 "name" : " Starlight" ,
66 "description" : " Rewrites the light engine to fix lighting performance and lighting errors" ,
1616 "phosphor" : " *"
1717 },
1818 "license" : " LGPL-3.0-only" ,
19- "icon" : " assets/starlight/icon.png" ,
2019 "environment" : " *" ,
2120 "entrypoints" : {},
2221 "mixins" : [
You can’t perform that action at this time.
0 commit comments