Skip to content

Commit 07217e2

Browse files
authored
Upgrade Gradle/Wrapper to latest version (#1123)
* Upgrade Gradle/Wrapper to latest version * Upgrade Gradle/Wrapper to latest version * Update gradle wrapper to version 6.8.3 * add ASF license header to generated gradle-wrapper.properties file * Update README to reflect current gradlew version supported
1 parent c867379 commit 07217e2

6 files changed

Lines changed: 35 additions & 44 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ The project includes its own packaged version of Gradle called Gradle Wrapper wh
212212
213213
#### Using your own local Gradle to build
214214
215-
Alternatively, you can choose to [Install Gradle](https://gradle.org/install/) and use it instead of the project's Gradle Wrapper. If so, you would use the `gradle` command instead of `gradlew`. If you do elect to use your own Gradle, verify its version is `5.5.1` or higher:
215+
Alternatively, you can choose to [Install Gradle](https://gradle.org/install/) and use it instead of the project's Gradle Wrapper. If so, you would use the `gradle` command instead of `gradlew`. If you do elect to use your own Gradle, verify its version is `6.8.1` or higher:
216216

217217
```sh
218218
gradle -version
@@ -304,7 +304,7 @@ go get github.com/project/libname
304304
Using a release tag:
305305

306306
```sah
307-
go get github.com/project/libname
307+
go get github.com/project/libname@1.1.0
308308
```
309309

310310
Using a commit hash:

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ golang {
4444
// into a "/vendor" directory and use them to build the project (which will fail)
4545
installDependencies.enabled = false
4646
resolveBuildDependencies.enabled = false
47+
resolveTestDependencies.enabled = false
48+
49+
// Disable "go vet" and "gofmt" as gogradle uses deprecated syntax
50+
goVet.enabled = false
51+
gofmt.enabled = false
4752

4853
// File exclusions for the Apache Rat scanning tool
4954
rat {

gradle/wrapper/gradle-wrapper.jar

5.51 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
#
1717
distributionBase=GRADLE_USER_HOME
1818
distributionPath=wrapper/dists
19+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
1920
zipStoreBase=GRADLE_USER_HOME
2021
zipStorePath=wrapper/dists
21-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-bin.zip

gradlew

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

gradlew.bat

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

0 commit comments

Comments
 (0)