@@ -18,7 +18,7 @@ plugins {
18
18
mcdev
19
19
groovy
20
20
idea
21
- id(" org.jetbrains.intellij" ) version " 0.7.3 "
21
+ id(" org.jetbrains.intellij" ) version " 1.0 "
22
22
id(" org.cadixdev.licenser" ) version " 0.6.0"
23
23
id(" org.jlleitschuh.gradle.ktlint" ) version " 10.0.0"
24
24
}
@@ -97,25 +97,25 @@ dependencies {
97
97
98
98
intellij {
99
99
// IntelliJ IDEA dependency
100
- version = ideaVersion
100
+ version.set( ideaVersion)
101
101
// Bundled plugin dependencies
102
- setPlugins (
102
+ plugins.addAll (
103
103
" java" ,
104
104
" maven" ,
105
105
" gradle" ,
106
106
" Groovy" ,
107
+ " org.toml.lang:$pluginTomlVersion " ,
107
108
// needed dependencies for unit tests
108
109
" properties" ,
109
- " junit" ,
110
- " org.toml.lang:$pluginTomlVersion "
110
+ " junit"
111
111
)
112
112
113
- pluginName = " Minecraft Development"
114
- updateSinceUntilBuild = true
113
+ pluginName.set( " Minecraft Development" )
114
+ updateSinceUntilBuild.set( true )
115
115
116
- downloadSources = downloadIdeaSources.toBoolean()
116
+ downloadSources.set( downloadIdeaSources.toBoolean() )
117
117
118
- sandboxDirectory = layout.projectDirectory.dir(" .sandbox" )
118
+ sandboxDir.set( layout.projectDirectory.dir(" .sandbox" ).toString() )
119
119
}
120
120
121
121
tasks.publishPlugin {
@@ -124,13 +124,13 @@ tasks.publishPlugin {
124
124
project.version = " ${project.version} -$buildNumber "
125
125
}
126
126
properties[" mcdev.deploy.token" ]?.let { deployToken ->
127
- token(deployToken)
127
+ token.set (deployToken.toString() )
128
128
}
129
- channels(properties[" mcdev.deploy.channel" ] ? : " Stable" )
129
+ channels.add (properties[" mcdev.deploy.channel" ]?.toString() ? : " Stable" )
130
130
}
131
131
132
132
tasks.runPluginVerifier {
133
- ideVersions( listOf ( " IC-2020.1.3" , " IC-2020.1.4" ) )
133
+ ideVersions.addAll( " IC-2020.1.3" , " IC-2020.1.4" )
134
134
}
135
135
136
136
java {
@@ -200,7 +200,7 @@ tasks.test {
200
200
idea {
201
201
module {
202
202
generatedSourceDirs.add(file(" gen" ))
203
- excludeDirs.add(file(intellij.sandboxDirectory ))
203
+ excludeDirs.add(file(intellij.sandboxDir.get() ))
204
204
}
205
205
}
206
206
0 commit comments