Skip to content

Commit

Permalink
Merge pull request #5957 from rjhancock/rjh-additional-files-to-ignore
Browse files Browse the repository at this point in the history
Added user prefs files to ignore for build
  • Loading branch information
HammerGS authored Feb 2, 2025
2 parents cf2ebad + b42ca37 commit 2a57df6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,4 @@ MekHQ.l4j.ini
mhq-revision.txt

/MekHQ/docs/OfficialUnitList.txt
*.iml
11 changes: 10 additions & 1 deletion MekHQ/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
id 'checkstyle'
id 'com.palantir.git-version' version '3.1.0'
id 'edu.sc.seis.launch4j' version '3.0.6'
id "io.sentry.jvm.gradle" version "4.11.0"
id "io.sentry.jvm.gradle" version "5.1.0"
id 'jacoco'
id 'java'
id 'org.ec4j.editorconfig' version '0.1.0'
Expand Down Expand Up @@ -179,6 +179,15 @@ task stageFiles(type: Copy) {
include "sentry.properties"
include "*.ini"

// User Config Files
exclude "${mmconf}/clientsettings.xml"
exclude "${mmconf}/gameoptions.xml"
exclude "${mmconf}/megameklab.properties"
exclude "${mmconf}/megameklab.properties.bak"
exclude "${mmconf}/mhq.preferences"
exclude "${mmconf}/mm.preferences"
exclude "${mmconf}/mml.preferences"

into fileStagingDir

doLast {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
3 changes: 1 addition & 2 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down

0 comments on commit 2a57df6

Please sign in to comment.