-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathRakefile
35 lines (29 loc) · 836 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
require 'dotenv/tasks'
desc "Show current version"
task :version do
sh "./gradlew version"
end
desc "Bump major version"
task :bump_major do
sh "./gradlew bumpMajor"
sh "./gradlew genReadMe"
end
desc "Bump minor version"
task :bump_minor do
sh "./gradlew bumpMinor"
sh "./gradlew genReadMe"
end
desc "Bump patch version"
task :bump_patch do
sh "./gradlew bumpPatch"
sh "./gradlew genReadMe"
end
desc "Rebuild this project"
task :build do
sh "./gradlew clean build"
end
desc "Upload this library to bintray"
task upload: [:build, :dotenv] do
sh "./gradlew library:bintrayUpload -PbintrayUser=#{ENV["BINTRAY_USERNAME"]} -PbintrayKey=#{ENV["BINTRAY_API_KEY"]} -PdryRun=false"
sh "./gradlew compiler:bintrayUpload -PbintrayUser=#{ENV["BINTRAY_USERNAME"]} -PbintrayKey=#{ENV["BINTRAY_API_KEY"]} -PdryRun=false"
end