Skip to content

Commit

Permalink
Merge pull request #338 from ykws/feature/remove-jcenter
Browse files Browse the repository at this point in the history
Optimize Bintray and JCenter for the dependencies
  • Loading branch information
punchdrunker authored Mar 18, 2021
2 parents cf61f60 + 79e7e7c commit 1569504
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@ buildscript {
repositories {
google()
mavenCentral()
jcenter()
maven { url = "https://dl.bintray.com/kotlin/kotlin-eap" }
// 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 @@ -34,14 +41,17 @@ plugins {
allprojects {
repositories {
google()
jcenter()
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://dl.bintray.com/kotlin/kotlin-eap" }
maven { url = uri("https://dl.bintray.com/korlibs/korlibs/") }
maven { url "https://dl.bintray.com/kotlin/kotlinx" }
maven { url "https://dl.bintray.com/kotlin/ktor" }
maven { url "https://kotlin.bintray.com/kotlinx" }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
}
Expand All @@ -50,7 +60,6 @@ allprojects {
repositories {
google()
mavenCentral()
// jcenter()
}

apply plugin: 'com.diffplug.spotless'
Expand Down

0 comments on commit 1569504

Please sign in to comment.