Skip to content

Commit

Permalink
Merge remote-tracking branch 'MegamekMaster/master' into ForceAssignable
Browse files Browse the repository at this point in the history
# Conflicts:
#	megamek/src/megamek/client/ui/swing/PlayerListDialog.java
#	megamek/src/megamek/common/Mech.java
#	megamek/src/megamek/common/SmallCraft.java
#	megamek/src/megamek/common/Tank.java
#	megamek/src/megamek/common/weapons/MissileWeaponHandler.java
  • Loading branch information
SJuliez committed Jan 8, 2023
2 parents f073aee + f47ff9b commit 81692e4
Show file tree
Hide file tree
Showing 688 changed files with 15,537 additions and 4,472 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
matrix:
os: [ ubuntu-latest ] # For CI/CD running on *nix is sufficient
java-distribution: [ temurin ]
java-version: [ 11 ]
java-version: [ 11, 17 ]
fail-fast: false

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
matrix:
os: [ ubuntu-latest ] # For Code QL running on *nix is sufficient
java-distribution: [ temurin ]
java-version: [ 11 ]
java-version: [ 17 ]

steps:
# Checkout the Pull Request source and put it in: ./megamek
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
os: [ ubuntu-latest ] # For Code QL running on *nix is sufficient
language: [ 'java' ]
java-distribution: [ temurin ]
java-version: [ 11 ]
java-version: [ 17 ]
fail-fast: false

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
matrix:
os: [ ubuntu-latest, windows-latest ]
java-distribution: [ temurin ]
java-version: [ 11 ]
java-version: [ 11, 17 ]
fail-fast: false

name: Nightly MegaMek CI ${{ matrix.os }} on ${{ matrix.java-distribution }} JDK ${{ matrix.java-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-maven-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
matrix:
os: [ ubuntu-latest ] # For Maven Repository Update running on *nix is sufficient
java-distribution: [ temurin ]
java-version: [ 11 ]
java-version: [ 17 ]

steps:
# Put the MM repo in a subfolder to make updating the Maven repo easier
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-boards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
matrix:
os: [ ubuntu-latest ] # For Board Validation running on *nix is sufficient
java-distribution: [ temurin ]
java-version: [ 11 ]
java-version: [ 17 ]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ allprojects {

subprojects {
group = 'org.megamek'
version = '0.49.11-SNAPSHOT'
version = '0.49.12-SNAPSHOT'
}

ext {
Expand Down
11 changes: 8 additions & 3 deletions megamek/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies {
implementation 'com.formdev:flatlaf:2.6'
implementation 'com.github.ikkisoft:SerialKiller:master-SNAPSHOT'
implementation 'com.sun.mail:jakarta.mail:2.0.1'
implementation 'com.thoughtworks.xstream:xstream:1.4.14'
implementation 'com.thoughtworks.xstream:xstream:1.4.19'
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.0'
implementation 'org.apache.commons:commons-text:1.10.0'
implementation 'org.apache.logging.log4j:log4j-core:2.19.0'
Expand All @@ -40,13 +40,13 @@ dependencies {
runtimeOnly 'org.glassfish.jaxb:jaxb-runtime:4.0.1'

testImplementation 'org.junit.jupiter:junit-jupiter:5.9.1'
testImplementation 'org.mockito:mockito-core:4.9.0'
testImplementation 'org.mockito:mockito-core:4.10.0'
}

mainClassName = 'megamek.MegaMek'

ext {
mmJvmOptions = ['-Xmx2048m']
mmJvmOptions = ['-Xmx2048m', '--add-opens', 'java.base/java.util=ALL-UNNAMED', '--add-opens', 'java.base/java.util.concurrent=ALL-UNNAMED']
data = 'data'
unitFiles = "${data}/mechfiles"
rats = "${data}/rat"
Expand All @@ -64,12 +64,17 @@ ext {
scriptTemplate = "${scriptsDir}/startScriptTemplate.txt"
}

run {
jvmArgs = mmJvmOptions
}

jar {
archiveFileName = 'MegaMek.jar'
manifest {
attributes "Main-Class" : mainClassName
attributes "Class-Path" : project.sourceSets.main.runtimeClasspath.files
.findAll { it.name.endsWith(".jar") }.collect { "${lib}/${it.name}" }.join(' ')
attributes "Add-Opens" : 'java.base/java.util java.base/java.util.concurrent'
attributes "Build-Date" : LocalDateTime.now()
}
}
Expand Down
Loading

0 comments on commit 81692e4

Please sign in to comment.