BearND has submitted this change and it was merged.

Change subject: Hygiene: add version tagging
......................................................................


Hygiene: add version tagging

Apply gradle-release-plugin for automating library versioning.

=== Development ===
1. Dev, dev, dev, ...
2. <code>./gradlew clean build uploadArchives</code>
3. Code review.

=== Release ===
1. Merge code.
2. <code>git fetch origin master && git checkout FETCH_HEAD</code>
3. <code>./gradlew clean release</code>
4. Promote archives via web interface.
5. Push and +2 the two version bump patches.
6. Push the version tag.

Note: steps 5-6 may be performed by the plugin when the push refspec can
be specified. These steps would collapse to +2ing the version patches.

The next improvement to the release process is to automate it
sufficiently for CI.

Change-Id: I860df8b26a6331d7318eab55d1def912fd8217c9
---
M lib/build.gradle
A lib/version.txt
2 files changed, 13 insertions(+), 1 deletion(-)

Approvals:
  BearND: Verified; Looks good to me, approved



diff --git a/lib/build.gradle b/lib/build.gradle
index a3a46cc..f65a428 100644
--- a/lib/build.gradle
+++ b/lib/build.gradle
@@ -1,10 +1,16 @@
+// Specify module plugins using new 2.1+ syntax to avoid modifying
+// projects depending on this module. Plugins must appear at the start of
+// the file.
+plugins {
+    id 'ch.netzwerg.release' version '1.1.0'
+}
+
 apply plugin: 'java'
 apply from: '../deploy.gradle'
 apply from: '../config/quality.gradle'
 
 group = 'org.mediawiki.api'
 archivesBaseName = 'json'
-version = '1.3.3-SNAPSHOT'
 
 dependencies {
     compile 'org.json:json:20140107'
@@ -21,3 +27,8 @@
     sourceCompatibility = JAVA_VERSION
     targetCompatibility = JAVA_VERSION
 }
+
+release {
+    dependsOn = [uploadArchives]
+    tagPrefix = 'r/'
+}
diff --git a/lib/version.txt b/lib/version.txt
new file mode 100644
index 0000000..e6f1ab7
--- /dev/null
+++ b/lib/version.txt
@@ -0,0 +1 @@
+1.3.3-SNAPSHOT

-- 
To view, visit https://gerrit.wikimedia.org/r/226223
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I860df8b26a6331d7318eab55d1def912fd8217c9
Gerrit-PatchSet: 6
Gerrit-Project: apps/android/java-mwapi
Gerrit-Branch: master
Gerrit-Owner: Niedzielski <[email protected]>
Gerrit-Reviewer: BearND <[email protected]>
Gerrit-Reviewer: Dbrant <[email protected]>
Gerrit-Reviewer: Mholloway <[email protected]>
Gerrit-Reviewer: Niedzielski <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to