Skip to content

Commit

Permalink
Consolidate springboot version (#583)
Browse files Browse the repository at this point in the history
* update actions
* fix version refs
* use setup-gradle
  • Loading branch information
ekoby authored May 28, 2024
1 parent 19b1b8a commit 0c11911
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 12 deletions.
8 changes: 7 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
version: 2
updates:
- package-ecosystem: "gradle"
open-pull-requests-limit: 10
directory: "."
schedule:
interval: daily
interval: daily

- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
10 changes: 6 additions & 4 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@ jobs:
BUILD_NUMBER: ${{ github.GITHUB_RUN_NUMBER }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

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

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
dependency-graph: generate-and-submit
- name: Check
run: ./gradlew -S --info check
timeout-minutes: 10
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,18 @@ jobs:
BUILD_NUMBER: ${{ github.GITHUB_RUN_NUMBER }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
dependency-graph: generate-and-submit
- name: Show Info
run: ./gradlew :showInfo
- name: Build with Gradle
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ gson = "2.10.1"
tls-channel = "0.8.1"
jjwt = "0.12.5"
netty = "4.1.107.Final"
springboot = "3.2.5"

[libraries]

Expand All @@ -39,6 +40,7 @@ netty-http = { group = "io.netty", name = "netty-codec-http", version.ref = "net

[plugins]
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-spring = { id = "org.jetbrains.kotlin.plugin.spring", version.ref = "kotlin" }
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
nexus-publish = { id = "io.github.gradle-nexus.publish-plugin", version.ref = "nexus" }
semver-git = { id = "io.wusa.semver-git-plugin", version.ref = "semver-git" }
Expand Down
2 changes: 1 addition & 1 deletion ziti-springboot-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ plugins {

ext {
description "Ziti adapter for Spring Boot Client(s)"
springbootVersion = '3.2.4'
}

repositories {
mavenCentral()
}

dependencies {
def springbootVersion = libs.versions.springboot.get()
implementation("org.springframework.boot:spring-boot:${springbootVersion}")
implementation("org.springframework.boot:spring-boot-autoconfigure:${springbootVersion}")
implementation("org.springframework.boot:spring-boot-starter-web:${springbootVersion}")
Expand Down
6 changes: 3 additions & 3 deletions ziti-springboot/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ plugins {
alias(libs.plugins.dokka)
id 'maven-publish'

id("org.jetbrains.kotlin.plugin.spring") version "1.9.23"

alias(libs.plugins.kotlin.spring)
}

ext {
description "Ziti adapter for Spring Boot"
springbootVersion = '3.2.4'
}

repositories {
Expand All @@ -34,6 +32,8 @@ repositories {

dependencies {
implementation(libs.kotlin.lib)

def springbootVersion = libs.versions.springboot.get()
implementation("org.springframework.boot:spring-boot:${springbootVersion}")
implementation("org.springframework.boot:spring-boot-autoconfigure:${springbootVersion}")
implementation("org.springframework.boot:spring-boot-starter-tomcat:${springbootVersion}")
Expand Down

0 comments on commit 0c11911

Please sign in to comment.