Skip to content

Commit f1b42a7

Browse files
authored
Update Dependabot and Gradle files for Dependabot (#128)
This commit lays the foundation for dependabot to better manage version updates in the future. Specifically, there were 3 issues addressed in this PR: - Gradle build files were using set() instead of = which causes dependabot to miss upgrading the dependency - Gradle build files were specifying the version of io.spring.dpeendency-management which necessitated logic in the dependabot config, which was not working correctly - Dependabot was not using groups to limit the number of PRs sent for a given version update After this update Dependabot should be able to ignore all patch versions going forward for Vaadin. This commit also updates the Spring Boot and Vaadin versions to the latest patch releases.
1 parent 25c51e5 commit f1b42a7

File tree

6 files changed

+31
-36
lines changed

6 files changed

+31
-36
lines changed

.github/dependabot.yml

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,32 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "maven"
4-
directory: "/initial/"
5-
ignore:
6-
- dependency-name: "*"
7-
update-types: ["version-update:semver-patch"]
8-
schedule:
9-
interval: "monthly"
10-
target-branch: "main"
11-
12-
- package-ecosystem: "gradle"
13-
directory: "/initial/"
14-
ignore:
15-
- dependency-name: "org.springframework.*"
16-
update-types: ["version-update:semver-patch"]
17-
- dependency-name: "com.vaadin.*"
18-
update-types: ["version-update:semver-patch"]
19-
schedule:
20-
interval: "monthly"
21-
target-branch: "main"
223

234
- package-ecosystem: "maven"
24-
directory: "/complete/"
5+
directories:
6+
- "/initial"
7+
- "/complete"
258
ignore:
269
- dependency-name: "*"
2710
update-types: ["version-update:semver-patch"]
2811
schedule:
2912
interval: "monthly"
3013
target-branch: "main"
14+
groups:
15+
guide-dependencies-maven:
16+
patterns:
17+
- "*"
3118

3219
- package-ecosystem: "gradle"
33-
directory: "/complete/"
20+
directories:
21+
- "/initial"
22+
- "/complete"
3423
ignore:
35-
- dependency-name: "org.springframework.*"
36-
update-types: ["version-update:semver-patch"]
37-
- dependency-name: "com.vaadin.*"
24+
- dependency-name: "*"
3825
update-types: ["version-update:semver-patch"]
3926
schedule:
4027
interval: "monthly"
4128
target-branch: "main"
29+
groups:
30+
guide-dependencies-gradle:
31+
patterns:
32+
- "*"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ dependency-reduced-pom.xml
3131
README.html
3232
initial/frontend/
3333
complete/frontend/
34+
initial/src/main/frontend/
35+
complete/src/main/frontend/

complete/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
plugins {
22
id 'java'
3-
id 'org.springframework.boot' version '3.3.0'
4-
id 'io.spring.dependency-management' version '1.1.5'
5-
id 'com.vaadin' version '24.4.1'
3+
id 'org.springframework.boot' version '3.3.1'
4+
id 'com.vaadin' version '24.4.4'
65
}
76

7+
apply plugin: 'io.spring.dependency-management'
8+
89
group = 'com.example'
910
version = '0.0.1-SNAPSHOT'
1011
sourceCompatibility = '17'
@@ -14,7 +15,7 @@ repositories {
1415
}
1516

1617
ext {
17-
set('vaadinVersion', "24.4.1")
18+
vaadinVersion = '24.4.4'
1819
}
1920

2021
dependencies {

complete/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.3.0</version>
9+
<version>3.3.1</version>
1010
<relativePath/> <!-- lookup parent from repository -->
1111
</parent>
1212
<groupId>com.example</groupId>
@@ -17,7 +17,7 @@
1717

1818
<properties>
1919
<java.version>17</java.version>
20-
<vaadin.version>24.4.1</vaadin.version>
20+
<vaadin.version>24.4.4</vaadin.version>
2121
</properties>
2222

2323
<dependencies>

initial/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
plugins {
22
id 'java'
3-
id 'org.springframework.boot' version '3.3.0'
4-
id 'io.spring.dependency-management' version '1.1.5'
5-
id 'com.vaadin' version '24.4.1'
3+
id 'org.springframework.boot' version '3.3.1'
4+
id 'com.vaadin' version '24.4.4'
65
}
76

7+
apply plugin: 'io.spring.dependency-management'
8+
89
group = 'com.example'
910
version = '0.0.1-SNAPSHOT'
1011
sourceCompatibility = '17'
@@ -14,7 +15,7 @@ repositories {
1415
}
1516

1617
ext {
17-
set('vaadinVersion', "24.4.1")
18+
vaadinVersion = '24.4.4'
1819
}
1920

2021
dependencies {

initial/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.3.0</version>
9+
<version>3.3.1</version>
1010
<relativePath/> <!-- lookup parent from repository -->
1111
</parent>
1212
<groupId>com.example</groupId>
@@ -17,7 +17,7 @@
1717

1818
<properties>
1919
<java.version>17</java.version>
20-
<vaadin.version>24.4.1</vaadin.version>
20+
<vaadin.version>24.4.4</vaadin.version>
2121
</properties>
2222

2323
<dependencies>

0 commit comments

Comments
 (0)