|
|
|
@ -1,23 +1,28 @@
|
|
|
|
|
|
|
|
|
|
// We store Kotlin and Compose versions in gradle.properties to |
|
|
|
|
// We store Kotlin and Compose versions in gradle.properties to |
|
|
|
|
// be able to override them on CI. |
|
|
|
|
// You probably won't need this, so you can get rid of `project` in this file. |
|
|
|
|
import org.gradle.api.Project |
|
|
|
|
|
|
|
|
|
lateinit var properties: Map<String, *> |
|
|
|
|
|
|
|
|
|
fun initDeps(project: Project) { |
|
|
|
|
properties = project.properties |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
object Deps { |
|
|
|
|
object JetBrains { |
|
|
|
|
class Kotlin(private val project: Project) { |
|
|
|
|
private val VERSION = project.properties["kotlin.version"] |
|
|
|
|
val gradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$VERSION" |
|
|
|
|
val testCommon = "org.jetbrains.kotlin:kotlin-test-common:$VERSION" |
|
|
|
|
val testJunit = "org.jetbrains.kotlin:kotlin-test-junit:$VERSION" |
|
|
|
|
val testJs = "org.jetbrains.kotlin:kotlin-test-js:$VERSION" |
|
|
|
|
val testAnnotationsCommon = "org.jetbrains.kotlin:kotlin-test-annotations-common:$VERSION" |
|
|
|
|
object Kotlin { |
|
|
|
|
private val VERSION get() = properties["kotlin.version"] |
|
|
|
|
val gradlePlugin get() = "org.jetbrains.kotlin:kotlin-gradle-plugin:$VERSION" |
|
|
|
|
val testCommon get() = "org.jetbrains.kotlin:kotlin-test-common:$VERSION" |
|
|
|
|
val testJunit get() = "org.jetbrains.kotlin:kotlin-test-junit:$VERSION" |
|
|
|
|
val testJs get() = "org.jetbrains.kotlin:kotlin-test-js:$VERSION" |
|
|
|
|
val testAnnotationsCommon get() = "org.jetbrains.kotlin:kotlin-test-annotations-common:$VERSION" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class Compose(private val project: Project) { |
|
|
|
|
private val VERSION = project.properties["compose.version"] |
|
|
|
|
val gradlePlugin = "org.jetbrains.compose:compose-gradle-plugin:$VERSION" |
|
|
|
|
object Compose { |
|
|
|
|
private val VERSION get() = properties["compose.version"] |
|
|
|
|
val gradlePlugin get() = "org.jetbrains.compose:compose-gradle-plugin:$VERSION" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|