From 0f5190989655a5868bcf0e397df9e4907577b8e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jc=20Mi=C3=B1arro?= Date: Tue, 16 Jul 2024 14:42:52 +0200 Subject: [PATCH] Add jitpack repository to resolve GitVersioners dependency --- build.gradle | 14 +++++--------- .../io/getstream/chat/android/Dependencies.kt | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index cff6d2baea6..0cb691cbb6a 100644 --- a/build.gradle +++ b/build.gradle @@ -40,22 +40,18 @@ buildscript { } } - // fetch dagger plugin only - mavenCentral() { + maven { + url "https://jitpack.io" content { - includeGroup("com.google.dagger") - includeGroup("com.google.dagger.hilt.android") - } - mavenContent { - releasesOnly() + includeModule("com.github.passsy", "gradle-gitVersioner-plugin") } } // fetch plugins from gradle plugin portal (https://plugins.gradle.org) gradlePluginPortal() - // fetch plugins from gradle maven publication - maven { url "https://plugins.gradle.org/m2/" } + // Fallback for the rest of the dependencies + mavenCentral() } dependencies { diff --git a/buildSrc/src/main/kotlin/io/getstream/chat/android/Dependencies.kt b/buildSrc/src/main/kotlin/io/getstream/chat/android/Dependencies.kt index 82b94336d1b..c85d028008f 100644 --- a/buildSrc/src/main/kotlin/io/getstream/chat/android/Dependencies.kt +++ b/buildSrc/src/main/kotlin/io/getstream/chat/android/Dependencies.kt @@ -155,7 +155,7 @@ object Dependencies { const val flipper = "com.facebook.flipper:flipper:${Versions.FLIPPER}" const val flipperNetwork = "com.facebook.flipper:flipper-network-plugin:${Versions.FLIPPER}" const val flipperLoader = "com.facebook.soloader:soloader:${Versions.FLIPPER_SO_LOADER}" - const val gitversionerPlugin = "com.pascalwelsch.gitversioner:gitversioner:${Versions.GITVERSIONER}" + const val gitversionerPlugin = "com.github.passsy:gradle-gitVersioner-plugin:${Versions.GITVERSIONER}" const val googleServicesPlugin = "com.google.gms:google-services:${Versions.GOOGLE_SERVICES}" const val gradleNexusPublishPlugin = "io.github.gradle-nexus:publish-plugin:${Versions.GRADLE_NEXUS_PUBLISH_PLUGIN}" const val gradleVersionsPlugin = "com.github.ben-manes:gradle-versions-plugin:${Versions.GRADLE_VERSIONS_PLUGIN}"