@@ -121,17 +121,17 @@ class MergePluginYamlSpec extends PluginSpecification {
121
121
122
122
void ' when merge plugin.yaml - and all properties configured - should write all lines' () {
123
123
given : " configured all plugin properties"
124
- // language=gradle
124
+ // language=kotlin
125
125
buildFile << """
126
126
bukkit {
127
127
plugin {
128
- name.set(' TestPlugin' )
129
- description.set(' Test plugin description' )
130
- main.set(' com.example.plugin.Plugin' )
131
- version.set(' 0.1' )
132
- apiVersion.set(' 1.13' )
133
- url.set('http ://www.example.com/' )
134
- authors.set([ "OsipXD", "Contributors"] )
128
+ name.set(" TestPlugin" )
129
+ description.set(" Test plugin description" )
130
+ main.set(" com.example.plugin.Plugin" )
131
+ version.set(" 0.1" )
132
+ apiVersion.set(" 1.13" )
133
+ url.set("https ://www.example.com/" )
134
+ authors.set(listOf( "OsipXD", "Contributors") )
135
135
}
136
136
}
137
137
""" . stripIndent()
@@ -147,22 +147,22 @@ class MergePluginYamlSpec extends PluginSpecification {
147
147
version: "0.1"
148
148
api-version: "1.13"
149
149
authors: ["OsipXD", "Contributors"]
150
- website: "http ://www.example.com/"
150
+ website: "https ://www.example.com/"
151
151
""" . stripIndent(). trim()
152
152
}
153
153
154
- void ' when merge plugin.yaml - and all properties configured old way - should write all lines' () {
154
+ void ' when merge plugin.yaml - and all properties configured with assignment - should write all lines' () {
155
155
given : " configured all plugin properties in old way"
156
- // language=gradle
156
+ // language=kotlin
157
157
buildFile << """
158
158
bukkit {
159
159
plugin {
160
- name = ' TestPlugin'
161
- description = ' Test plugin description'
162
- main = ' com.example.plugin.Plugin'
163
- version = ' 0.1'
164
- url = 'http ://www.example.com/'
165
- authors = [ "OsipXD", "Contributors"]
160
+ name = " TestPlugin"
161
+ description = " Test plugin description"
162
+ main = " com.example.plugin.Plugin"
163
+ version = " 0.1"
164
+ url = "https ://www.example.com/"
165
+ authors = listOf( "OsipXD", "Contributors")
166
166
}
167
167
}
168
168
""" . stripIndent()
@@ -178,7 +178,7 @@ class MergePluginYamlSpec extends PluginSpecification {
178
178
version: "0.1"
179
179
api-version: "1.16"
180
180
authors: ["OsipXD", "Contributors"]
181
- website: "http ://www.example.com/"
181
+ website: "https ://www.example.com/"
182
182
""" . stripIndent(). trim()
183
183
}
184
184
0 commit comments