-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
…elastic#73493)" The recent upgrade of the Azure SDK has caused a few test failures that have been difficult to debug and do not yet have a fix. In particular, a change to the netty reactor resolving (reactor/reactor-netty#1655). We need to wait for a fix for that issue, so this reverts commit f454cef. relates elastic#73493
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
8e819a81bca88d1e88137336f64531a53db0a4ad |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
20218de83c906348283f548c255650fd06030424 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4f30dbc462b26c588dffc0eb7552caef1a0f549e |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
927c8563a1662d869b145e70ce82ad89100f2c90 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
c73443adb9d085d5dc2d5b7f3bdd91d5963976f7 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
eb81e1f0eaa99e75983bf3d28cae2b103e0f3a34 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
415ea7f326635743aec952fe2349ca45959e94a7 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import org.elasticsearch.gradle.internal.JavaClassPublicifier; | ||
|
||
apply plugin: 'elasticsearch.java' | ||
apply plugin: 'com.github.johnrengelman.shadow' | ||
|
||
configurations { | ||
originalJar { | ||
transitive = false | ||
} | ||
} | ||
|
||
dependencies { | ||
originalJar "com.azure:azure-storage-blob:${project.parent.versions.azure}" | ||
implementation "com.azure:azure-storage-blob:${project.parent.versions.azure}" | ||
} | ||
|
||
// We have to rewrite the service classes to make them public to avoid | ||
// granting the permission "java.lang.reflect.ReflectPermission" "newProxyInPackage" | ||
// to this plugin. | ||
// | ||
// There are plans to make those public in the azure sdk side, but in the meanwhile | ||
// we just do this workaround | ||
// https://github.com/Azure/azure-sdk-for-java/issues/12829#issuecomment-736755543 | ||
List<String> classesToRewrite = ['com/azure/storage/blob/implementation/AppendBlobsImpl$AppendBlobsService.class', | ||
'com/azure/storage/blob/implementation/BlobsImpl$BlobsService.class', | ||
'com/azure/storage/blob/implementation/BlockBlobsImpl$BlockBlobsService.class', | ||
'com/azure/storage/blob/implementation/ContainersImpl$ContainersService.class', | ||
'com/azure/storage/blob/implementation/DirectorysImpl$DirectorysService.class', | ||
'com/azure/storage/blob/implementation/PageBlobsImpl$PageBlobsService.class', | ||
'com/azure/storage/blob/implementation/ServicesImpl$ServicesService.class'] | ||
|
||
tasks.register('extractClientClasses', Copy).configure { | ||
from({ zipTree(configurations.originalJar.singleFile) }) { | ||
include "com/azure/storage/blob/implementation/**" | ||
} | ||
into project.file('build/original') | ||
} | ||
|
||
def modifiedOutput = project.layout.buildDirectory.dir('modified') | ||
def makePublic = tasks.register('makeClientClassesPublic', JavaClassPublicifier) { | ||
dependsOn 'extractClientClasses' | ||
classFiles = classesToRewrite | ||
inputDir = project.layout.buildDirectory.dir('original') | ||
outputDir = modifiedOutput | ||
} | ||
|
||
sourceSets.main.output.dir(modifiedOutput, builtBy: makePublic) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
d5e1258ba153b5e27c90b7c9cad262e6fc171d24 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1c72bdc36faad65f53dd160becc38dd93a7356e2 |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
42d0439a676e51bb1dea809c60e8a925bb07477c |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
8e819a81bca88d1e88137336f64531a53db0a4ad |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
20218de83c906348283f548c255650fd06030424 |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4f30dbc462b26c588dffc0eb7552caef1a0f549e |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ca35293757f80cd2460c80791757db261615dbe7 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
df75527823f9fd13f6bd9d9098bd9eb786dcafb5 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
927c8563a1662d869b145e70ce82ad89100f2c90 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
c73443adb9d085d5dc2d5b7f3bdd91d5963976f7 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6a2064cc62c7d18719742e1e101199c04c66356c |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
eb81e1f0eaa99e75983bf3d28cae2b103e0f3a34 |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
415ea7f326635743aec952fe2349ca45959e94a7 |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
f5787f994a9a810c0986418232e06fcf4afc1216 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
41022546d07f1499fb9d8617bba4a1a89d3549db |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bbd163bbdb4d6340298b61a6789cc174fb589868 |
This file was deleted.