@@ -19,7 +19,7 @@ plugins {
19
19
id ' org.gradlex.extra-java-module-info' version ' 1.9'
20
20
}
21
21
22
- def dotGitFile = new File ( " $projectDir /.git" )
22
+ def dotGitFile = file " $projectDir /.git"
23
23
def gitDir
24
24
if (dotGitFile. isFile()) {
25
25
def gitDirConfigValue = dotGitFile. readLines(). stream(). mapMulti { line , downstream ->
@@ -181,7 +181,7 @@ extraJavaModuleInfo {
181
181
tasks. register(' generateModuleInfo' ) {
182
182
description = " Generates the \' $moduleInfoFile \' source file"
183
183
doLast {
184
- new File (moduleInfoFile). write """ \
184
+ file (moduleInfoFile). write """ \
185
185
@SuppressWarnings({"requires-automatic", "Java9RedundantRequiresStatement"})
186
186
module de.bwravencl.controllerbuddy {
187
187
exports de.bwravencl.controllerbuddy.gui;
@@ -335,7 +335,7 @@ tasks.register('generateConstants') {
335
335
licensesHtmlStringBuilder. insert(licensesHtmlStringBuilder. lastIndexOf(' </table>' ), ' <tr><td>SDL_GameControllerDB</td><td>gamecontrollerdb.txt</td><td>zlib License</td><td><a href=\' https://raw.githubusercontent.com/mdqinc/SDL_GameControllerDB/master/LICENSE\' >Show license agreement</a></td></tr>' )
336
336
licensesHtmlStringBuilder. insert(licensesHtmlStringBuilder. lastIndexOf(' </body>' ), ' </center>' )
337
337
338
- def file = new File ( constantsFile)
338
+ def file = file constantsFile
339
339
file. getParentFile(). mkdirs()
340
340
file. write(""" \
341
341
package de.bwravencl.controllerbuddy.constants;\n
0 commit comments