mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 18:27:49 +08:00
publishing_plugin.md: "Using Environment Variables" 2.x add Groovy sample
This commit is contained in:
parent
8f64824df7
commit
4170763f25
@ -124,7 +124,10 @@ Now provide the environment variable in the run configuration for running the `p
|
||||
To do so, create a Gradle run configuration (if not already done), select the Gradle project, specify the
|
||||
`publishPlugin` task, and then add the environment variable.
|
||||
|
||||
#### IntelliJ Platform Gradle Plugin (2.x)
|
||||
##### IntelliJ Platform Gradle Plugin (2.x)
|
||||
|
||||
<tabs group="languages">
|
||||
<tab title="Kotlin" group-key="kotlin">
|
||||
|
||||
```kotlin
|
||||
publishPlugin {
|
||||
@ -132,7 +135,19 @@ publishPlugin {
|
||||
}
|
||||
```
|
||||
|
||||
#### Gradle IntelliJ Plugin (1.x)
|
||||
</tab>
|
||||
<tab title="Groovy" group-key="groovy">
|
||||
|
||||
```groovy
|
||||
publishPlugin {
|
||||
token = System.getenv("ORG_GRADLE_PROJECT_intellijPlatform.publishing.token")
|
||||
}
|
||||
```
|
||||
|
||||
</tab>
|
||||
</tabs>
|
||||
|
||||
##### Gradle IntelliJ Plugin (1.x)
|
||||
|
||||
{collapsible="true" default-state="collapsed"}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user