Skip to content

Commit

Permalink
Fix save/load bug (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicEastvillage authored Feb 12, 2022
1 parent 5abe33c commit 5ab271a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
21 changes: 16 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ jlink {
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
name = 'CleoPetra'
jvmArgs = [
'--add-opens=java.base/java.io=com.google.gson',
'--add-opens=java.base/java.util=com.google.gson',
]
}

// A lot of this stuff was borrowed from the example at https://github.com/beryx-gist/badass-jlink-example-richtextfx/blob/master/build.gradle
Expand All @@ -69,6 +73,7 @@ jlink {
installerOptions = ['--win-menu', '--win-shortcut', '--win-dir-chooser', '--win-per-user-install',
'--file-associations', 'src/main/resources/associations.properties',
'--app-version', version]

}
}

Expand All @@ -78,12 +83,18 @@ sourceSets {
test.resources.srcDirs = ['src/test/java']
}

// Build a fat jar
// Build a fat/uber jar
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'dk.aau.cs.ds306e18.tournament.Main'
}
baseName = 'cleopetra'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
archiveClassifier = 'fat'

from sourceSets.main.output

dependsOn configurations.runtimeClasspath
duplicatesStrategy(DuplicatesStrategy.INCLUDE)
from {
configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
}
}
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- Added functionality to create a team for each bot in the bot collection. #114 - NicEastvillage
- Changed radio buttons to checkboxes in RLBot settings tab. - NicEastvillage
- Fixed bug that would prevent overlay data to be written on match start. - NicEastvillage
- Fixed bug that would prevent saving due to module closedness. - NicEastvillage
- Fixed bug that would prevent saving and loading due to module closedness. - NicEastvillage

#### Version 1.7.5 - January 2021
- Updated expected bot pack path and only load bot pack on request from user. - NicEastvillage
Expand Down

0 comments on commit 5ab271a

Please sign in to comment.