org.gradle.api.ProjectConfigurationException Java Examples

The following examples show how to use org.gradle.api.ProjectConfigurationException. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DevAppServerRunTask.java    From app-gradle-plugin with Apache License 2.0 5 votes vote down vote up
/** Task entrypoint : run the devappserver (blocking). */
@TaskAction
public void runAction() throws AppEngineException, ProjectConfigurationException {
  devServers
      .newDevAppServer(CloudSdkOperations.getDefaultHandler(getLogger()))
      .run(runConfig.toRunConfiguration());
}
 
Example #2
Source File: RouterModulePlugin.java    From EasyRouter with Apache License 2.0 5 votes vote down vote up
@Override
public void apply(Project project) {
    BaseExtension androidExtension = (BaseExtension) project.getExtensions().getByName("android");

    if (project.getPlugins().findPlugin("com.android.application") != null) {
        androidExtension.registerTransform(new ApplicationTransform());
    } else if (project.getPlugins().findPlugin("com.android.library") != null) {
        androidExtension.registerTransform(new LibraryTransform(project));
    } else {
        throw new ProjectConfigurationException("Need android application/library plugin to be applied first", null);
    }
}
 
Example #3
Source File: LifecycleProjectEvaluator.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
private void addConfigurationFailure(ProjectInternal project, ProjectStateInternal state, Exception e) {
    ProjectConfigurationException failure = new ProjectConfigurationException(String.format("A problem occurred configuring %s.", project), e);
    state.executed(failure);
}
 
Example #4
Source File: LifecycleProjectEvaluator.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
private void addConfigurationFailure(ProjectInternal project, ProjectStateInternal state, Exception e) {
    ProjectConfigurationException failure = new ProjectConfigurationException(String.format("A problem occurred configuring %s.", project), e);
    state.executed(failure);
}
 
Example #5
Source File: RunExtension.java    From app-gradle-plugin with Apache License 2.0 4 votes vote down vote up
public void setServerVersion(String serverVersion) throws ProjectConfigurationException {
  this.serverVersion = serverVersion;
}
 
Example #6
Source File: LifecycleProjectEvaluator.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
private void addConfigurationFailure(ProjectInternal project, ProjectStateInternal state, Exception e) {
    ProjectConfigurationException failure = new ProjectConfigurationException(String.format("A problem occurred configuring %s.", project), e);
    state.executed(failure);
}
 
Example #7
Source File: LifecycleProjectEvaluator.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
private void addConfigurationFailure(ProjectInternal project, ProjectStateInternal state, Exception e) {
    ProjectConfigurationException failure = new ProjectConfigurationException(String.format("A problem occurred configuring %s.", project), e);
    state.executed(failure);
}