1
0
mirror of https://github.com/chylex/IntelliJ-Rainbow-Brackets.git synced 2025-05-12 15:34:03 +02:00

Add gradle publish plugin task & read system envs in gradle task

This commit is contained in:
张志豪 2017-10-04 10:51:08 +08:00
parent 5017e5e4d0
commit 7e665c6b40
4 changed files with 20 additions and 2 deletions

View File

@ -10,7 +10,7 @@ before_install:
script:
- java -version
- ./gradlew -version
- ./gradlew buildPlugin --console=plain
- ./gradlew publish --console=plain
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock

View File

@ -24,6 +24,14 @@ allprojects {
updateSinceUntilBuild = false
sandboxDirectory project.rootDir.canonicalPath + "/.sandbox"
def publishPassword = "$System.env.publishPassword"
publishPlugin {
username publishUsername
password publishPassword
channels publishChannels
}
}
apply plugin: 'java'
@ -61,4 +69,12 @@ idea {
}
}
task publish() {
if (file("./publish.gradle").exists()) {
publishPlugin.execute()
} else {
buildPlugin.execute()
}
}
version = version

View File

@ -5,4 +5,6 @@ javaVersion = 1.8
kotlinVersion = 1.1.51
version = 1.0
buildNumber = SNAPSHOT
downloadIdeaSources = false
downloadIdeaSources = false
publishUsername = izhangzhihao
publishChannels = [default]

0
publish.gradle.bak Normal file
View File