-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathPluginConfigurationImpl.kt
More file actions
29 lines (24 loc) · 1.2 KB
/
PluginConfigurationImpl.kt
File metadata and controls
29 lines (24 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package ru.endlesscode.bukkitgradle.plugin.extension
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.ListProperty
import org.gradle.api.provider.Property
import org.gradle.kotlin.dsl.listProperty
import org.gradle.kotlin.dsl.property
import ru.endlesscode.bukkitgradle.extensions.finalizedOnRead
public class PluginConfigurationImpl(objects: ObjectFactory) : PluginConfiguration {
private val _generatePluginYaml: Property<Boolean> = objects.property<Boolean>()
.convention(true)
.finalizedOnRead()
override val generatePluginYaml: Property<Boolean> = _generatePluginYaml
override val name: Property<String> = objects.property()
override val description: Property<String> = objects.property()
override val main: Property<String> = objects.property()
override val version: Property<String> = objects.property()
override val apiVersion: Property<String> = objects.property()
override val url: Property<String> = objects.property()
override val authors: ListProperty<String> = objects.listProperty()
/** Disables plugin.yaml parsing and generation. */
public fun disablePluginYamlGeneration() {
_generatePluginYaml.set(false)
}
}