From 92de6969aa5b89955875ada9c70324a339756c66 Mon Sep 17 00:00:00 2001 From: Daz DeBoer Date: Fri, 18 Mar 2022 06:14:07 -0600 Subject: [PATCH] Configure dependabot to update Gradle plugins The test Gradle sample apps reference plugins, and it's good to keep these updated (particularly the GE plugin). Minor changes to the build scripts were required to satisfy Dependabot. --- .github/dependabot.yml | 18 ++++++++++++++++++ .../samples/kotlin-dsl/settings.gradle.kts | 2 +- __tests__/samples/no-wrapper/build.gradle | 1 + __tests__/samples/no-wrapper/settings.gradle | 2 +- 4 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 __tests__/samples/no-wrapper/build.gradle diff --git a/.github/dependabot.yml b/.github/dependabot.yml index bc98f29..df33117 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,4 +1,10 @@ version: 2 +registries: + gradle-plugin-portal: + type: maven-repository + url: https://plugins.gradle.org/m2 + username: dummy # Required by dependabot + password: dummy # Required by dependabot updates: - package-ecosystem: "npm" directory: "/" @@ -6,3 +12,15 @@ updates: interval: "daily" ignore: - dependency-name: "@types/node" + - package-ecosystem: "gradle" + directory: "__tests__/samples/kotlin-dsl" + registries: + - gradle-plugin-portal + schedule: + interval: "daily" + - package-ecosystem: "gradle" + directory: "__tests__/samples/no-wrapper" + registries: + - gradle-plugin-portal + schedule: + interval: "daily" diff --git a/__tests__/samples/kotlin-dsl/settings.gradle.kts b/__tests__/samples/kotlin-dsl/settings.gradle.kts index fe26a44..8880bd6 100644 --- a/__tests__/samples/kotlin-dsl/settings.gradle.kts +++ b/__tests__/samples/kotlin-dsl/settings.gradle.kts @@ -1,5 +1,5 @@ plugins { - id("com.gradle.enterprise") version("3.7") + id("com.gradle.enterprise") version "3.7" } gradleEnterprise { diff --git a/__tests__/samples/no-wrapper/build.gradle b/__tests__/samples/no-wrapper/build.gradle new file mode 100644 index 0000000..d875d68 --- /dev/null +++ b/__tests__/samples/no-wrapper/build.gradle @@ -0,0 +1 @@ +// Required to keep dependabot happy \ No newline at end of file diff --git a/__tests__/samples/no-wrapper/settings.gradle b/__tests__/samples/no-wrapper/settings.gradle index eea6ca9..df602fd 100644 --- a/__tests__/samples/no-wrapper/settings.gradle +++ b/__tests__/samples/no-wrapper/settings.gradle @@ -1,5 +1,5 @@ plugins { - id("com.gradle.enterprise") version("3.7") + id "com.gradle.enterprise" version "3.7" } gradleEnterprise {