Skip to content

Commit

Permalink
Bump mockito from 5.14.1 to 5.14.2, objenesis from 3.2 to 3.3 and byt…
Browse files Browse the repository at this point in the history
…ebuddy from 1.15.4 to 1.15.10 (#16655) (#16657)

* Bump mockito from 5.14.1 to 5.14.2



* Update objenesis from 3.2 to 3.3



* Add to CHANGELOG



* Update bytebuddy from 1.15.4 to 1.15.10



* Update README



* Add grant to mockito-core



* Add perms



---------


(cherry picked from commit 3b4fa0e)

Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent a48ddce commit df175d1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Bump `com.nimbusds:nimbus-jose-jwt` from 9.41.1 to 9.46 ([#16611](https://github.com/opensearch-project/OpenSearch/pull/16611))
- Bump `lycheeverse/lychee-action` from 2.0.2 to 2.1.0 ([#16610](https://github.com/opensearch-project/OpenSearch/pull/16610))
- Bump `me.champeau.gradle.japicmp` from 0.4.4 to 0.4.5 ([#16614](https://github.com/opensearch-project/OpenSearch/pull/16614))
- Bump `mockito` from 5.14.1 to 5.14.2, `objenesis` from 3.2 to 3.3 and `bytebuddy` from 1.15.4 to 1.15.10 ([#16655](https://github.com/opensearch-project/OpenSearch/pull/16655))

### Changed

Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ bouncycastle="1.78"
randomizedrunner = "2.7.1"
junit = "4.13.2"
hamcrest = "2.1"
mockito = "5.14.1"
objenesis = "3.2"
bytebuddy = "1.15.4"
mockito = "5.14.2"
objenesis = "3.3"
bytebuddy = "1.15.10"

# benchmark dependencies
jmh = "1.35"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ grant codeBase "${codebase.mockito-core}" {
permission java.lang.RuntimePermission "accessDeclaredMembers";
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
permission java.lang.RuntimePermission "getClassLoader";

permission java.lang.RuntimePermission "createClassLoader";
permission java.lang.RuntimePermission "net.bytebuddy.createJavaDispatcher";
permission java.lang.reflect.ReflectPermission "newProxyInPackage.net.bytebuddy.utility";
permission java.lang.reflect.ReflectPermission "newProxyInPackage.net.bytebuddy.dynamic.loading";
permission java.lang.reflect.ReflectPermission "newProxyInPackage.net.bytebuddy.description.type";
permission java.lang.reflect.ReflectPermission "newProxyInPackage.net.bytebuddy.description.method";
};

grant codeBase "${codebase.objenesis}" {
Expand Down
3 changes: 2 additions & 1 deletion test/framework/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ thirdPartyAudit.ignoreMissingClasses(
'org.apache.log4j.Priority',
'org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher',
'org.opentest4j.AssertionFailedError',
'net.bytebuddy.agent.ByteBuddyAgent'
'net.bytebuddy.agent.ByteBuddyAgent',
'net.bytebuddy.agent.Installer'
)
// TODO - OpenSearch remove this violation. Issue: https://github.com/opensearch-project/OpenSearch/issues/420
thirdPartyAudit.ignoreViolations(
Expand Down

0 comments on commit df175d1

Please sign in to comment.