Skip to content

Commit

Permalink
Resolved warnings from Gradle.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vest committed Jan 13, 2025
1 parent 98e865c commit d299d04
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Build PCGen with Gradle

on:
push:
branches: [ "gh_build" ] # use current branch for testing purposes only
branches: [ "gh_build" ] # use the current branch for testing purposes only
pull_request:
branches: [ "master" ]

Expand Down
26 changes: 14 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,9 @@ tasks.named("jpackageImage") {
copy {
from layout.projectDirectory.dir("installers/mac-installer")
include "MacDirLauncher"
fileMode 0755
filePermissions {
unix(0755)
}
into layout.buildDirectory.dir("jpackage/PcGen.app/Contents/MacOS")
}
ant.replace(file: layout.buildDirectory.file("jpackage/PcGen.app/Contents/Info.plist").get(),
Expand Down Expand Up @@ -570,7 +572,7 @@ tasks.register("downloadJRE") {
return
} else if (jreDir.exists()) {
println "Delete the previously downloaded JDK at ${jreDir} as outdated. JavaFX modules will be deleted from jdkDir/jmods."
project.delete(jreDir)
delete(jreDir)
}

println("Downloading Java ${major} ${arch} for ${os} from ${url}")
Expand Down Expand Up @@ -602,7 +604,7 @@ tasks.register("downloadJRE") {
}
}

project.delete(archFile)
delete(archFile)
}

file("${projectDir}/jre/${os}/jre_${arch}").list().each { f ->
Expand Down Expand Up @@ -969,17 +971,17 @@ tasks.named("clean") {

doLast {
// Delete a file generated by pluginbuild.xml
project.delete(layout.projectDirectory.file("code/manifest"))
delete(layout.projectDirectory.file("code/manifest"))

// Delete plugin folders
project.delete(
layout.projectDirectory.dir("plugins/bonusplugins"),
layout.projectDirectory.dir("plugins/converterplugins"),
layout.projectDirectory.dir("plugins/jepplugins"),
layout.projectDirectory.dir("plugins/lstplugins"),
layout.projectDirectory.dir("plugins/outputplugins"),
layout.projectDirectory.dir("plugins/preplugins"),
layout.projectDirectory.dir("plugins/systemlstplugins")
delete(
layout.projectDirectory.dir("plugins/bonusplugins"),
layout.projectDirectory.dir("plugins/converterplugins"),
layout.projectDirectory.dir("plugins/jepplugins"),
layout.projectDirectory.dir("plugins/lstplugins"),
layout.projectDirectory.dir("plugins/outputplugins"),
layout.projectDirectory.dir("plugins/preplugins"),
layout.projectDirectory.dir("plugins/systemlstplugins")
)
}
}

0 comments on commit d299d04

Please sign in to comment.