File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,6 @@ val ideaVersionName: String by project
3636val coreVersion: String by project
3737val downloadIdeaSources: String by project
3838
39- // for publishing nightlies
40- val repoToken: String by project
41- val repoChannel: String by project
42-
4339// configurations
4440val idea by configurations
4541val gradleToolingExtension: Configuration by configurations.creating {
@@ -126,12 +122,14 @@ intellij {
126122}
127123
128124tasks.publishPlugin {
129- if (properties[" publish" ] != null ) {
130- project.version = " ${project.version} -${properties[" buildNumber" ]} "
131-
132- token(repoToken)
133- channels(repoChannel)
125+ // Build numbers are used for
126+ properties[" buildNumber" ]?.let { buildNumber ->
127+ project.version = " ${project.version} -$buildNumber "
128+ }
129+ properties[" mcdev.deploy.token" ]?.let { deployToken ->
130+ token(deployToken)
134131 }
132+ channels(properties[" mcdev.deploy.channel" ] ? : " Stable" )
135133}
136134
137135java {
You can’t perform that action at this time.
0 commit comments