mirror of
https://github.com/TeamMidnightDust/MidnightControls.git
synced 2025-12-13 15:25:08 +01:00
Fix buildscript for Modrinth publishing.
This commit is contained in:
10
build.gradle
10
build.gradle
@@ -41,6 +41,16 @@ String getMCVersionString() {
|
||||
return version[0] + '.' + version[1]
|
||||
}
|
||||
|
||||
String parseReadme() {
|
||||
def excludeRegex = /(?m)<!-- modrinth_exclude\.start -->(.|\n)*?<!-- modrinth_exclude\.end -->/
|
||||
def linkRegex = /!\[([A-z_ ]+)]\((images\/[A-z.\/_]+)\)/
|
||||
|
||||
def readme = (String) file('README.md').text
|
||||
readme = readme.replaceAll(excludeRegex, '')
|
||||
readme = readme.replaceAll(linkRegex, '')
|
||||
return readme
|
||||
}
|
||||
|
||||
minecraft {
|
||||
accessWidener file('src/main/resources/lambdacontrols.accesswidener')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user