fixing Gradle Update and Version Catalog Optimization
This commit is contained in:
parent
022ee000be
commit
6fdedd020c
|
|
@ -87,13 +87,10 @@ kotlin {
|
|||
implementation(compose.materialIconsExtended)
|
||||
|
||||
// ViewModel lifecycle
|
||||
implementation(libs.androidx.lifecycle.viewmodelCompose)
|
||||
implementation(libs.bundles.compose.common)
|
||||
|
||||
// Coroutines
|
||||
implementation(libs.kotlinx.coroutines.core)
|
||||
|
||||
// Serialization
|
||||
implementation(libs.kotlinx.serialization.json)
|
||||
// Coroutines, Serialization, DateTime
|
||||
implementation(libs.bundles.kotlinx.core)
|
||||
}
|
||||
|
||||
jvmMain.dependencies {
|
||||
|
|
|
|||
|
|
@ -53,27 +53,20 @@ kotlin {
|
|||
implementation(compose.materialIconsExtended)
|
||||
|
||||
// Ktor client for HTTP calls
|
||||
implementation(libs.ktor.client.core)
|
||||
implementation(libs.ktor.client.contentNegotiation)
|
||||
implementation(libs.ktor.client.serialization.kotlinx.json)
|
||||
implementation(libs.ktor.client.logging)
|
||||
implementation(libs.ktor.client.auth)
|
||||
implementation(libs.bundles.ktor.client.common)
|
||||
|
||||
// Coroutines and serialization
|
||||
implementation(libs.kotlinx.coroutines.core)
|
||||
implementation(libs.kotlinx.datetime)
|
||||
implementation(libs.kotlinx.serialization.json)
|
||||
implementation(libs.bundles.kotlinx.core)
|
||||
|
||||
// ViewModel lifecycle
|
||||
implementation(libs.androidx.lifecycle.viewmodelCompose)
|
||||
implementation(libs.androidx.lifecycle.runtimeCompose)
|
||||
implementation(libs.bundles.compose.common)
|
||||
|
||||
}
|
||||
|
||||
commonTest.dependencies {
|
||||
implementation(libs.kotlin.test)
|
||||
implementation(libs.kotlinx.coroutines.test)
|
||||
implementation("io.ktor:ktor-client-mock:${libs.versions.ktor.get()}")
|
||||
implementation(libs.ktor.client.mock)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,11 +35,8 @@ kotlin {
|
|||
|
||||
sourceSets {
|
||||
commonMain.dependencies {
|
||||
// Coroutines für asynchrone Programmierung
|
||||
implementation(libs.kotlinx.coroutines.core)
|
||||
|
||||
// Serialization für JSON
|
||||
implementation(libs.kotlinx.serialization.json)
|
||||
// Kotlinx core dependencies (coroutines, serialization, datetime)
|
||||
implementation(libs.bundles.kotlinx.core)
|
||||
|
||||
// HTTP Client
|
||||
// implementation(libs.ktor.client.core)
|
||||
|
|
@ -48,9 +45,6 @@ kotlin {
|
|||
// implementation(libs.ktor.client.logging)
|
||||
// implementation(libs.ktor.client.auth)
|
||||
|
||||
// DateTime
|
||||
implementation(libs.kotlinx.datetime)
|
||||
|
||||
}
|
||||
|
||||
commonTest.dependencies {
|
||||
|
|
|
|||
|
|
@ -71,6 +71,9 @@ jakartaAnnotation = "3.0.0"
|
|||
roomCommonJvm = "2.7.2"
|
||||
uiDesktop = "1.7.0"
|
||||
|
||||
# --- Gradle Plugins ---
|
||||
foojayResolver = "1.0.0"
|
||||
|
||||
[libraries]
|
||||
# --- Platform BOMs (Bill of Materials) ---
|
||||
kotlin-bom = { module = "org.jetbrains.kotlin:kotlin-bom", version.ref = "kotlin" }
|
||||
|
|
@ -114,6 +117,7 @@ ktor-client-contentNegotiation = { module = "io.ktor:ktor-client-content-negotia
|
|||
ktor-client-serialization-kotlinx-json = { module = "io.ktor:ktor-serialization-kotlinx-json", version.ref = "ktor" }
|
||||
ktor-client-logging = { module = "io.ktor:ktor-client-logging", version.ref = "ktor" }
|
||||
ktor-client-auth = { module = "io.ktor:ktor-client-auth", version.ref = "ktor" }
|
||||
ktor-client-mock = { module = "io.ktor:ktor-client-mock", version.ref = "ktor" }
|
||||
|
||||
# --- Spring Boot (Versions from spring-boot-dependencies BOM) ---
|
||||
spring-boot-starter-web = { module = "org.springframework.boot:spring-boot-starter-web" }
|
||||
|
|
@ -291,6 +295,110 @@ spring-cloud-gateway = [
|
|||
"spring-cloud-starter-consul-discovery"
|
||||
]
|
||||
|
||||
# --- NEW BUNDLES ---
|
||||
|
||||
# Ktor Server bundles
|
||||
ktor-server-common = [
|
||||
"ktor-server-core",
|
||||
"ktor-server-netty",
|
||||
"ktor-server-contentNegotiation",
|
||||
"ktor-server-serialization-kotlinx-json",
|
||||
"ktor-server-statusPages",
|
||||
"ktor-server-cors",
|
||||
"ktor-server-defaultHeaders"
|
||||
]
|
||||
|
||||
ktor-server-security = [
|
||||
"ktor-server-auth",
|
||||
"ktor-server-authJwt"
|
||||
]
|
||||
|
||||
ktor-server-observability = [
|
||||
"ktor-server-callLogging",
|
||||
"ktor-server-metrics-micrometer"
|
||||
]
|
||||
|
||||
ktor-server-docs = [
|
||||
"ktor-server-openapi",
|
||||
"ktor-server-swagger"
|
||||
]
|
||||
|
||||
# Ktor Client bundles
|
||||
ktor-client-common = [
|
||||
"ktor-client-core",
|
||||
"ktor-client-contentNegotiation",
|
||||
"ktor-client-serialization-kotlinx-json",
|
||||
"ktor-client-logging",
|
||||
"ktor-client-auth"
|
||||
]
|
||||
|
||||
# Spring Boot bundles
|
||||
spring-boot-web = [
|
||||
"spring-boot-starter-web",
|
||||
"spring-boot-starter-validation",
|
||||
"spring-boot-starter-actuator"
|
||||
]
|
||||
|
||||
spring-boot-security = [
|
||||
"spring-boot-starter-security",
|
||||
"spring-boot-starter-oauth2-client",
|
||||
"spring-boot-starter-oauth2-resource-server",
|
||||
"spring-security-oauth2-jose"
|
||||
]
|
||||
|
||||
spring-boot-data = [
|
||||
"spring-boot-starter-data-jpa",
|
||||
"spring-boot-starter-data-redis"
|
||||
]
|
||||
|
||||
spring-boot-observability = [
|
||||
"spring-boot-starter-actuator",
|
||||
"micrometer-prometheus",
|
||||
"micrometer-tracing-bridge-brave",
|
||||
"zipkin-reporter-brave"
|
||||
]
|
||||
|
||||
# Compose bundles
|
||||
compose-common = [
|
||||
"androidx-lifecycle-viewmodelCompose",
|
||||
"androidx-lifecycle-runtimeCompose"
|
||||
]
|
||||
|
||||
# Jackson bundles
|
||||
jackson-kotlin = [
|
||||
"jackson-module-kotlin",
|
||||
"jackson-datatype-jsr310"
|
||||
]
|
||||
|
||||
# Kotlinx bundles
|
||||
kotlinx-core = [
|
||||
"kotlinx-coroutines-core",
|
||||
"kotlinx-serialization-json",
|
||||
"kotlinx-datetime"
|
||||
]
|
||||
|
||||
# Persistence bundles
|
||||
persistence-postgres = [
|
||||
"exposed-core",
|
||||
"exposed-dao",
|
||||
"exposed-jdbc",
|
||||
"postgresql-driver"
|
||||
]
|
||||
|
||||
# Resilience bundles
|
||||
resilience = [
|
||||
"resilience4j-spring-boot3",
|
||||
"resilience4j-reactor",
|
||||
"spring-boot-starter-aop"
|
||||
]
|
||||
|
||||
# Logging bundles
|
||||
logging = [
|
||||
"kotlin-logging-jvm",
|
||||
"logback-classic",
|
||||
"logback-core"
|
||||
]
|
||||
|
||||
|
||||
[plugins]
|
||||
androidApplication = { id = "com.android.application", version.ref = "agp" }
|
||||
|
|
@ -308,3 +416,5 @@ composeCompiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "k
|
|||
|
||||
spring-boot = { id = "org.springframework.boot", version.ref = "springBoot" }
|
||||
spring-dependencyManagement = { id = "io.spring.dependency-management", version.ref = "springDependencyManagement" }
|
||||
|
||||
foojayResolver = { id = "org.gradle.toolchains.foojay-resolver-convention", version.ref = "foojayResolver" }
|
||||
|
|
|
|||
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
|
@ -1,6 +1,6 @@
|
|||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user