Skip to content

Commit de7b112

Browse files
committed
build: update publish task
- initial publish was done manually
1 parent da7656f commit de7b112

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

build.gradle.kts

+9-21
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import com.github.jk1.license.render.JsonReportRenderer
55
import com.jetbrains.plugin.structure.toolbox.ToolboxMeta
66
import com.jetbrains.plugin.structure.toolbox.ToolboxPluginDescriptor
77
import org.jetbrains.intellij.pluginRepository.PluginRepositoryFactory
8-
import org.jetbrains.intellij.pluginRepository.model.LicenseUrl
98
import org.jetbrains.intellij.pluginRepository.model.ProductFamily
109
import org.jetbrains.kotlin.com.intellij.openapi.util.SystemInfoRt
1110
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
@@ -217,26 +216,15 @@ val publishPlugin by tasks.registering {
217216
pluginMarketplaceToken
218217
)
219218

220-
if (extension.version == "0.1.0") {
221-
instance.uploader.uploadNewPlugin(
222-
pluginZip.outputs.files.singleFile,
223-
listOf("toolbox", "gateway"), // do not change
224-
LicenseUrl.MIT, // choose wisely
225-
ProductFamily.TOOLBOX, // do not change
226-
extension.meta.vendor, // do not change
227-
isHidden = true
228-
)
229-
} else {
230-
// !!! subsequent updates !!!
231-
instance.uploader.uploadUpdateByXmlIdAndFamily(
232-
extension.id, // do not change
233-
ProductFamily.TOOLBOX, // do not change
234-
pluginZip.outputs.files.singleFile, // do not change
235-
null, // do not change. Channels will be available later
236-
"Bug fixes and improvements",
237-
true
238-
)
239-
}
219+
// !!! subsequent updates !!!
220+
instance.uploader.uploadUpdateByXmlIdAndFamily(
221+
extension.id, // do not change
222+
ProductFamily.TOOLBOX, // do not change
223+
pluginZip.outputs.files.singleFile, // do not change
224+
null, // do not change. Channels will be available later
225+
"Bug fixes and improvements",
226+
true
227+
)
240228
}
241229
}
242230

0 commit comments

Comments
 (0)