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:
parent
5017e5e4d0
commit
7e665c6b40
@ -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
|
||||
|
16
build.gradle
16
build.gradle
@ -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
|
||||
|
@ -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
0
publish.gradle.bak
Normal file
Loading…
Reference in New Issue
Block a user