fix mod building
All checks were successful
Publish to snapshot maven / build (push) Successful in 24s
All checks were successful
Publish to snapshot maven / build (push) Successful in 24s
This commit is contained in:
parent
f3d17a60ca
commit
9c3091efe1
|
@ -7,7 +7,7 @@ plugins {
|
|||
}
|
||||
|
||||
group = "dev.frogmc"
|
||||
version = "0.0.1-alpha.19+local"
|
||||
version = "0.0.1-alpha.19"
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
|
|
|
@ -200,6 +200,7 @@ class PhytotelmaPlugin : Plugin<Project> {
|
|||
val buildTask = project.tasks.register(Constants.BUILD_TASK, PhytotelmaBuildTask::class.java)
|
||||
project.tasks.getByName(JavaBasePlugin.BUILD_TASK_NAME).dependsOn(buildTask)
|
||||
|
||||
project.tasks.getByName(JavaPlugin.JAR_TASK_NAME).outputs.upToDateWhen { false }
|
||||
project.tasks.getByName(JavaPlugin.JAR_TASK_NAME).actions.addLast { task ->
|
||||
val storage = ProjectStorage.get(project)
|
||||
if (storage.targetNamespace != Constants.MOJMAP_NAMESPACE) {
|
||||
|
|
|
@ -109,9 +109,10 @@ object Nester {
|
|||
FileSystems.newFileSystem(tempFile).use {
|
||||
val matcher = pattern.matcher(version)
|
||||
matcher.find()
|
||||
val count = matcher.groupCount()
|
||||
val semver = matcher.group(1) +
|
||||
(if (matcher.group(2) != null) "-" + matcher.group(2) else "") +
|
||||
(if (matcher.group(3) != null) "+" + matcher.group(3) else "")
|
||||
(if (count > 2) "-" + matcher.group(2) else "") +
|
||||
(if (count > 3) "+" + matcher.group(3) else "")
|
||||
it.getPath("frog.mod.toml").writeText(
|
||||
"""
|
||||
[frog]
|
||||
|
|
Loading…
Reference in a new issue