File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
plugin/src/main/kotlin/org/allaymc/gradle/plugin Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -36,15 +36,22 @@ abstract class AllayExtension @Inject constructor(objects: ObjectFactory) {
3636 val entrance: Property <String > = objects.property(String ::class .java)
3737 val name: Property <String > = objects.property(String ::class .java)
3838 val version: Property <String > = objects.property(String ::class .java)
39+
3940 val authors: ListProperty <String > = objects.listProperty(String ::class .java).convention(emptyList())
4041 fun authors (vararg names : String ) = authors.addAll(names.toList())
42+
4143 val apiVersion: Property <String > = objects.property(String ::class .java)
44+ /* * Alias for [apiVersion]. */
45+ val api = apiVersion
46+
4247 val description: Property <String > = objects.property(String ::class .java)
48+
4349 val dependencies: ListProperty <PluginDescriptor .Dependency > =
4450 objects.listProperty(PluginDescriptor .Dependency ::class .java).convention(emptyList())
4551 fun dependencies (vararg plugins : PluginDescriptor .Dependency ) = dependencies.addAll(plugins.toList())
4652 fun dependency (name : String , version : String? = null, optional : Boolean = false) =
4753 PluginDescriptor .Dependency (name, version, optional)
54+
4855 val website: Property <String > = objects.property(String ::class .java)
4956
5057 operator fun <T > ListProperty<T>.plusAssign (item : T ) = addAll(item)
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ allay {
1414 name = " TestPlugin"
1515 // "org.allaymc.gradle.sample.TestPlugin"
1616 entrance = " .TestPlugin"
17- apiVersion = " >=0.15.0"
17+ api = " >= 0.15.0"
1818 authors + = " Cdm2883"
1919 website = " https://github.com/AllayMC/AllayGradle"
2020 }
You can’t perform that action at this time.
0 commit comments