Skip to content

Commit

Permalink
Adapt to sprig-boot-3 (#87)
Browse files Browse the repository at this point in the history
* Adapt to sprig-boot-3
  • Loading branch information
Ahoo-Wang authored Jun 19, 2023
1 parent 25a6aee commit 8660ccb
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
- name: Checkout
uses: actions/checkout@master

- name: Set up JDK 8
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'adopt'
server-id: github
settings-path: ${{ github.workspace }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
- name: Checkout
uses: actions/checkout@master

- name: Set up JDK 8
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'adopt'
server-id: github
settings-path: ${{ github.workspace }}
Expand All @@ -50,10 +50,10 @@ jobs:
- name: Checkout
uses: actions/checkout@master

- name: Set up JDK 8
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'adopt'
server-id: github
settings-path: ${{ github.workspace }}
Expand All @@ -69,10 +69,10 @@ jobs:
- name: Checkout
uses: actions/checkout@master

- name: Set up JDK 8
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'adopt'
server-id: github
settings-path: ${{ github.workspace }}
Expand All @@ -93,10 +93,10 @@ jobs:
- name: Checkout
uses: actions/checkout@master

- name: Set up JDK 8
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'adopt'
server-id: github
settings-path: ${{ github.workspace }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/package-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
- name: Checkout
uses: actions/checkout@master

- name: Set up JDK 8
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'adopt'
server-id: github
settings-path: ${{ github.workspace }}
Expand All @@ -47,10 +47,10 @@ jobs:
- name: Checkout
uses: actions/checkout@master

- name: Set up JDK 8
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'adopt'
server-id: github
settings-path: ${{ github.workspace }}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ configure(libraryProjects) {
apply<KotlinPlatformJvmPlugin>()
configure<KotlinJvmProjectExtension>() {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(8))
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#

group=me.ahoo.simba
version=0.6.8
version=2.0.0
description=Simba aims to provide easy-to-use and flexible distributed lock services and supports multiple storage implementations: relational databases, Redis, and Zookeeper.
website=https://github.com/Ahoo-Wang/Simba
issues=https://github.com/Ahoo-Wang/Simba/issues
Expand Down
4 changes: 2 additions & 2 deletions simba-dependencies/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*/

dependencies {
api(platform("org.springframework.boot:spring-boot-dependencies:2.7.12"))
api(platform("org.springframework.cloud:spring-cloud-dependencies:2021.0.7"))
api(platform("org.springframework.boot:spring-boot-dependencies:3.1.0"))
api(platform("org.springframework.cloud:spring-cloud-dependencies:2022.0.3"))
api(platform("org.testcontainers:testcontainers-bom:1.18.3"))
constraints {
api("com.google.guava:guava:32.0.1-jre")
Expand Down
2 changes: 1 addition & 1 deletion simba-example/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ plugins {

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
languageVersion.set(JavaLanguageVersion.of(17))
}
}
application {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ package me.ahoo.simba.spring.boot.starter.jdbc

import me.ahoo.simba.Simba
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.boot.context.properties.ConstructorBinding
import java.time.Duration

/**
* Jdbc Properties.
*
* @author ahoo wang
*/
@ConstructorBinding
@ConfigurationProperties(prefix = JdbcProperties.PREFIX)
data class JdbcProperties(
val enabled: Boolean = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ package me.ahoo.simba.spring.boot.starter.redis

import me.ahoo.simba.Simba
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.boot.context.properties.ConstructorBinding
import java.time.Duration

/**
* Redis Properties.
*
* @author ahoo wang
*/
@ConstructorBinding
@ConfigurationProperties(prefix = RedisProperties.PREFIX)
data class RedisProperties(
val enabled: Boolean = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import java.util.concurrent.ForkJoinPool
ZookeeperMutexContendServiceFactory::class
)
@EnableConfigurationProperties(ZookeeperProperties::class)
class SimbaZookeeperAutoConfiguration(private val zookeeperProperties: ZookeeperProperties) {
class SimbaZookeeperAutoConfiguration {
@Bean
@ConditionalOnBean(CuratorFramework::class)
@ConditionalOnMissingBean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ package me.ahoo.simba.spring.boot.starter.zookeeper

import me.ahoo.simba.Simba
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.boot.context.properties.ConstructorBinding

/**
* Zookeeper Properties.
*
* @author ahoo wang
*/
@ConstructorBinding
@ConfigurationProperties(prefix = ZookeeperProperties.PREFIX)
data class ZookeeperProperties(val enabled: Boolean = true) {

Expand Down

0 comments on commit 8660ccb

Please sign in to comment.