Skip to content

Commit

Permalink
Avoid dangling open file handle (fixes ben-manes#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Feb 28, 2021
1 parent 07cd5c0 commit 9bec165
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@

version: 2
updates:
- package-ecosystem: "gradle"
directory: "/" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/" # Location of package manifests
schedule:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repositories {
}

group = 'com.github.ben-manes'
version = '0.37.0'
version = '0.38.0'

sourceCompatibility = '1.8'

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class DependencyUpdatesReporter {
File filename = new File(outputDir, reportfileName + '.' + reporter.getFileExtension())
project.file(outputDir).mkdirs()
File outputFile = project.file(filename)
outputFile.newPrintWriter().withPrintWriter { PrintWriter pw ->
outputFile.withPrintWriter { PrintWriter pw ->
def result = buildBaseObject()
reporter.write(pw, result)
}
Expand Down

0 comments on commit 9bec165

Please sign in to comment.