Skip to content

Commit

Permalink
Add license helper functions to FMJ
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Mar 23, 2024
1 parent d084731 commit 68868a5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ open class FabricModJson constructor(
@get:Input
val license: ListProperty<String> = objects.listProperty()

fun license(vararg licenses: String) = license.addAll(*licenses)

fun apache2License() = license("Apache-2.0")

fun mitLicense() = license("MIT")

@get:Nested
@get:Optional
val icon: Property<Icon> = objects.property()
Expand Down

0 comments on commit 68868a5

Please sign in to comment.