Files
flipper/build.gradle
dependabot[bot] 6362299f9c Bump mockito-core from 3.12.4 to 4.0.0 (#2965)
Summary:
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.12.4 to 4.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/mockito/mockito/releases">mockito-core's releases</a>.</em></p>
<blockquote>
<h2>v4.0.0</h2>
<h1>Mockito 4: Removing deprecated APIs.</h1>
<p>All of these APIs have been marked as deprecated and have been present
in Mockito for quite a while.</p>
<p>An overview of now-deleted classes/methods:</p>
<ul>
<li><code>org.mockito.Matchers</code> which was an alias for
<code>org.mockito.ArgumentMatchers</code></li>
<li><code>org.mockito.ArgumentMatchers#{anyObject,anyVararg}</code> both which were
aliases for <code>org.mockito.ArgumentMatchers#any</code></li>
<li><code>org.mockito.ArgumentMatchers#any*Of</code>, which were aliases for the same
method name without the Of and the generic parameters (which were
ignored)</li>
<li><code>org.mockito.ArgumentMatchers#{is}{Not}Null(Class)</code> which took a class
which was ignored. Aliases for the same methods without the parameter</li>
<li><code>org.mockito.MockedStatic#verify</code> which had the parameter types reversed</li>
<li><code>org.mockito.Mockito#verifyZeroInteractions</code> an alias of
<code>verifyNoMoreInteractions</code></li>
<li><code>org.mockito.Mockito#debug</code> framework integration API that we later
refactored</li>
<li><code>org.mockito.configuration.AnnotationEngine</code> which was leaking internal
APIs and instead users should use <code>org.mockito.plugins.AnnotationEngine</code></li>
<li><code>org.mockito.exceptions.verification.TooLittleActualInvocations</code> fixed
the grammar from &quot;Little&quot; to &quot;Few&quot;</li>
<li>Numerous internal APIs that we never officially supported and can now
remove</li>
<li><code>org.mockito.plugins.InstantiatorProvider</code> which was leaking internal
APIs and instead users should use InstantiatorProvider2 (we should
probably rename back to remove the number in a future major release)</li>
<li><code>org.mockito.runners</code> a package that hosted several old JUnit runners
which were no longer supported. Users should instead use
<code>org.mockito.junit.MockitoJUnitRunner</code> which is our official JUnit4
runner.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="e8f26b3785"><code>e8f26b3</code></a> Fixes <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2281">https://github.com/facebook/flipper/issues/2281</a>: Make MockedConstruction stubs close on demand (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2442">https://github.com/facebook/flipper/issues/2442</a>)</li>
<li><a href="bf480c3ec4"><code>bf480c3</code></a> Bump versions.bytebuddy from 1.11.18 to 1.11.19 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2441">https://github.com/facebook/flipper/issues/2441</a>)</li>
<li><a href="d4180a2715"><code>d4180a2</code></a> Update BND plugin to 6.0.0 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2440">https://github.com/facebook/flipper/issues/2440</a>)</li>
<li><a href="7032574ce1"><code>7032574</code></a> Remove all Incubating annotations (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2437">https://github.com/facebook/flipper/issues/2437</a>)</li>
<li><a href="c8dbc10d20"><code>c8dbc10</code></a> Fix spelling in old release notes (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2439">https://github.com/facebook/flipper/issues/2439</a>)</li>
<li><a href="40d6f6840e"><code>40d6f68</code></a> Add test for enum mocking using inline mock maker.</li>
<li><a href="6a50cc458b"><code>6a50cc4</code></a> Run CI on Java 17 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2417">https://github.com/facebook/flipper/issues/2417</a>)</li>
<li><a href="99f8a62536"><code>99f8a62</code></a> Add monospace font fallback for JavaDoc (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2434">https://github.com/facebook/flipper/issues/2434</a>)</li>
<li><a href="651feb3007"><code>651feb3</code></a> Bump versions.junitJupiter from 5.8.0 to 5.8.1 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2430">https://github.com/facebook/flipper/issues/2430</a>)</li>
<li><a href="6db7a02587"><code>6db7a02</code></a> Bump junit-platform-launcher from 1.8.0 to 1.8.1 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2432">https://github.com/facebook/flipper/issues/2432</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/mockito/mockito/compare/v3.12.4...v4.0.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.mockito:mockito-core&package-manager=gradle&previous-version=3.12.4&new-version=4.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/2965

Reviewed By: nikoant

Differential Revision: D31545927

Pulled By: passy

fbshipit-source-id: 8fb2447e3903ad213379e0ba0e270ad08e2598c9
2021-10-11 11:57:25 -07:00

108 lines
4.7 KiB
Groovy

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.5.31"
}
}
plugins {
id 'de.undercouch.download' version '4.1.2'
id 'com.github.ben-manes.versions' version '0.39.0'
}
ext.isSnapshot = { VERSION_NAME.endsWith('-SNAPSHOT') }
ext.isRelease = { ['publish', 'publishToMavenLocal'].any { gradle.startParameter.taskNames.contains(it) } }
subprojects {
repositories {
google()
mavenLocal()
mavenCentral()
jcenter()
if (isSnapshot()) {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
}
// We don't build Javadoc at this time.
tasks.withType(Javadoc).all {
enabled = false
}
}
ext {
minSdkVersion = 15
targetSdkVersion = 30
compileSdkVersion = 30
buildToolsVersion = '30.0.2'
ndkVersion = '23.0.7599858'
}
ext.deps = [
// Android support
supportAnnotations : "androidx.annotation:annotation:$ANDROIDX_VERSION",
supportAppCompat : "androidx.appcompat:appcompat:$ANDROIDX_VERSION",
supportCoreUi : "androidx.legacy:legacy-support-core-ui:$ANDROIDX_VERSION",
supportRecyclerView: "androidx.recyclerview:recyclerview:$ANDROIDX_VERSION",
supportConstraintLayout: "androidx.constraintlayout:constraintlayout:2.1.1",
supportSqlite : "androidx.sqlite:sqlite-framework:2.1.0",
supportEspresso : 'androidx.test.espresso:espresso-core:3.4.0',
supportEspressoIntents : 'androidx.test.espresso:espresso-intents:3.4.0',
supportTestRunner : 'androidx.test:runner:1.4.0',
// Arch
archPaging : 'android.arch.paging:runtime:1.0.1',
// First-party
soloader : 'com.facebook.soloader:soloader:0.10.1',
fbjni : 'com.facebook.fbjni:fbjni:0.2.2',
screenshot : 'com.facebook.testing.screenshot:core:0.14.0',
boltsTasks : 'com.parse.bolts:bolts-tasks:1.4.0',
// Annotations
jsr305 : 'com.google.code.findbugs:jsr305:3.0.2',
inferAnnotations : 'com.facebook.infer.annotation:infer-annotation:0.18.0',
proguardAnnotations: 'com.facebook.yoga:proguard-annotations:1.19.0',
// Litho
lithoAnnotations : "com.facebook.litho:litho-annotations:$LITHO_VERSION",
lithoCore : "com.facebook.litho:litho-core:$LITHO_VERSION",
lithoEditorCore : "com.facebook.litho:litho-editor-core:$LITHO_VERSION",
lithoEditorFlipper : "com.facebook.litho:litho-editor-flipper:$LITHO_VERSION",
lithoSectionsAnnotations: "com.facebook.litho:litho-sections-annotations:$LITHO_VERSION",
lithoSectionsDebug : "com.facebook.litho:litho-sections-debug:$LITHO_VERSION",
lithoSectionsCore : "com.facebook.litho:litho-sections-core:$LITHO_VERSION",
lithoSectionsWidget : "com.facebook.litho:litho-sections-widget:$LITHO_VERSION",
lithoWidget : "com.facebook.litho:litho-widget:$LITHO_VERSION",
lithoProcessor : "com.facebook.litho:litho-processor:$LITHO_VERSION",
lithoSectionsProcessor: "com.facebook.litho:litho-sections-processor:$LITHO_VERSION",
lithoFresco : "com.facebook.litho:litho-fresco:$LITHO_VERSION",
lithoTesting : "com.facebook.litho:litho-testing:$LITHO_VERSION",
// Debugging and testing
guava : 'com.google.guava:guava:23.0',
robolectric : 'org.robolectric:robolectric:4.5.1',
junit : 'junit:junit:4.13.2',
hamcrest : 'org.hamcrest:hamcrest-library:2.2',
mockito : 'org.mockito:mockito-core:4.0.0',
okhttp3 : 'com.squareup.okhttp3:okhttp:4.9.2',
leakcanary : 'com.squareup.leakcanary:leakcanary-android:1.6.3',
leakcanary2 : 'com.squareup.leakcanary:leakcanary-android:2.6',
protobuf : 'com.google.protobuf:protobuf-java:3.18.1',
testCore : 'androidx.test:core:1.4.0',
testRules : 'androidx.test:rules:1.4.0',
// Plugin dependencies
frescoFlipper : 'com.facebook.fresco:flipper:2.5.0',
frescoStetho : 'com.facebook.fresco:stetho:2.5.0',
fresco : 'com.facebook.fresco:fresco:2.5.0'
]