Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/bin/
/build/
/charImg/
.gradle/

.DS_Store

# IDEs
.idea/
.vscode/
47 changes: 47 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// Tell gradle that this is in fact a java project
plugins {
java
}

// Add maven central as the repository to resolve dependencies
repositories {
mavenCentral()
}

// Set java version to Java 21
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}

dependencies {
testImplementation(platform("org.junit:junit-bom:5.13.2")) // Make sure junit versions are compatible
testImplementation("org.junit.jupiter:junit-jupiter") // JUnit 5 api
testImplementation("org.assertj:assertj-core:3.27.3") // AssertJ for fluent assertions

testRuntimeOnly("org.junit.platform:junit-platform-launcher") // JUnit 5 runtime support
}

// Add 'src/' as a source directory
// TODO: Sources should be move to src/main/java
sourceSets.main {
java {
srcDirs("src")
}
resources {
srcDirs("resources")
}
}

// Add 'test/' as a test source directory
// TODO: Tests should be moved to src/test/java
sourceSets.test {
java {
srcDirs("test")
}
}

tasks.test {
useJUnitPlatform() // Use JUnit 5 for testing
}
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Speedup build by enabling caching
org.gradle.caching=true
org.gradle.configuration-cache=true
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
249 changes: 249 additions & 0 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading