-
Notifications
You must be signed in to change notification settings - Fork 40
Conversation
Change from dynamic extension populating to the usual way of static extensions and nested configuration objects for core flex and standard features. The experimental source-context plugin still adds to the appengine configuration dynamically.
@@ -41,6 +42,7 @@ | |||
private String version; | |||
private File appEngineDirectory; | |||
|
|||
@Inject |
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.
What does this @Inject
do?
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.
Oh yeah I accidentally left that in there, with new versions of gradle, if you created an extension from the root, gradle would ask you to inject the params instead of passing them in.
|
||
/** | ||
* Create nested configuration blocks as Extensions. Gradle 4.5 has an ObjectFactory class to deal | ||
* with this, transition to that when upgrading gradle version. |
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.
Maybe have this be in a TODO?
import org.gradle.util.GradleVersion; | ||
|
||
/** | ||
* Core plugin for App Engine, contains common tasks like deploy and show configuration Also | ||
* instantiates the "tools" extension to specify the cloud sdk path. | ||
*/ | ||
public class AppEngineCorePlugin implements Plugin<Project> { | ||
public class AppEngineCorePluginConfiguration { |
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.
APP_ENGINE_TASK_GROUP
seems to be unused now.
@@ -42,27 +40,27 @@ | |||
public static final String STAGE_EXTENSION = "stage"; |
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.
STAGE_EXTENSION seems to be unused now.
|
||
/** Create nested configuration blocks as Extensions. */ | ||
public void createSubExtensions(Project project) { | ||
tools = ((ExtensionAware) this).getExtensions().create("tools", ToolsExtension.class, project); |
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.
Might be good to place "tools"
, "deploy"
, and "stage"
in constants.
Great to see this being merged. Is there an ETA on the release of the next version of the plugin including this? |
I would say by end of week. |
Change from dynamic extension populating to the usual way
of static extensions and nested configuration objects for core
flex and standard features.
The experimental source-context plugin still adds to the appengine
configuration dynamically.