Adding Google storage repository for Maven dependencies

People are reporting that Gerrit API dependencies cannot be found
without having to build Gerrit itself.
This change allows them to rely on GoogleStorage repository
and avoid to build Gerrit up-front.

Additionally the direct fetching of the Gerrit 2.8 released API
highlighted a problem in the Change constructor that has now been
fixed.

Change-Id: I8fec5c4e220b85ae4703db1fc70fd66abc2d57eb
diff --git a/github-oauth/pom.xml b/github-oauth/pom.xml
index f3acf76..54c47b6 100644
--- a/github-oauth/pom.xml
+++ b/github-oauth/pom.xml
@@ -21,7 +21,7 @@
   <parent>
     <groupId>com.googlesource.gerrit.plugins.github</groupId>
     <artifactId>github-parent</artifactId>
-    <version>2.8-SNAPSHOT</version>
+    <version>2.8</version>
   </parent>
   <artifactId>github-oauth</artifactId>
   <name>Gerrit Code Review - GitHub OAuth login</name>
diff --git a/github-plugin/pom.xml b/github-plugin/pom.xml
index a40b2fc..80cadd9 100644
--- a/github-plugin/pom.xml
+++ b/github-plugin/pom.xml
@@ -20,7 +20,7 @@
   <parent>
     <artifactId>github-parent</artifactId>
     <groupId>com.googlesource.gerrit.plugins.github</groupId>
-    <version>2.8-SNAPSHOT</version>
+    <version>2.8</version>
   </parent>
 
   <artifactId>github-plugin</artifactId>
@@ -51,6 +51,9 @@
               <exclude>commons-lang:*:*</exclude>
               <exclude>commons-codec:*:*</exclude>
               <exclude>commons-io:*:*</exclude>
+              <exclude>org.apache.httpcomponents:*:*</exclude>
+              <exclude>commons-logging:*:*</exclude>
+              <exclude>commons-collections:*:*</exclude>
               <exclude>com.google.guava:*</exclude>
               <exclude>org.apache.velocity:velocity:*</exclude>
             </excludes>
diff --git a/github-plugin/src/main/java/com/googlesrouce/gerrit/plugins/github/git/PullRequestCreateChange.java b/github-plugin/src/main/java/com/googlesrouce/gerrit/plugins/github/git/PullRequestCreateChange.java
index 4a8943c..cd2a793 100644
--- a/github-plugin/src/main/java/com/googlesrouce/gerrit/plugins/github/git/PullRequestCreateChange.java
+++ b/github-plugin/src/main/java/com/googlesrouce/gerrit/plugins/github/git/PullRequestCreateChange.java
@@ -15,6 +15,8 @@
 package com.googlesrouce.gerrit.plugins.github.git;
 
 import java.io.IOException;
+import java.sql.Timestamp;
+import java.util.Date;
 import java.util.Iterator;
 import java.util.List;
 
@@ -215,7 +217,8 @@
       InvalidChangeOperationException, IOException {
     Change change =
         new Change(changeKey, new Change.Id(db.nextChangeId()),
-            pullRequestOwner, new Branch.NameKey(project, destRef.getName()));
+            pullRequestOwner, new Branch.NameKey(project, destRef.getName()),
+            new Timestamp(System.currentTimeMillis()));
     if (topic != null) {
       change.setTopic(topic);
     }
@@ -267,7 +270,8 @@
       throws OrmException {
     ChangeMessage cmsg =
         new ChangeMessage(new ChangeMessage.Key(dest.getId(),
-            ChangeUtil.messageUUID(db)), pullRequestAuthorId, null);
+            ChangeUtil.messageUUID(db)), pullRequestAuthorId,
+            new Timestamp(System.currentTimeMillis()), null);
     cmsg.setMessage(pullRequestMessage);
     return cmsg;
   }
diff --git a/pom.xml b/pom.xml
index 4455528..ebf995a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -252,5 +252,9 @@
       <id>repo.jenkins-ci.org</id>
       <url>http://repo.jenkins-ci.org/public/</url>
     </repository>
+    <repository>
+      <id>google</id>
+      <url>https://gerrit-api.commondatastorage.googleapis.com/release</url>
+    </repository>
   </repositories>
 </project>