Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Convert to static extension building #192

Merged
merged 6 commits into from
Feb 12, 2018
Merged

Convert to static extension building #192

merged 6 commits into from
Feb 12, 2018

Conversation

loosebazooka
Copy link
Contributor

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.

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.
@loosebazooka loosebazooka requested a review from coollog February 5, 2018 18:04
@@ -41,6 +42,7 @@
private String version;
private File appEngineDirectory;

@Inject
Copy link
Contributor

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?

Copy link
Contributor Author

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.
Copy link
Contributor

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 {
Copy link
Contributor

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";
Copy link
Contributor

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);
Copy link
Contributor

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.

@loosebazooka loosebazooka merged commit e7aec8a into master Feb 12, 2018
@marceloverdijk
Copy link

Great to see this being merged. Is there an ETA on the release of the next version of the plugin including this?

@loosebazooka
Copy link
Contributor Author

I would say by end of week.

@loosebazooka loosebazooka deleted the staticExtensions branch February 13, 2018 16:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants