@@ -5,11 +5,8 @@ import org.gradle.api.provider.ListProperty
5
5
import org.gradle.api.provider.Property
6
6
import org.gradle.kotlin.dsl.listProperty
7
7
import org.gradle.kotlin.dsl.property
8
- import org.slf4j.LoggerFactory
9
8
import ru.endlesscode.bukkitgradle.extensions.finalizedOnRead
10
- import ru.endlesscode.bukkitgradle.extensions.warnSyntaxChanged
11
9
12
- // TODO 1.0: Remove deprecated methods
13
10
public class PluginConfigurationImpl (objects : ObjectFactory ) : PluginConfiguration {
14
11
15
12
private val _generatePluginYaml : Property <Boolean > = objects.property<Boolean >()
@@ -25,44 +22,6 @@ public class PluginConfigurationImpl(objects: ObjectFactory) : PluginConfigurati
25
22
override val url: Property <String > = objects.property()
26
23
override val authors: ListProperty <String > = objects.listProperty()
27
24
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
-
66
25
/* * Disables plugin.yaml parsing and generation. */
67
26
public fun disablePluginYamlGeneration () {
68
27
_generatePluginYaml .set(false )
0 commit comments