Skip to content

Commit 151de39

Browse files
committed
Solve Gradle deprecation warnings around shadowJar
- Apply workaround for: GradleUp/shadow#336 - bump plugin to 2.0.4 Changes between 2.0.2 and 2.0.4 of the plugin: ``` 477db40 12 days ago [email protected] Release 2.0.4 3e3da37 3 weeks ago [email protected] Remove internal Gradle API and annotation internal getters on shadow jar. 31e2380 3 weeks ago [email protected] Close input streams. Closes elastic#364 f712cc8 3 weeks ago [email protected] Upgrade ASM to 6.1.1 to address perf issues. Closes elastic#374 2f94b2b 3 weeks ago [email protected] next version 23bbf3d 7 weeks ago [email protected] Add some gradle versions. Update changelog for 2.0.3 7435c74 7 weeks ago [email protected] Merge pull request elastic#367 from ttsiebzehntt/366-java10 325c002 7 weeks ago [email protected] Update ASM to 6.1 94550e5 3 months ago [email protected] Merge pull request elastic#356 from sgnewson/update-file-to-files 66b691e 4 months ago [email protected] Merge pull request elastic#358 from 3flex/patch-1 14761b1 4 months ago [email protected] fix markdown for User Guide URL in issue template a3f6984 4 months ago [email protected] update inputs.file to inputs.files, to remove warning ``` closes elastic#30389
1 parent 3a912df commit 151de39

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

benchmarks/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@ buildscript {
2424
}
2525
}
2626
dependencies {
27-
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2'
27+
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
2828
}
2929
}
3030

3131
apply plugin: 'elasticsearch.build'
32-
// build an uberjar with all benchmarks
33-
apply plugin: 'com.github.johnrengelman.shadow'
34-
// have the shadow plugin provide the runShadow task
35-
apply plugin: 'application'
32+
33+
// needs to be set here see: https://github.com/johnrengelman/shadow/issues/336
34+
apply plugin: 'application' // have the shadow plugin provide the runShadow task
35+
mainClassName = 'org.openjdk.jmh.Main'
36+
apply plugin: 'com.github.johnrengelman.shadow' // build an uberjar with all benchmarks
3637

3738
// Not published so no need to assemble
3839
tasks.remove(assemble)
3940
build.dependsOn.remove('assemble')
4041

4142
archivesBaseName = 'elasticsearch-benchmarks'
42-
mainClassName = 'org.openjdk.jmh.Main'
4343

4444
test.enabled = false
4545

0 commit comments

Comments
 (0)