Skip to content

Commit

Permalink
Add dependabot configuration
Browse files Browse the repository at this point in the history
To enable dependabot confgiuration, the dependency-management plugin
is now being managed by Boot. Additionally, the Spring Cloud
version number is set using = instead of set method so dependabot
can recognize the version.
  • Loading branch information
Robert McNees committed Jul 23, 2024
1 parent 85b010b commit fbf920e
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 88 deletions.
32 changes: 32 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: 2
updates:

- package-ecosystem: "maven"
directories:
- "/initial"
- "/complete"
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"
- "/complete"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
schedule:
interval: "monthly"
target-branch: "main"
groups:
guide-dependencies-gradle:
patterns:
- "*"
30 changes: 1 addition & 29 deletions .github/workflows/continuous-integration-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,4 @@ on:

jobs:
build:
name: Build Main Branch
runs-on: ubuntu-latest

steps:
- name: Checkout source code
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Build Initial with Maven
working-directory: ./initial
run: ./mvnw --batch-mode clean package

- name: Build Initial with Gradle
working-directory: ./initial
run: ./gradlew build

- name: Build Complete with Maven
working-directory: ./complete
run: ./mvnw --batch-mode clean package

- name: Build Complete with Gradle
working-directory: ./complete
run: ./gradlew build
uses: spring-guides/getting-started-macros/.github/workflows/build_initial_complete_maven_gradle.yml@main
19 changes: 0 additions & 19 deletions .mvn/wrapper/maven-wrapper.properties

This file was deleted.

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

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

group = 'com.example'
version = '0.0.1-SNAPSHOT'

Expand All @@ -17,7 +18,7 @@ repositories {
}

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

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

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

group = 'com.example'
version = '0.0.1-SNAPSHOT'

Expand All @@ -17,7 +18,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 fbf920e

Please sign in to comment.