Skip to content

Commit 43a8d4e

Browse files
author
John Engelman
committed
chore: Upgrade to Gradle 6.0 as the project minimum.
1 parent 7e99c02 commit 43a8d4e

10 files changed

Lines changed: 74 additions & 30 deletions

File tree

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ buildscript {
1818
}
1919

2020
plugins {
21-
id 'com.gradle.build-scan' version '2.1'
2221
id 'groovy'
2322
id 'project-report'
2423
id 'idea'
2524
id 'java-gradle-plugin'
2625
}
2726

2827
// Remove the gradleApi so it isn't merged into the jar file.
29-
configurations.compile.dependencies.remove dependencies.gradleApi()
28+
configurations.named(JavaPlugin.API_CONFIGURATION_NAME) {
29+
dependencies.remove(project.dependencies.gradleApi())
30+
}
3031

3132
gradlePlugin {
3233
automatedPublishing = false

buildSrc/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ File projectBuildFile = file('../gradle/dependencies.gradle')
1616

1717
//Use this parse command because Groovy wants to use the file name as the classname
1818
//which fails if your Gradle build file has been renamed to contain an invalid character (i.e. '-')
19-
DelegatingScript script = (DelegatingScript)sh.parse(projectBuildFile.text.replaceAll('shadow', 'compile'), 'GradlePlugins')
19+
DelegatingScript script = (DelegatingScript)sh.parse(projectBuildFile.text.replaceAll('shadow', 'implementation'), 'GradlePlugins')
2020
script.setDelegate(holder)
2121

2222
//Resolve the project main Gradle file against our ScriptHolder

gradle/wrapper/gradle-wrapper.jar

3.42 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 31 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 20 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

settings.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
rootProject.name = 'shadow'
1+
plugins {
2+
id 'com.gradle.enterprise' version '3.1.1'
3+
}
4+
5+
rootProject.name = 'shadow'

src/docs/changes/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
# Change Log
2+
## v6.0.0 (2020-03-07)
3+
* Required Gradle 6.0+
4+
* Fix Gradle 7 deprecation warnings [#530](https://github.com/johnrengelman/shadow/issues/530)
5+
* [Yahor Berdnikau](https://github.com/Tapchicoma) - Fix issues with Gradle API being embedded into published JAR [#527](https://github.com/johnrengelman/shadow/issues/527)
6+
* [Dmitry Vyazelenko](https://github.com/vyazelenko) - ASM updates to support latest Java verisons [#549](https://github.com/johnrengelman/shadow/pull/549)
7+
* [ejjcase](https://github.com/ejjcase) - Support exposing shadowed project dependencies via POM [#543](https://github.com/johnrengelman/shadow/pull/543)
8+
* [Artem Chubaryan](https://github.com/Armaxis) - Performance optimizations [#535](https://github.com/johnrengelman/shadow/pull/535)
9+
* [Trask Stalnaker](https://github.com/trask) - Fix exclude patterns on Windows [#539](https://github.com/johnrengelman/shadow/pull/539)
10+
211
## v5.2.0 (2019-11-10)
312
* [Inez Korczyński](https://github.com/inez) - Performance optimization when evaluating relocation paths [#507](https://github.com/johnrengelman/shadow/pull/507)
413
* [Jeff Adler](https://github.com/jeffalder) - Fix remapping issues with multi release JARS [#526](https://github.com/johnrengelman/shadow/pull/526)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.2.0
1+
6.0.0

src/test/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowPluginSpec.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ class ShadowPluginSpec extends PluginSpecification {
8686
assert output.exists()
8787

8888
where:
89-
version << ['5.0', '5.1', '5.2', '5.3', '5.4', '5.5', '5.6', '6.0']
89+
version << ['6.0', '6.1', '6.2']
9090
}
9191

92-
def 'Error in Gradle versions < 5.0'() {
92+
def 'Error in Gradle versions < 6.0'() {
9393
given:
9494
GradleRunner versionRunner = GradleRunner.create()
95-
.withGradleVersion('4.5')
95+
.withGradleVersion('5.5')
9696
.withArguments('--stacktrace')
9797
.withProjectDir(dir.root)
9898
.forwardOutput()

0 commit comments

Comments
 (0)