From 62330833da3d7e3d7c49e5cd1b8e3aac14ff9b77 Mon Sep 17 00:00:00 2001 From: Freddy Boucher Date: Sat, 8 Jul 2017 09:31:31 +1000 Subject: [PATCH 1/4] Use the new gwt-maven-plugin (by Thomas Broyer) to build the JAR And use recommended project layout: move super sources under /super --- pom.xml | 41 ++++--------------- .../api/datastore/AppIdNamespace.java | 0 .../google/appengine/api/datastore/Blob.java | 0 .../appengine/api/datastore/Category.java | 0 .../appengine/api/datastore/Cursor.java | 0 .../api/datastore/DataTypeUtils.java | 0 .../google/appengine/api/datastore/Email.java | 0 .../datastore/EntityNotFoundException.java | 0 .../google/appengine/api/datastore/GeoPt.java | 0 .../appengine/api/datastore/IMHandle.java | 0 .../google/appengine/api/datastore/Key.java | 0 .../appengine/api/datastore/KeyFactory.java | 0 .../datastore/Key_CustomFieldSerializer.java | 0 .../google/appengine/api/datastore/Link.java | 0 .../appengine/api/datastore/PhoneNumber.java | 0 .../api/datastore/PostalAddress.java | 0 .../appengine/api/datastore/Rating.java | 0 .../appengine/api/datastore/ShortBlob.java | 0 .../google/appengine/api/datastore/Text.java | 0 .../com/google/appengine/api/users/User.java | 0 .../apphosting/api/NamespaceResources.java | 0 .../super/com/googlecode/objectify/Key.java | 0 .../objectify/NotFoundException.java | 0 .../super/com/googlecode/objectify/Ref.java | 0 .../objectify/impl/ref/LiveRef.java | 0 .../ref/LiveRef_CustomFieldSerializer.java | 0 26 files changed, 7 insertions(+), 34 deletions(-) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/datastore/AppIdNamespace.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/datastore/Blob.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/datastore/Category.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/datastore/Cursor.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/datastore/DataTypeUtils.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/datastore/Email.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/datastore/EntityNotFoundException.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/datastore/GeoPt.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/datastore/IMHandle.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/datastore/Key.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/datastore/KeyFactory.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/datastore/Key_CustomFieldSerializer.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/datastore/Link.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/datastore/PhoneNumber.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/datastore/PostalAddress.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/datastore/Rating.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/datastore/ShortBlob.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/datastore/Text.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/appengine/api/users/User.java (100%) rename src/main/{resources/com/google/appengine => }/super/com/google/apphosting/api/NamespaceResources.java (100%) rename src/main/{resources/com/googlecode/objectify => }/super/com/googlecode/objectify/Key.java (100%) rename src/main/{resources/com/googlecode/objectify => }/super/com/googlecode/objectify/NotFoundException.java (100%) rename src/main/{resources/com/googlecode/objectify => }/super/com/googlecode/objectify/Ref.java (100%) rename src/main/{resources/com/googlecode/objectify => }/super/com/googlecode/objectify/impl/ref/LiveRef.java (100%) rename src/main/{resources/com/googlecode/objectify => }/super/com/googlecode/objectify/impl/ref/LiveRef_CustomFieldSerializer.java (100%) diff --git a/pom.xml b/pom.xml index 90ebb03..b0aa0a9 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ Objectify GWT Use Google App Engine datastore and Objectify classes with GWT - jar + gwt-lib http://code.google.com/p/objectify-gwt/ scm:git:https://code.google.com/p/objectify-gwt/ @@ -75,44 +75,17 @@ - - - src/main/java - - **/NotFoundException.java - **/*_CustomFieldSerializer.java - - - - com/googlecode/objectify/impl/ref/LiveRef_CustomFieldSerializer.java - - - - src/main/resources - - - - maven-compiler-plugin - 3.0 + net.ltgt.gwt.maven + gwt-maven-plugin + 1.0-rc-8 + true - 1.7 - 1.7 + com.googlecode.objectify.Objectify + true - - org.apache.maven.plugins - maven-source-plugin - 2.2.1 - - - - jar - - - - org.apache.maven.plugins maven-javadoc-plugin diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/AppIdNamespace.java b/src/main/super/com/google/appengine/api/datastore/AppIdNamespace.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/AppIdNamespace.java rename to src/main/super/com/google/appengine/api/datastore/AppIdNamespace.java diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/Blob.java b/src/main/super/com/google/appengine/api/datastore/Blob.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/Blob.java rename to src/main/super/com/google/appengine/api/datastore/Blob.java diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/Category.java b/src/main/super/com/google/appengine/api/datastore/Category.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/Category.java rename to src/main/super/com/google/appengine/api/datastore/Category.java diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/Cursor.java b/src/main/super/com/google/appengine/api/datastore/Cursor.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/Cursor.java rename to src/main/super/com/google/appengine/api/datastore/Cursor.java diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/DataTypeUtils.java b/src/main/super/com/google/appengine/api/datastore/DataTypeUtils.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/DataTypeUtils.java rename to src/main/super/com/google/appengine/api/datastore/DataTypeUtils.java diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/Email.java b/src/main/super/com/google/appengine/api/datastore/Email.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/Email.java rename to src/main/super/com/google/appengine/api/datastore/Email.java diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/EntityNotFoundException.java b/src/main/super/com/google/appengine/api/datastore/EntityNotFoundException.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/EntityNotFoundException.java rename to src/main/super/com/google/appengine/api/datastore/EntityNotFoundException.java diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/GeoPt.java b/src/main/super/com/google/appengine/api/datastore/GeoPt.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/GeoPt.java rename to src/main/super/com/google/appengine/api/datastore/GeoPt.java diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/IMHandle.java b/src/main/super/com/google/appengine/api/datastore/IMHandle.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/IMHandle.java rename to src/main/super/com/google/appengine/api/datastore/IMHandle.java diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/Key.java b/src/main/super/com/google/appengine/api/datastore/Key.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/Key.java rename to src/main/super/com/google/appengine/api/datastore/Key.java diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/KeyFactory.java b/src/main/super/com/google/appengine/api/datastore/KeyFactory.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/KeyFactory.java rename to src/main/super/com/google/appengine/api/datastore/KeyFactory.java diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/Key_CustomFieldSerializer.java b/src/main/super/com/google/appengine/api/datastore/Key_CustomFieldSerializer.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/Key_CustomFieldSerializer.java rename to src/main/super/com/google/appengine/api/datastore/Key_CustomFieldSerializer.java diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/Link.java b/src/main/super/com/google/appengine/api/datastore/Link.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/Link.java rename to src/main/super/com/google/appengine/api/datastore/Link.java diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/PhoneNumber.java b/src/main/super/com/google/appengine/api/datastore/PhoneNumber.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/PhoneNumber.java rename to src/main/super/com/google/appengine/api/datastore/PhoneNumber.java diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/PostalAddress.java b/src/main/super/com/google/appengine/api/datastore/PostalAddress.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/PostalAddress.java rename to src/main/super/com/google/appengine/api/datastore/PostalAddress.java diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/Rating.java b/src/main/super/com/google/appengine/api/datastore/Rating.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/Rating.java rename to src/main/super/com/google/appengine/api/datastore/Rating.java diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/ShortBlob.java b/src/main/super/com/google/appengine/api/datastore/ShortBlob.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/ShortBlob.java rename to src/main/super/com/google/appengine/api/datastore/ShortBlob.java diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/Text.java b/src/main/super/com/google/appengine/api/datastore/Text.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/datastore/Text.java rename to src/main/super/com/google/appengine/api/datastore/Text.java diff --git a/src/main/resources/com/google/appengine/super/com/google/appengine/api/users/User.java b/src/main/super/com/google/appengine/api/users/User.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/appengine/api/users/User.java rename to src/main/super/com/google/appengine/api/users/User.java diff --git a/src/main/resources/com/google/appengine/super/com/google/apphosting/api/NamespaceResources.java b/src/main/super/com/google/apphosting/api/NamespaceResources.java similarity index 100% rename from src/main/resources/com/google/appengine/super/com/google/apphosting/api/NamespaceResources.java rename to src/main/super/com/google/apphosting/api/NamespaceResources.java diff --git a/src/main/resources/com/googlecode/objectify/super/com/googlecode/objectify/Key.java b/src/main/super/com/googlecode/objectify/Key.java similarity index 100% rename from src/main/resources/com/googlecode/objectify/super/com/googlecode/objectify/Key.java rename to src/main/super/com/googlecode/objectify/Key.java diff --git a/src/main/resources/com/googlecode/objectify/super/com/googlecode/objectify/NotFoundException.java b/src/main/super/com/googlecode/objectify/NotFoundException.java similarity index 100% rename from src/main/resources/com/googlecode/objectify/super/com/googlecode/objectify/NotFoundException.java rename to src/main/super/com/googlecode/objectify/NotFoundException.java diff --git a/src/main/resources/com/googlecode/objectify/super/com/googlecode/objectify/Ref.java b/src/main/super/com/googlecode/objectify/Ref.java similarity index 100% rename from src/main/resources/com/googlecode/objectify/super/com/googlecode/objectify/Ref.java rename to src/main/super/com/googlecode/objectify/Ref.java diff --git a/src/main/resources/com/googlecode/objectify/super/com/googlecode/objectify/impl/ref/LiveRef.java b/src/main/super/com/googlecode/objectify/impl/ref/LiveRef.java similarity index 100% rename from src/main/resources/com/googlecode/objectify/super/com/googlecode/objectify/impl/ref/LiveRef.java rename to src/main/super/com/googlecode/objectify/impl/ref/LiveRef.java diff --git a/src/main/resources/com/googlecode/objectify/super/com/googlecode/objectify/impl/ref/LiveRef_CustomFieldSerializer.java b/src/main/super/com/googlecode/objectify/impl/ref/LiveRef_CustomFieldSerializer.java similarity index 100% rename from src/main/resources/com/googlecode/objectify/super/com/googlecode/objectify/impl/ref/LiveRef_CustomFieldSerializer.java rename to src/main/super/com/googlecode/objectify/impl/ref/LiveRef_CustomFieldSerializer.java From 9cf1f68bd7843f14b95820975776b1b65768ebde Mon Sep 17 00:00:00 2001 From: Freddy Boucher Date: Sat, 8 Jul 2017 10:15:25 +1000 Subject: [PATCH 2/4] Update objectify dependency to 5.1.21 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b0aa0a9..f44fc09 100644 --- a/pom.xml +++ b/pom.xml @@ -117,7 +117,7 @@ com.googlecode.objectify objectify - 5.0.3 + 5.1.21 From f48eb119fe797cec132515425817061eb95cd46e Mon Sep 17 00:00:00 2001 From: Freddy Boucher Date: Sat, 8 Jul 2017 10:16:01 +1000 Subject: [PATCH 3/4] Update gwt-user dependency to 2.8.1 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index f44fc09..c57c94d 100644 --- a/pom.xml +++ b/pom.xml @@ -124,7 +124,7 @@ com.google.gwt gwt-user - 2.6.1 + 2.8.1 compile true From 6c6847bf9ca33a49e0467f533b03bf5ee59ba9da Mon Sep 17 00:00:00 2001 From: Freddy Boucher Date: Sat, 8 Jul 2017 10:17:21 +1000 Subject: [PATCH 4/4] Get rid of unused Test dependencies --- pom.xml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/pom.xml b/pom.xml index c57c94d..bf31af0 100644 --- a/pom.xml +++ b/pom.xml @@ -154,20 +154,6 @@ ${gae.version} test - - - - org.testng - testng - 6.8 - test - - - org.mockito - mockito-core - 1.9.5 - test - \ No newline at end of file