Skip to content

Commit

Permalink
feat: update version with timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
DuoDuoJuZi committed Dec 24, 2024
1 parent 8c184bb commit d7a32ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter

fun properties(key: String) = project.findProperty(key).toString()

Expand Down Expand Up @@ -102,7 +104,7 @@ publishing {
from(components["java"])
groupId = group.toString()
artifactId = "$module"
version = version
version = "${properties("version")}-${LocalDateTime.now().format(DateTimeFormatter.ofPattern("dd-MM-yy"))}"
}
}
}
Expand Down
1 change: 0 additions & 1 deletion legacy-lands-library
Submodule legacy-lands-library deleted from 80a0d4

0 comments on commit d7a32ed

Please sign in to comment.