You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2017/04/10 23:14:31 UTC

[14/14] cordova-coho git commit: CB-12498 : update versions (name, vscTag, and version) in gradle.build

CB-12498 : update versions (name, vscTag, and version)  in gradle.build

 This closes #144


Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/68026cde
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/68026cde
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/68026cde

Branch: refs/heads/master
Commit: 68026cde18fef9539b68b67a6cd170fb7120cada
Parents: 0d0a070
Author: Audrey So <au...@apache.org>
Authored: Mon Apr 10 11:54:38 2017 -0700
Committer: Steve Gill <st...@gmail.com>
Committed: Mon Apr 10 16:14:11 2017 -0700

----------------------------------------------------------------------
 docs/platforms-release-process.md | 12 +++---------
 src/versionutil.js                |  4 ++++
 2 files changed, 7 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/68026cde/docs/platforms-release-process.md
----------------------------------------------------------------------
diff --git a/docs/platforms-release-process.md b/docs/platforms-release-process.md
index 7833188..4cd8f64 100644
--- a/docs/platforms-release-process.md
+++ b/docs/platforms-release-process.md
@@ -345,19 +345,13 @@ Find your release here: https://dist.apache.org/repos/dist/release/cordova/
 
 ## Uploading to Bintray (Android only)
 
-1. Run the following commands:
-    cd cordova-android/framework && gradle bintrayUpload
+1. Add your bintray username and password as system variables. Your BINTRAY_USER and BINTRAY_KEY should be cordova username and key respectively. Ask the Project Management Committee (pmc) for the cordova credentials. Confirm that your key and user name are set:
 
-2. Add your bintray username and password as system variables.
-    Your BINTRAY_USER and BINTRAY_KEY should be your Bintray username and key respectively.
     echo $BINTRAY_USER 
     echo $BINTRAY_KEY 
 
-    bintray {
-        user = 'BINTRAY_USER'
-        key  = 'BINTRAY_KEY'
-        ...
-    }
+2. Run the following command:
+    (cd cordova-android/framework && gradle bintrayUpload)
 
 ## Add permanent apache release tag
 

http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/68026cde/src/versionutil.js
----------------------------------------------------------------------
diff --git a/src/versionutil.js b/src/versionutil.js
index a4b895c..6124555 100644
--- a/src/versionutil.js
+++ b/src/versionutil.js
@@ -79,6 +79,10 @@ exports.updateRepoVersion = function *updateRepoVersion(repo, version, opts) {
         if (repo.id == 'android' || repo.id == 'amazon-fireos') {
             shelljs.sed('-i', /CORDOVA_VERSION.*=.*;/, 'CORDOVA_VERSION = "' + version + '";', path.join('framework', 'src', 'org', 'apache', 'cordova', 'CordovaWebView.java'));
             shelljs.sed('-i', /VERSION.*=.*;/, 'VERSION = "' + version + '";', path.join('bin', 'templates', 'cordova', 'version'));
+            // Set build.gradle version, vcsTag, and name
+            shelljs.sed('-i', /version.*=.*/, "version = '" + version + "'", path.join('framework', 'build.gradle'));
+            shelljs.sed('-i', /vcsTag.*=.*/, "vcsTag = '" + version + "'", path.join('framework', 'build.gradle'));
+            shelljs.sed('-i', /version.{\n.*(name.*=.*)/, "version {\n            name = '" + version + "'", path.join('framework', 'build.gradle'));
         } else if (repo.id == 'ios' || repo.id == 'osx') {
             shelljs.sed('-i', /VERSION.*=.*/, 'VERSION="' + version + '";', path.join('bin', 'templates', 'scripts', 'cordova', 'version'));
         } else if (repo.id == 'blackberry') {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org