Skip to content

Commit

Permalink
Merge pull request #386 from bugsnag/PLAT-6025/remove-jcenter-references
Browse files Browse the repository at this point in the history
fix(gradle): replaced jcenter with mavenCentral
  • Loading branch information
lemnik committed Jun 1, 2021
2 parents 0f5f901 + e978c12 commit 1fb1218
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
24 changes: 13 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
jcenter()
mavenCentral()
google()
}

Expand All @@ -11,7 +11,7 @@ buildscript {
dependencies {
classpath "com.android.tools.build:gradle:$agpVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.9.1"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.17.1"
classpath "org.jlleitschuh.gradle:ktlint-gradle:9.4.1"
}
}
Expand All @@ -33,7 +33,7 @@ apply plugin: "org.jlleitschuh.gradle.ktlint"

allprojects {
repositories {
jcenter()
mavenCentral()
google()
}
}
Expand All @@ -48,7 +48,7 @@ sourceSets {

// Repositories for dependencies
repositories {
jcenter()
mavenCentral()
google()
}

Expand All @@ -72,23 +72,25 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
}
}

// Several of these need to be kept as 'compile' for license checking to work
// as otherwise the downloadLicenses task misses these deps
// Build dependencies
dependencies {
kapt "com.squareup.moshi:moshi-kotlin-codegen:1.9.3"
compileOnly "com.android.tools.build:gradle:$agpVersion"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"

// For uploading proguard/ndk files
implementation "com.squareup.okhttp3:okhttp:4.8.0"
implementation "com.squareup.retrofit2:retrofit:2.9.0"
implementation "com.squareup.retrofit2:converter-moshi:2.9.0"
implementation "com.squareup.retrofit2:converter-scalars:2.9.0"
compile "com.squareup.okhttp3:okhttp:4.8.0"
compile "com.squareup.retrofit2:retrofit:2.9.0"
compile "com.squareup.retrofit2:converter-moshi:2.9.0"
compile "com.squareup.retrofit2:converter-scalars:2.9.0"

// For serialization of shared data
implementation "com.squareup.moshi:moshi:1.9.3"
compile "com.squareup.moshi:moshi:1.9.3"

// For multiple I/O use cases
implementation "com.squareup.okio:okio:2.7.0"
compile "com.squareup.okio:okio:2.7.0"

testImplementation "com.android.tools.build:gradle:$agpVersion"
testImplementation "junit:junit:4.12"
Expand Down
11 changes: 6 additions & 5 deletions detekt-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" ?>
<SmellBaseline>
<Blacklist></Blacklist>
<Whitelist>
<ManuallySuppressedIssues></ManuallySuppressedIssues>
<CurrentIssues>
<ID>ComplexCondition:AndroidManifestParser.kt$AndroidManifestParser$apiKey == null || "" == apiKey || versionCode == null || buildUuid == null || versionName == null || applicationId == null</ID>
<ID>ComplexCondition:BugsnagPlugin.kt$BugsnagPlugin$!jvmMinificationEnabled &amp;&amp; !ndkEnabled &amp;&amp; !unityEnabled &amp;&amp; !reactNativeEnabled</ID>
<ID>MagicNumber:BugsnagPluginExtension.kt$BugsnagPluginExtension$60000</ID>
Expand All @@ -12,15 +12,16 @@
<ID>ReturnCount:BugsnagPlugin.kt$BugsnagPlugin$ private fun registerUploadSourceMapTask( project: Project, variant: ApkVariant, output: ApkVariantOutput, bugsnag: BugsnagPluginExtension, manifestInfoFileProvider: Provider&lt;RegularFile&gt; ): TaskProvider&lt;out BugsnagUploadJsSourceMapTask&gt;?</ID>
<ID>ReturnCount:ManifestUuidTaskV2Compat.kt$internal fun createManifestUpdateTask( bugsnag: BugsnagPluginExtension, project: Project, variantName: String ): TaskProvider&lt;BugsnagManifestUuidTaskV2&gt;?</ID>
<ID>ReturnCount:SharedObjectMappingFileFactory.kt$SharedObjectMappingFileFactory$ fun generateSoMappingFile(project: Project, params: Params): File?</ID>
<ID>SpreadOperator:BugsnagReleasesTask.kt$BugsnagReleasesTask$(*cmd)</ID>
<ID>SpreadOperator:DexguardCompat.kt$(buildDir, *path, variant.dirName, outputDir, "mapping.txt")</ID>
<ID>SwallowedException:MappingFileProvider.kt$catch (exc: Throwable) { project.provider { project.layout.files(variant.mappingFile) } }</ID>
<ID>ThrowingExceptionsWithoutMessageOrCause:BugsnagManifestUuidTask.kt$BugsnagManifestUuidTask$IllegalStateException()</ID>
<ID>TooGenericExceptionCaught:BugsnagHttpClientHelper.kt$exc: Throwable</ID>
<ID>TooGenericExceptionCaught:BugsnagManifestUuidTask.kt$BugsnagManifestUuidTask$exc: Throwable</ID>
<ID>TooGenericExceptionCaught:BugsnagMultiPartUploadRequest.kt$BugsnagMultiPartUploadRequest$exc: Throwable</ID>
<ID>TooGenericExceptionCaught:BugsnagReleasesTask.kt$BugsnagReleasesTask$exc: Throwable</ID>
<ID>TooGenericExceptionCaught:MappingFileProvider.kt$exc: Throwable</ID>
<ID>TooGenericExceptionCaught:SharedObjectMappingFileFactory.kt$SharedObjectMappingFileFactory$e: Exception</ID>
<ID>TooGenericExceptionCaught:SharedObjectMappingFileFactory.kt$SharedObjectMappingFileFactory$ex: Throwable</ID>
<ID>TooManyFunctions:BugsnagPlugin.kt$BugsnagPlugin$BugsnagPlugin</ID>
</Whitelist>
<ID>TooManyFunctions:BugsnagPlugin.kt$BugsnagPlugin : Plugin</ID>
</CurrentIssues>
</SmellBaseline>

0 comments on commit 1fb1218

Please sign in to comment.