Skip to content

Commit

Permalink
Configure dependabot to update dependency version
Browse files Browse the repository at this point in the history
In addtion to adding a dependabot configuration file, this commit
also modifies gradle files so that dependabot will find and update
the versions correctly. Jenkins references were removed as the
project now uses GitHub Actions for CI.
  • Loading branch information
Robert McNees committed Jul 30, 2024
1 parent 5f81322 commit 31e0560
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 88 deletions.
36 changes: 36 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: 2
updates:

- package-ecosystem: "maven"
directories:
- "/initial/configuration-client"
- "/initial/configuration-service"
- "/complete/configuration-client"
- "/complete/configuration-service"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
schedule:
interval: "monthly"
target-branch: "main"
groups:
guide-dependencies-maven:
patterns:
- "*"

- package-ecosystem: "gradle"
directories:
- "/initial/configuration-client"
- "/initial/configuration-service"
- "/complete/configuration-client"
- "/complete/configuration-service"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
schedule:
interval: "monthly"
target-branch: "main"
groups:
guide-dependencies-gradle:
patterns:
- "*"
44 changes: 0 additions & 44 deletions Jenkinsfile

This file was deleted.

5 changes: 3 additions & 2 deletions complete/configuration-client/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
plugins {
id 'org.springframework.boot' version '3.3.0'
id 'io.spring.dependency-management' version '1.1.5'
id 'java'
}

apply plugin: 'io.spring.dependency-management'

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
Expand All @@ -14,7 +15,7 @@ repositories {
}

ext {
set('springCloudVersion', "2023.0.2")
springCloudVersion = '2023.0.2'
}

dependencies {
Expand Down
5 changes: 3 additions & 2 deletions complete/configuration-service/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
plugins {
id 'org.springframework.boot' version '3.3.0'
id 'io.spring.dependency-management' version '1.1.5'
id 'java'
}

apply plugin: 'io.spring.dependency-management'

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
Expand All @@ -14,7 +15,7 @@ repositories {
}

ext {
set('springCloudVersion', "2023.0.2")
springCloudVersion = '2023.0.2'
}

dependencies {
Expand Down
5 changes: 3 additions & 2 deletions initial/configuration-client/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
plugins {
id 'org.springframework.boot' version '3.3.0'
id 'io.spring.dependency-management' version '1.1.5'
id 'java'
}

apply plugin: 'io.spring.dependency-management'

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
Expand All @@ -14,7 +15,7 @@ repositories {
}

ext {
set('springCloudVersion', "2023.0.2")
springCloudVersion = '2023.0.2'
}

dependencies {
Expand Down
5 changes: 3 additions & 2 deletions initial/configuration-service/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
plugins {
id 'org.springframework.boot' version '3.3.0'
id 'io.spring.dependency-management' version '1.1.5'
id 'java'
}

apply plugin: 'io.spring.dependency-management'

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
Expand All @@ -14,7 +15,7 @@ repositories {
}

ext {
set('springCloudVersion', "2023.0.2")
springCloudVersion = '2023.0.2'
}

dependencies {
Expand Down
36 changes: 0 additions & 36 deletions test/run.sh

This file was deleted.

0 comments on commit 31e0560

Please sign in to comment.