Skip to content

Commit

Permalink
refs #37 不要な依存関係をクリーンアップ
Browse files Browse the repository at this point in the history
  • Loading branch information
averak committed Jan 9, 2024
1 parent 7e2e65f commit 95dbe8d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 26 deletions.
6 changes: 1 addition & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import java.io.ByteArrayOutputStream

plugins {
kotlin("jvm") version libs.versions.kotlin
kotlin("jvm") version "1.9.20"

alias(libs.plugins.versions)
alias(libs.plugins.version.catalog.update)
Expand Down Expand Up @@ -138,8 +138,6 @@ project(":adapter") {
implementation(rootProject.libs.spring.boot.starter.web)
implementation(rootProject.libs.spring.boot.starter.webflux)
implementation(rootProject.libs.spring.boot.starter.data.jpa)
implementation(rootProject.libs.google.cloud.spanner.spring)
implementation(rootProject.libs.google.cloud.spanner.hibernate)
implementation(rootProject.libs.mybatis.spring.boot.starter)

testImplementation(rootProject.libs.spring.boot.starter.test)
Expand All @@ -165,7 +163,6 @@ project(":infrastructure") {
implementation(rootProject.libs.spring.boot.starter.web)
implementation(rootProject.libs.spring.boot.starter.webflux)
implementation(rootProject.libs.spring.boot.starter.data.redis)
implementation(rootProject.libs.google.cloud.spanner.spring)
implementation(rootProject.libs.jackson.module.kotlin)
implementation(rootProject.libs.jackson.datatype.jsr310)
implementation(rootProject.libs.mybatis.spring.boot.starter)
Expand All @@ -177,7 +174,6 @@ project(":usecase") {
dependencies {
implementation(project(":core"))
implementation(project(":domain"))
implementation(rootProject.libs.google.cloud.spanner.spring)
}
}

Expand Down
20 changes: 9 additions & 11 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@
easy-random = "6.2.1"
flyway = "10.4.1"
groovy = "4.0.7"
kotlin = "1.9.20"
mybatis-generator = "1.4.2"
spock = "2.4-M1-groovy-4.0"
spring-boot = "3.2.1"

[libraries]
commons-lang3 = "org.apache.commons:commons-lang3:3.13.0"
commons-lang3 = "org.apache.commons:commons-lang3:3.14.0"
easy-random = { module = "io.github.dvgaba:easy-random-core", version.ref = "easy-random" }
flyway-core = { module = "org.flywaydb:flyway-core", version.ref = "flyway" }
flyway-spanner = { module = "org.flywaydb:flyway-gcp-spanner", version.ref = "flyway" }
flyway-gradle-plugin = { module = "org.flywaydb:flyway-gradle-plugin", version.ref = "flyway" }
flyway-spanner = { module = "org.flywaydb:flyway-gcp-spanner", version.ref = "flyway" }
google-cloud-spanner-jdbc = "com.google.cloud:google-cloud-spanner-jdbc:2.15.0"
google-cloud-spanner-spring = "com.google.cloud:spring-cloud-gcp-starter-data-spanner:5.0.0"
groovy = { module = "org.apache.groovy:groovy", version.ref = "groovy" }
groovy-sql = { module = "org.apache.groovy:groovy-sql", version.ref = "groovy" }
guava = "com.google.guava:guava:32.1.3-jre"
jackson-module-kotlin = "com.fasterxml.jackson.module:jackson-module-kotlin:2.16.1"
guava = "com.google.guava:guava:33.0.0-jre"
jackson-datatype-jsr310 = "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.16.1"
jackson-module-kotlin = "com.fasterxml.jackson.module:jackson-module-kotlin:2.16.1"
logback-classic = "ch.qos.logback:logback-classic:1.4.14"
logstash-logback-encoder = "net.logstash.logback:logstash-logback-encoder:7.4"
mybatis-generator-core = { module = "org.mybatis.generator:mybatis-generator-core", version.ref = "mybatis-generator" }
Expand All @@ -32,14 +33,11 @@ spring-boot-starter-data-redis = { module = "org.springframework.boot:spring-boo
spring-boot-starter-test = { module = "org.springframework.boot:spring-boot-starter-test", version.ref = "spring-boot" }
spring-boot-starter-web = { module = "org.springframework.boot:spring-boot-starter-web", version.ref = "spring-boot" }
spring-boot-starter-webflux = { module = "org.springframework.boot:spring-boot-starter-webflux", version.ref = "spring-boot" }
google-cloud-spanner-spring = "com.google.cloud:spring-cloud-gcp-starter-data-spanner:5.0.0"
google-cloud-spanner-jdbc = "com.google.cloud:google-cloud-spanner-jdbc:2.15.0"
google-cloud-spanner-hibernate = "com.google.cloud:google-cloud-spanner-hibernate-dialect:3.0.3"

[plugins]
flyway = { id = "org.flywaydb.flyway", version.ref = "flyway" }
gradle-git-properties = "com.gorylenko.gradle-git-properties:2.4.1"
sonarqube = "org.sonarqube:4.4.1.3373"
spotless = "com.diffplug.spotless:6.22.0"
version-catalog-update = "nl.littlerobots.version-catalog-update:0.8.1"
versions = "com.github.ben-manes.versions:0.49.0"
spotless = "com.diffplug.spotless:6.23.3"
version-catalog-update = "nl.littlerobots.version-catalog-update:0.8.3"
versions = "com.github.ben-manes.versions:0.50.0"
11 changes: 1 addition & 10 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,11 @@ spring:
instance-id: ${GCP_SPANNER_INSTANCE_ID:sandbox}
database: ${GCP_SPANNER_DATABASE:sandbox}
emulator:
enabled: true
enabled: ${GCP_SPANNER_EMULATOR_ENABLED:true}
emulator-host: ${SPANNER_EMULATOR_HOST:localhost:9010}
datasource:
url: jdbc:cloudspanner://${spring.cloud.gcp.spanner.emulator-host}/projects/${spring.cloud.gcp.spanner.project-id}/instances/${spring.cloud.gcp.spanner.instance-id}/databases/${spring.cloud.gcp.spanner.database}?autoConfigEmulator=${spring.cloud.gcp.spanner.emulator.enabled}
driver-class-name: com.google.cloud.spanner.jdbc.JdbcDriver
jpa:
hibernate:
ddl-auto: update
database-platform: com.google.cloud.spanner.hibernate.SpannerDialect
properties:
hibernate:
jdbc:
batch_size: 100
order_updates: true
data:
redis:
host: ${REDIS_HOST:localhost}
Expand Down

0 comments on commit 95dbe8d

Please sign in to comment.