-
Notifications
You must be signed in to change notification settings - Fork 40
Conversation
loosebazooka
commented
Apr 6, 2017
•
edited
Loading
edited
- Services replaces AppYamls (setting AppYamls reveals deprecation warning)
- By default, we use dev appserver v1
- users can swap between v1 and v2 by setting
String serverVersion = run.getServerVersion(); | ||
validator.validateServerVersion(serverVersion); | ||
|
||
if (V1.equals(serverVersion)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use switch
instead
|
||
DefaultStopConfiguration stop = new DefaultStopConfiguration(); | ||
|
||
if (V1.equals(serverVersion)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use switch
instead
void validateServerVersion(String serverVersion) throws ProjectConfigurationException { | ||
if (!SERVER_VERSIONS.contains(serverVersion)) { | ||
throw new ProjectConfigurationException( | ||
"Invalid serverVersion '" + serverVersion + "' please use " + SERVER_VERSIONS, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use one of
@@ -76,94 +76,14 @@ public void testDeploy_taskTree() throws IOException { | |||
.withArguments("appengineDeploy", "--dry-run") | |||
.build(); | |||
|
|||
final List<String> expected = ImmutableList | |||
.of(":compileJava", ":processResources", ":classes", ":war", ":explodeWar", ":assemble", | |||
final List<String> expected = Arrays |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont' know? I'll change this back
public TemporaryFolder tmpDir = new TemporaryFolder(); | ||
|
||
@Rule | ||
public ExpectedException exception = ExpectedException.none(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you don't expect exceptions, they you don't need this field.
return null; | ||
@Deprecated | ||
public void setAppYamls(Object appYamls) { | ||
project.getLogger().warn("'appYamls' is deprecated, this parameter will set 'services'. Please use 'services' in the future."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can leave out please
.
- Services replaces AppYamls (setting AppYamls reveals deprecation warning) - By default, we use dev appserver v1 - users can swap between v1 and v2 by setting appengine { run { serverVersion = "1" or "2-alpha" } }