Skip to content

Commit

Permalink
allow for 7 instead of seven
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysdh540 committed Apr 26, 2024
1 parent a850401 commit b4322f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion buildSrc/src/main/kotlin/JarCompressing.kt
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ open class CompressJarTask : DefaultTask() {

@Option(option = "compression-type", description = "How to compress the jar")
fun setCompressionType(value: String) {
compressionType = CompressionType.valueOf(value.uppercase())
compressionType =
if(value.uppercase().matches(Regex("7Z(IP)?"))) CompressionType.SEVENZIP
else CompressionType.valueOf(value.uppercase())
}

@TaskAction
Expand Down

0 comments on commit b4322f3

Please sign in to comment.