diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..322c1fa --- /dev/null +++ b/.github/dependabot.yml @@ -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: + - "*" \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 0652ab4..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,44 +0,0 @@ -pipeline { - agent none - - triggers { - pollSCM 'H/10 * * * *' - } - - options { - disableConcurrentBuilds() - buildDiscarder(logRotator(numToKeepStr: '14')) - } - - stages { - stage("test: baseline (jdk8)") { - agent { - docker { - image 'harbor-repo.vmware.com/dockerhub-proxy-cache/library/adoptopenjdk/openjdk8:latest' - args '-v $HOME/.m2:/tmp/jenkins-home/.m2' - } - } - options { timeout(time: 30, unit: 'MINUTES') } - steps { - sh 'test/run.sh' - } - } - - } - - post { - changed { - script { - slackSend( - color: (currentBuild.currentResult == 'SUCCESS') ? 'good' : 'danger', - channel: '#sagan-content', - message: "${currentBuild.fullDisplayName} - `${currentBuild.currentResult}`\n${env.BUILD_URL}") - emailext( - subject: "[${currentBuild.fullDisplayName}] ${currentBuild.currentResult}", - mimeType: 'text/html', - recipientProviders: [[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']], - body: "${currentBuild.fullDisplayName} is reported as ${currentBuild.currentResult}") - } - } - } -} diff --git a/complete/configuration-client/build.gradle b/complete/configuration-client/build.gradle index fc10325..055b3d4 100644 --- a/complete/configuration-client/build.gradle +++ b/complete/configuration-client/build.gradle @@ -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' @@ -14,7 +15,7 @@ repositories { } ext { - set('springCloudVersion', "2023.0.2") + springCloudVersion = '2023.0.2' } dependencies { diff --git a/complete/configuration-service/build.gradle b/complete/configuration-service/build.gradle index 9955b80..7fb140d 100644 --- a/complete/configuration-service/build.gradle +++ b/complete/configuration-service/build.gradle @@ -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' @@ -14,7 +15,7 @@ repositories { } ext { - set('springCloudVersion', "2023.0.2") + springCloudVersion = '2023.0.2' } dependencies { diff --git a/initial/configuration-client/build.gradle b/initial/configuration-client/build.gradle index fc10325..055b3d4 100644 --- a/initial/configuration-client/build.gradle +++ b/initial/configuration-client/build.gradle @@ -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' @@ -14,7 +15,7 @@ repositories { } ext { - set('springCloudVersion', "2023.0.2") + springCloudVersion = '2023.0.2' } dependencies { diff --git a/initial/configuration-service/build.gradle b/initial/configuration-service/build.gradle index 9955b80..7fb140d 100644 --- a/initial/configuration-service/build.gradle +++ b/initial/configuration-service/build.gradle @@ -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' @@ -14,7 +15,7 @@ repositories { } ext { - set('springCloudVersion', "2023.0.2") + springCloudVersion = '2023.0.2' } dependencies { diff --git a/test/run.sh b/test/run.sh deleted file mode 100755 index 0374609..0000000 --- a/test/run.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -cd $(dirname $0) - -cd ../complete - -./mvnw clean package -ret=$? -if [ $ret -ne 0 ]; then -exit $ret -fi -rm -rf target - -./gradlew build -ret=$? -if [ $ret -ne 0 ]; then -exit $ret -fi -rm -rf build - -cd ../initial - -./mvnw clean compile -ret=$? -if [ $ret -ne 0 ]; then -exit $ret -fi -rm -rf target - -./gradlew compileJava -ret=$? -if [ $ret -ne 0 ]; then -exit $ret -fi -rm -rf build - -exit