/** * Initialize the plugin bundle extension * * @param bundleExtension Plugin bundle extension to initialize * @param projectConfig Project configuration * @param project Project context */ @Defaults public void configureGradlePluginDevelopmentExtension(PluginBundleExtension bundleExtension, ProjectConfig projectConfig, ProjectContext project) { bundleExtension.setDescription(project.getDescription()); bundleExtension.setWebsite(projectConfig.getWebsiteUrl()); bundleExtension.setVcsUrl(projectConfig.getRepository().getWebsiteUrl()); for (PluginConfig plugin : bundleExtension.getPlugins()) { if (Strings.isNullOrEmpty(plugin.getDisplayName())) { plugin.setDisplayName(project.getDescription()); } } }
/** * Initialize the plugin bundle extension * * @param bundleExtension Plugin bundle extension to initialize * @param projectConfig Project configuration * @param project Project context */ @Defaults public void configureGradlePluginDevelopmentExtension(PluginBundleExtension bundleExtension, ProjectConfig projectConfig, ProjectContext project) { bundleExtension.setDescription(project.getDescription()); bundleExtension.setWebsite(projectConfig.getWebsiteUrl()); bundleExtension.setVcsUrl(projectConfig.getRepository().getWebsiteUrl()); for (PluginConfig plugin : bundleExtension.getPlugins()) { if (Strings.isNullOrEmpty(plugin.getDisplayName())) { plugin.setDisplayName(project.getDescription()); } } }
if (repository.getWebsiteUrl() == null) { LOGGER.warn("Please configure projectConfig.repository.websiteUrl");
if (repository.getWebsiteUrl() == null) { LOGGER.warn("Please configure projectConfig.repository.websiteUrl");
Text.format("scm:%s:%s", repositoryConfig.getType(), repositoryConfig.getDeveloperConnection())); Nodes.setChildValue(scm, "url", repositoryConfig.getWebsiteUrl());
Text.format("scm:%s:%s", repositoryConfig.getType(), repositoryConfig.getDeveloperConnection())); Nodes.setChildValue(scm, "url", repositoryConfig.getWebsiteUrl());