Skip to content

Commit

Permalink
Solve Gradle deprecation warnings around shadowJar
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
alpar-t committed May 9, 2018
1 parent 3a912df commit 151de39
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions benchmarks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ buildscript {
}
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2'
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
}
}

apply plugin: 'elasticsearch.build'
// build an uberjar with all benchmarks
apply plugin: 'com.github.johnrengelman.shadow'
// have the shadow plugin provide the runShadow task
apply plugin: 'application'

// needs to be set here see: https://github.com/johnrengelman/shadow/issues/336
apply plugin: 'application' // have the shadow plugin provide the runShadow task
mainClassName = 'org.openjdk.jmh.Main'
apply plugin: 'com.github.johnrengelman.shadow' // build an uberjar with all benchmarks

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

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

test.enabled = false

Expand Down

0 comments on commit 151de39

Please sign in to comment.