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