Skip to content

Commit

Permalink
Add git attributes to control cr/lf of files
Browse files Browse the repository at this point in the history
  • Loading branch information
markjfisher committed Dec 4, 2022
1 parent 9fa8f3a commit 5fa57ed
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# force LF everywhere
* text=lf

# except .bat files
*.bat text eol=crlf

# add binary file types
*.jar binary
*.png binary
*.obj binary
*.ttf binary
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ logbackEncoderVersion=6.4
kotlinLoggingVersion=2.0.3

junitJupiterEngineVersion=5.7.0
assertJVersion=3.18.1
assertJVersion=3.23.1
mockkVersion=1.10.2

org.gradle.parallel=true
Expand Down
3 changes: 2 additions & 1 deletion visualisations/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.apache.tools.ant.taskdefs.condition.Os

plugins {
kotlin("jvm")
Expand Down Expand Up @@ -29,7 +30,7 @@ val lwjglVersion: String by project
val glnVersion: String by project
val jomlVersion: String by project

val lwjglNatives = "natives-linux"
val lwjglNatives = "natives-" + if (Os.isFamily(Os.FAMILY_WINDOWS)) "windows" else "linux"

dependencies {
implementation(kotlin("stdlib-jdk8"))
Expand Down
2 changes: 1 addition & 1 deletion visualisations/src/main/kotlin/engine/GameWorld.kt
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ abstract class GameWorld<T : GridItemData>(

// Main Options for application, games should set any additional data needed on the gameOptions extensions
val globalOptions = GlobalOptions(
optionsName = "Octopus Options",
optionsName = "Options",
gameOptions = GameOptions(
pauseGame = true,
gameSpeed = 5,
Expand Down

0 comments on commit 5fa57ed

Please sign in to comment.