Skip to content

Commit

Permalink
Remove usage of jcenter. (#37)
Browse files Browse the repository at this point in the history
Use maven.google.com for Google deps, else use maven central.
  • Loading branch information
yogurtearl authored Nov 9, 2022
1 parent 66a203f commit 28925c2
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 18 deletions.
26 changes: 22 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,17 @@ import java.nio.charset.Charset
buildscript {
ext.kotlin_version = '1.6.0'
repositories {
google()
jcenter()
mavenCentral()
exclusiveContent {
forRepository { google() }
filter {
includeGroupByRegex("androidx\\..*")
includeGroupByRegex("com\\.android\\..*")
includeGroup("com.android")
includeGroup("com.google.testing.platform")
includeGroup("com.google.android.material")
}
}
}
dependencies {
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.6.0'
Expand All @@ -28,8 +37,17 @@ buildscript {

allprojects {
repositories {
google()
jcenter()
mavenCentral()
exclusiveContent {
forRepository { google() }
filter {
includeGroupByRegex("androidx\\..*")
includeGroupByRegex("com\\.android\\..*")
includeGroup("com.android")
includeGroup("com.google.testing.platform")
includeGroup("com.google.android.material")
}
}
}
}

Expand Down
5 changes: 0 additions & 5 deletions busybee-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ plugins {
id("org.jetbrains.kotlin.android")
}

repositories {
google()
jcenter()
}

android {
compileSdkVersion = libs.versions.compileSdk.get()
defaultConfig {
Expand Down
4 changes: 0 additions & 4 deletions busybee-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ plugins {
id("org.jetbrains.kotlin.jvm")
}

repositories {
jcenter()
}

dependencies {
implementation(libs.androidx.annotation)
// Android Studio 3.6 thinks we are using a different version of kotlin here, but we are not
Expand Down
4 changes: 0 additions & 4 deletions sample-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ plugins {
id("org.jetbrains.kotlin.android")
}

repositories {
jcenter()
}

group = "io.americanexpress.busybee.app"

android {
Expand Down
4 changes: 3 additions & 1 deletion sample-app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
android:allowBackup="false"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity android:name=".sample.BusyBeeActivity">
<activity android:name=".sample.BusyBeeActivity"
android:exported="true"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down

0 comments on commit 28925c2

Please sign in to comment.