Skip to content

Commit

Permalink
Add jcenter snippet
Browse files Browse the repository at this point in the history
> This snippet enables jcenter only for the dependencies described within the block.

Kotlin/kotlinx.html#173 (comment)

fixes DroidKaigi#328
  • Loading branch information
ykws authored and k-shinn committed Mar 24, 2021
1 parent a08a6c4 commit 38ff74e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ buildscript {
repositories {
google()
mavenCentral()
// This snippet enables jcenter only for the dependencies described within the block.
// Once they are on maven central you can just remove it.
// https://github.com/Kotlin/kotlinx.html/issues/173#issuecomment-800504909
jcenter {
content {
includeModule("org.jetbrains.kotlinx", "kotlinx-html-jvm")
includeModule("org.jetbrains.kotlinx", "kotlinx-collections-immutable-jvm")
}
}
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.0-alpha10'
Expand All @@ -33,6 +42,15 @@ allprojects {
repositories {
google()
mavenCentral()
// This snippet enables jcenter only for the dependencies described within the block.
// Once they are on maven central you can just remove it.
// https://github.com/Kotlin/kotlinx.html/issues/173#issuecomment-800504909
jcenter {
content {
includeModule("org.jetbrains.kotlinx", "kotlinx-html-jvm")
includeModule("org.jetbrains.kotlinx", "kotlinx-collections-immutable-jvm")
}
}
maven { url 'https://androidx.dev/snapshots/builds/6767375/artifacts/ui/repository' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
Expand Down

0 comments on commit 38ff74e

Please sign in to comment.