-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'common-gradle-dependencies-release' into plugins-main
- Loading branch information
Showing
8 changed files
with
164 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
const val kotlinVersion = "1.7.10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...gradle-dependencies/src/main/kotlin/com/huanshankeji/CommonGradleClasspathDependencies.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.huanshankeji | ||
|
||
import org.gradle.plugin.use.PluginDependenciesSpec | ||
|
||
class CommonGradleClasspathDependencies(val versions: CommonVersions) { | ||
inner class Kotlin internal constructor() { | ||
val group = "org.jetbrains.kotlin" | ||
|
||
inner class SerializationPlugin internal constructor() { | ||
val moduleName = "plugin.serialization" | ||
val version get() = versions.kotlin | ||
} | ||
|
||
val serializationPlugin = SerializationPlugin() | ||
} | ||
|
||
val kotlin = Kotlin() | ||
|
||
inner class ComposeJb internal constructor() { | ||
val gradlePluginProjectGroupAndArtifact = "org.jetbrains.compose:compose-gradle-plugin" | ||
val gradlePluginId = "org.jetbrains.compose" | ||
val defaultVersion = versions.composeJb | ||
|
||
|
||
fun PluginDependenciesSpec.applyPluginWithoutVersion() = | ||
id(gradlePluginId) | ||
|
||
fun PluginDependenciesSpec.applyPluginWithVersion(version: String = defaultVersion) = | ||
applyPluginWithoutVersion().version(version) | ||
} | ||
|
||
val composeJb = ComposeJb() | ||
} |
27 changes: 15 additions & 12 deletions
27
common-gradle-dependencies/src/main/kotlin/com/huanshankeji/CommonVersions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
package com.huanshankeji | ||
|
||
import kotlinVersion | ||
|
||
class CommonVersions( | ||
val kotlin: String = "1.6.10", | ||
val kotlin: String = kotlinVersion, | ||
|
||
val kotlinCommon: String = "0.1.1-kotlin-1.6.10", | ||
val kotlinCommon: String = "0.2.0", | ||
|
||
val exposed: String = "0.38.2", | ||
val kotlinxCoroutines: String = "1.6.1", | ||
val kotlinxHtml: String = "0.7.5", | ||
val kotlinxSerialization: String = "1.3.2", | ||
val kotlinxCoroutines: String = "1.6.4", | ||
val kotlinxHtml: String = "0.8.0", | ||
val kotlinxSerialization: String = "1.4.0-RC", | ||
val kotlinxDatetime: String = "0.4.0", | ||
val ktor: String = "1.6.8", | ||
val exposed: String = "0.38.2", | ||
val ktor: String = "2.0.3", | ||
val composeJb: String = "1.2.0-alpha01-dev753", // TODO: try to use a stable version in production | ||
|
||
val arrow: String = "1.0.1", | ||
val junitJupiter: String = "5.8.2", | ||
val kotest: String = "5.2.3", | ||
val postgreSql: String = "42.3.5", | ||
val vertx: String = "4.3.2", | ||
val arrow: String = "1.1.2", | ||
val orgJunit: String = "5.9.0", | ||
val kotest: String = "5.4.0", | ||
val postgreSql: String = "42.4.0", | ||
val slf4j: String = "1.7.36", | ||
val vertx: String = "4.2.7", // TODO: 4.3.0 | ||
) |