Browse Source

Improve `buildSrc` setup (#342)

pull/350/head
Javier Segovia Córdoba 4 years ago committed by GitHub
parent
commit
78976e40a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      examples/todoapp/buildSrc/build.gradle.kts
  2. 2
      examples/todoapp/buildSrc/src/main/kotlin/android-setup.gradle.kts

17
examples/todoapp/buildSrc/build.gradle.kts

@ -1,6 +1,5 @@
plugins { plugins {
`kotlin-dsl` `kotlin-dsl`
`kotlin-dsl-precompiled-script-plugins`
} }
repositories { repositories {
@ -11,22 +10,6 @@ repositories {
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
} }
buildscript {
repositories {
// TODO: remove after new build is published
mavenLocal()
google()
jcenter()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
dependencies {
classpath(Deps.JetBrains.Compose.gradlePlugin)
classpath(Deps.JetBrains.Kotlin.gradlePlugin)
classpath(Deps.Android.Tools.Build.gradlePlugin)
}
}
dependencies { dependencies {
implementation(Deps.JetBrains.Compose.gradlePlugin) implementation(Deps.JetBrains.Compose.gradlePlugin)
implementation(Deps.JetBrains.Kotlin.gradlePlugin) implementation(Deps.JetBrains.Kotlin.gradlePlugin)

2
examples/todoapp/buildSrc/src/main/kotlin/android-setup.gradle.kts

@ -1,5 +1,3 @@
import gradle.kotlin.dsl.accessors._2e8a70bdda5e56ec477a6ff432ddf9d7.android
plugins { plugins {
id("com.android.library") id("com.android.library")
} }

Loading…
Cancel
Save