Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Rename validatePlugins to validatePluginsSkipkit to avoid task name clash with Gradle 6.x #877

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
* This plugin validates that every plugin has a corresponding .properties file.
*
* <ul>
* <li>Adds 'validatePlugins' task of type {@link PluginValidatorTask}.
* <li>Adds 'validatePluginsShipkit' task of type {@link PluginValidatorTask}.
* Validates that every plugin has a corresponding .properties file.
* New task is configured as dependency of 'check' task so that when you run 'check', the plugins are validated
* </li>
* </ul>
*/
public class PluginValidationPlugin implements Plugin<Project> {

static final String VALIDATE_PLUGINS = "validatePlugins";
static final String VALIDATE_PLUGINS = "validatePluginsSkipkit";

@Override
public void apply(final Project project) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ class ShipkitJavaIntegTest extends GradleSpecification {
:updateReleaseNotes
:gitCommit
:gitTag
:api:generatePomFileForJavaLibraryPublication
:api:compileJava
:api:processResources
:api:classes
Expand All @@ -68,7 +67,6 @@ class ShipkitJavaIntegTest extends GradleSpecification {
:api:createDependencyInfoFile
:api:sourcesJar
:api:publishJavaLibraryPublicationToMavenLocal
:impl:generatePomFileForJavaLibraryPublication
:impl:compileJava
:impl:processResources
:impl:classes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ class ShipkitJavadocIntegTest extends GradleSpecification {
:updateReleaseNotes
:gitCommit
:gitTag
:api:generatePomFileForJavaLibraryPublication
:api:compileJava
:api:processResources
:api:classes
Expand All @@ -59,7 +58,6 @@ class ShipkitJavadocIntegTest extends GradleSpecification {
:api:createDependencyInfoFile
:api:sourcesJar
:api:publishJavaLibraryPublicationToMavenLocal
:impl:generatePomFileForJavaLibraryPublication
:impl:compileJava
:impl:processResources
:impl:classes
Expand Down Expand Up @@ -137,7 +135,6 @@ class ShipkitJavadocIntegTest extends GradleSpecification {
:updateReleaseNotes
:gitCommit
:gitTag
:api:generatePomFileForJavaLibraryPublication
:api:compileJava
:api:processResources
:api:classes
Expand All @@ -147,7 +144,6 @@ class ShipkitJavadocIntegTest extends GradleSpecification {
:api:createDependencyInfoFile
:api:sourcesJar
:api:publishJavaLibraryPublicationToMavenLocal
:impl:generatePomFileForJavaLibraryPublication
:impl:compileJava
:impl:processResources
:impl:classes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ abstract class GradleSpecification extends Specification implements GradleVersio

protected List<String> skippedTaskPathsGradleBugWorkaround(String output) {
//Due to https://github.com/gradle/gradle/issues/2732 no tasks are returned in dry-run mode. When fixed ".taskPaths(SKIPPED)" should be used directly
return output.readLines().findAll { it.endsWith(" SKIPPED") }.collect { it.substring(0, it.lastIndexOf(" ")) }
return output.readLines()
.findAll { it.endsWith(" SKIPPED") }
.findAll { !it.contains(":generatePom") }
.findAll { !it.contains(":generateMetadata") }
.collect { it.substring(0, it.lastIndexOf(" ")) }
}

private static String findClassesDir() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ trait GradleVersionsDeterminer {
case null:
return [currentGradleVersion()]
case QUICK_GRADLE_VERSIONS_VALUE:
return [currentGradleVersion(), "5.6", "5.0", "4.10.3", "4.0.2"].unique()
return [currentGradleVersion(), "6.5", "5.6", "5.0", "4.10.3", "4.0.2"].unique()
default:
log.warn("Unsupported $REGRESSION_TESTS_ENV_NAME value '$regressionTestsLevel' (expected '$CURRENT_GRADLE_VERSION_ONLY_VALUE' or " +
"'$QUICK_GRADLE_VERSIONS_VALUE'). Assuming '$CURRENT_GRADLE_VERSION_ONLY_VALUE'.")
Expand Down