@@ -5,11 +5,8 @@ import org.gradle.api.provider.ListProperty
55import org.gradle.api.provider.Property
66import org.gradle.kotlin.dsl.listProperty
77import org.gradle.kotlin.dsl.property
8- import org.slf4j.LoggerFactory
98import ru.endlesscode.bukkitgradle.extensions.finalizedOnRead
10- import ru.endlesscode.bukkitgradle.extensions.warnSyntaxChanged
119
12- // TODO 1.0: Remove deprecated methods
1310public class PluginConfigurationImpl (objects : ObjectFactory ) : PluginConfiguration {
1411
1512 private val _generatePluginYaml : Property <Boolean > = objects.property<Boolean >()
@@ -25,44 +22,6 @@ public class PluginConfigurationImpl(objects: ObjectFactory) : PluginConfigurati
2522 override val url: Property <String > = objects.property()
2623 override val authors: ListProperty <String > = objects.listProperty()
2724
28- private val logger = LoggerFactory .getLogger(" PluginConfiguration" )
29-
30- @Deprecated(" Use property syntax instead" , ReplaceWith (" this.name.set(name)" ))
31- public fun setName (name : String ) {
32- logger.warnSyntaxChanged(" bukkit.plugin.name = '...'" , " bukkit.plugin.name.set('...')" )
33- this .name.set(name)
34- }
35-
36- @Deprecated(" Use property syntax instead" , ReplaceWith (" this.description.set(description)" ))
37- public fun setDescription (description : String ) {
38- logger.warnSyntaxChanged(" bukkit.plugin.description = '...'" , " bukkit.plugin.description.set('...')" )
39- this .description.set(description)
40- }
41-
42- @Deprecated(" Use property syntax instead" , ReplaceWith (" this.main.set(main)" ))
43- public fun setMain (main : String ) {
44- logger.warnSyntaxChanged(" bukkit.plugin.main = '...'" , " bukkit.plugin.main.set('...')" )
45- this .main.set(main)
46- }
47-
48- @Deprecated(" Use property syntax instead" , ReplaceWith (" this.version.set(version)" ))
49- public fun setVersion (version : String ) {
50- logger.warnSyntaxChanged(" bukkit.plugin.version = '...'" , " bukkit.plugin.version.set('...')" )
51- this .version.set(version)
52- }
53-
54- @Deprecated(" Use property syntax instead" , ReplaceWith (" this.url.set(url)" ))
55- public fun setUrl (url : String ) {
56- logger.warnSyntaxChanged(" bukkit.plugin.url = '...'" , " bukkit.plugin.url.set('...')" )
57- this .url.set(url)
58- }
59-
60- @Deprecated(" Use property syntax instead" , ReplaceWith (" this.authors.set(authors)" ))
61- public fun setAuthors (authors : List <String >) {
62- logger.warnSyntaxChanged(" bukkit.plugin.authors = [...]" , " bukkit.plugin.authors.set([...])" )
63- this .authors.set(authors)
64- }
65-
6625 /* * Disables plugin.yaml parsing and generation. */
6726 public fun disablePluginYamlGeneration () {
6827 _generatePluginYaml .set(false )
0 commit comments