Skip to content

Commit

Permalink
Bring up to date App Engine API 1.9.63
Browse files Browse the repository at this point in the history
  • Loading branch information
codeconsole committed May 11, 2018
1 parent 2c74016 commit fe87bbf
Show file tree
Hide file tree
Showing 25 changed files with 19 additions and 737 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ out
.classpath
.project
.settings
.DS_Store
website/war/api
website/war/WEB-INF/classes
website/war/WEB-INF/lib
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ allprojects {
}


version = '2.2.1-SNAPSHOT'
version = '2.3.0-SNAPSHOT'
group = 'org.gaelyk'
}

Expand Down
10 changes: 5 additions & 5 deletions common.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project.ext.gaelykGroovyVersion = '2.4.7'
project.ext.gaelykGroovyVersion = '2.4.15'
project.ext.gaelykSpockVersion = '1.0-groovy-2.4'
project.ext.gaelykAppEngineVersion = '1.9.40'
project.ext.gaelykLatestVersion = '2.2.0'
project.ext.gaelykAppEngineVersion = '1.9.63'
project.ext.gaelykLatestVersion = '2.3.0-SNAPSHOT'
project.ext.gaelykSpockLatestVersion = '0.4'
project.ext.gaelykGradleVersion = '2.14.1'

Expand All @@ -17,8 +17,8 @@ apply plugin: 'groovy'
apply plugin: 'eclipse'
apply plugin: 'idea'

sourceCompatibility = 1.7
targetCompatibility = 1.7
sourceCompatibility = 1.8
targetCompatibility = 1.8

task wrapper(type: Wrapper) {
gradleVersion = gaelykGradleVersion
Expand Down
1 change: 1 addition & 0 deletions core/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ WEB-INF
*.ipr
*.iws
target
.DS_Store
7 changes: 0 additions & 7 deletions core/src/main/groovyx/gaelyk/GaelykBindingEnhancer.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ import com.google.appengine.api.oauth.OAuthServiceFactory
import com.google.appengine.api.urlfetch.URLFetchServiceFactory
import com.google.appengine.api.users.UserServiceFactory
import com.google.appengine.api.utils.SystemProperty
import com.google.appengine.api.xmpp.XMPPServiceFactory

import groovyx.gaelyk.logging.LoggerAccessor
import com.google.appengine.api.channel.ChannelServiceFactory
import com.google.appengine.api.LifecycleManager
import com.google.appengine.api.users.User
import com.google.appengine.api.prospectivesearch.ProspectiveSearchServiceFactory
Expand Down Expand Up @@ -69,9 +67,6 @@ class GaelykBindingEnhancer {
binding.setVariable("defaultQueue", QueueFactory.defaultQueue)
binding.setVariable("queues", getQueues())

// New in GAE SDK 1.2.5: XMPP support
binding.setVariable("xmpp", XMPPServiceFactory.XMPPService)

// Tells whether the application is running in local development mode
// or is deployed on Google's cloud
binding.setVariable("localMode", getLocalMode())
Expand All @@ -93,8 +88,6 @@ class GaelykBindingEnhancer {
// Capabilities service to know the status of the various GAE services
binding.setVariable("capabilities", CapabilitiesServiceFactory.capabilitiesService)

// Channel service in SDK 1.4.0 for Comet-style applications
binding.setVariable("channel", ChannelServiceFactory.channelService)

// Backend service and Lifecycle manager in SDK 1.5.0
binding.setVariable("lifecycle", LifecycleManager.instance)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import com.google.appengine.api.blobstore.BlobstoreService
import com.google.appengine.api.blobstore.BlobstoreServiceFactory
import com.google.appengine.api.capabilities.CapabilitiesService
import com.google.appengine.api.capabilities.CapabilitiesServiceFactory
import com.google.appengine.api.channel.ChannelService
import com.google.appengine.api.channel.ChannelServiceFactory
import com.google.appengine.api.datastore.DatastoreService
import com.google.appengine.api.datastore.DatastoreServiceFactory
import com.google.appengine.api.mail.MailService
Expand All @@ -37,8 +35,6 @@ import com.google.appengine.api.urlfetch.URLFetchServiceFactory
import com.google.appengine.api.users.User
import com.google.appengine.api.users.UserService
import com.google.appengine.api.users.UserServiceFactory
import com.google.appengine.api.xmpp.XMPPService
import com.google.appengine.api.xmpp.XMPPServiceFactory
import groovy.transform.CompileStatic
import groovyx.gaelyk.logging.LoggerAccessor
import org.codehaus.groovy.ast.ASTNode
Expand Down Expand Up @@ -89,11 +85,8 @@ class GaelykBindingsTransformation implements ASTTransformation {
addGetterIfNotExists(parent, ImagesServiceWrapper, "getImages", ImagesServiceWrapper, "getInstance")
addGetterIfNotExists(parent, UserService, "getUsers", UserServiceFactory, "getUserService")
addGetterIfNotExists(parent, Queue, "getDefaultQueue", QueueFactory, "getDefaultQueue")
addGetterIfNotExists(parent, XMPPService, "getXmpp", XMPPServiceFactory, "getXMPPService")
addGetterIfNotExists(parent, BlobstoreService, "getBlobstore", BlobstoreServiceFactory, "getBlobstoreService")
addGetterIfNotExists(parent, OAuthService, "getOauth", OAuthServiceFactory, "getOAuthService")
addGetterIfNotExists(parent, CapabilitiesService, "getCapabilities", CapabilitiesServiceFactory, "getCapabilitiesService")
addGetterIfNotExists(parent, ChannelService, "getChannel", ChannelServiceFactory, "getChannelService")
addGetterIfNotExists(parent, LifecycleManager, "getLifecycle", LifecycleManager, "getInstance")
addGetterIfNotExists(parent, ProspectiveSearchService, "getProspectiveSearch", ProspectiveSearchService, "getProspectiveSearchService")
addGetterIfNotExists(parent, User, "getUser", GaelykBindingEnhancer, "getCurrentUser")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static Entity convert(DatastoreEntity<?> dsEntity){
for (String propertyName : dsEntity.getDatastoreIndexedProperties()) {
Object value = dsEntity.getProperty(propertyName);
try {
entity.setProperty(propertyName, transformValueForStorage(dsEntity.getProperty(propertyName)));
entity.setProperty(propertyName, transformValueForStorage(value));
} catch (Exception e) {
throw new IllegalArgumentException("Problem setting value '" + value + "' to indexed property '" + propertyName + "' of entity "
+ dsEntity.getClass().getSimpleName(), e);
Expand Down
37 changes: 0 additions & 37 deletions core/src/main/groovyx/gaelyk/extensions/ChannelExtensions.java

This file was deleted.

Loading

0 comments on commit fe87bbf

Please sign in to comment.