Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gabriel Waikin Loh Matienzo] iP #504

Open
wants to merge 40 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d839859
Add Gradle support
May 24, 2020
3e87c13
Level-1
GabrielWLM Aug 19, 2021
dc74ffb
Level-2
GabrielWLM Aug 19, 2021
011e3c4
Level-2
GabrielWLM Aug 19, 2021
7645743
Level-3
GabrielWLM Aug 19, 2021
23d0603
Level-4
GabrielWLM Aug 19, 2021
58e344f
Level-5
GabrielWLM Aug 19, 2021
54a6d63
Level-6
GabrielWLM Aug 19, 2021
d2e0d94
branch-Level-7
GabrielWLM Sep 3, 2021
cf01927
branch-Level-8
GabrielWLM Sep 3, 2021
22e65ad
Merge branch 'branch-Level-7'
GabrielWLM Sep 3, 2021
ecf6048
Merge branch 'branch-Level-8'
GabrielWLM Sep 3, 2021
d4758a7
A-MoreOOP
GabrielWLM Sep 3, 2021
0e04a59
A-Packages
GabrielWLM Sep 3, 2021
71bc434
A-JUnit
GabrielWLM Sep 3, 2021
181c271
A-Jar
GabrielWLM Sep 3, 2021
34e99fe
A-JavaDoc
GabrielWLM Sep 3, 2021
402584f
A-CodingStandard
GabrielWLM Sep 3, 2021
39ddf68
Level-9
GabrielWLM Sep 3, 2021
854ba85
Merge branch 'branch-A-JavaDoc'
GabrielWLM Sep 3, 2021
d393651
Merge branch 'branch-A-CodingStandard'
GabrielWLM Sep 3, 2021
8341997
Merge branch 'branch-Level-9'
GabrielWLM Sep 3, 2021
3ca7ec2
A-Gradle
GabrielWLM Sep 3, 2021
dd84115
Merge branch 'branch-A-Gradle'
GabrielWLM Sep 3, 2021
335e18d
Level-10
GabrielWLM Sep 3, 2021
4d72ffc
Level-10
GabrielWLM Sep 3, 2021
6a1743f
Merge branch 'branch-Level-10'
GabrielWLM Sep 3, 2021
516232c
Update sample data
GabrielWLM Sep 10, 2021
f2d95fa
A-Assertions
GabrielWLM Sep 10, 2021
9c9f691
A-CodeQuality
GabrielWLM Sep 10, 2021
dacc19b
Merge pull request #1 from GabrielWLM/branch-A-Assertions
GabrielWLM Sep 10, 2021
62a1cef
Merge branch 'master' into branch-A-CodeQuality
GabrielWLM Sep 10, 2021
70a96dd
Merge pull request #2 from GabrielWLM/branch-A-CodeQuality
GabrielWLM Sep 10, 2021
0378158
Merge pull request #4 from GabrielWLM/add-gradle-support
GabrielWLM Sep 16, 2021
501f341
Refactor duke
GabrielWLM Sep 17, 2021
e19cd3e
import junit dependencies and improve code quality
GabrielWLM Sep 20, 2021
4b8fc0f
add README and Ui screenshot
GabrielWLM Sep 22, 2021
f043b50
Set theme jekyll-theme-modernist
GabrielWLM Sep 22, 2021
8000bc1
fix folder creation and jar execution
GabrielWLM Sep 27, 2021
4fc6227
Merge branch 'master' of https://github.com/GabrielWLM/ip
GabrielWLM Sep 27, 2021
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
34 changes: 17 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# IDEA files
/.idea/
/out/
/*.iml

# Gradle build files
/.gradle/
/build/
src/main/resources/docs/

# MacOS custom attributes files created by Finder
.DS_Store
*.iml
bin/

/text-ui-test/ACTUAL.txt
text-ui-test/EXPECTED-UNIX.TXT
# IDEA files
/.idea/
/out/
/*.iml
# Gradle build files
/.gradle/
/build/
src/main/resources/docs/
# MacOS custom attributes files created by Finder
.DS_Store
*.iml
bin/
/text-ui-test/ACTUAL.txt
text-ui-test/EXPECTED-UNIX.TXT
34 changes: 34 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
z<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ip</name>
<comment>Project ip created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
<filteredResources>
<filter>
<id>1632124959946</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
13 changes: 13 additions & 0 deletions .settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
arguments=
auto.sync=false
build.scans.enabled=false
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
connection.project.dir=
eclipse.preferences.version=1
gradle.user.home=
java.home=C\:/Program Files/Java/jdk-11.0.9
jvm.arguments=
offline.mode=false
override.workspace.settings=true
show.console.view=true
show.executions.view=true
18 changes: 9 additions & 9 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Contributors

Display | Name | Github Profile | Homepage
---|:---:|:---:|:---:
![](https://avatars0.githubusercontent.com/u/22460123?s=100) | Jeffry Lum | [Github](https://github.com/j-lum/) | [Homepage](https://se.kasugano.moe)
![](https://avatars0.githubusercontent.com/u/1673303?s=100) | Damith C. Rajapakse | [Github](https://github.com/damithc/) | [Homepage](https://www.comp.nus.edu.sg/~damithch/)
# I would like to join this list. How can I help the project

For more information, please refer to our [contributor's guide](https://oss-generic.github.io/process/).
# Contributors
Display | Name | Github Profile | Homepage
---|:---:|:---:|:---:
![](https://avatars0.githubusercontent.com/u/22460123?s=100) | Jeffry Lum | [Github](https://github.com/j-lum/) | [Homepage](https://se.kasugano.moe)
![](https://avatars0.githubusercontent.com/u/1673303?s=100) | Damith C. Rajapakse | [Github](https://github.com/damithc/) | [Homepage](https://www.comp.nus.edu.sg/~damithch/)
# I would like to join this list. How can I help the project
For more information, please refer to our [contributor's guide](https://oss-generic.github.io/process/).
48 changes: 24 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# Duke project template

This is a project template for a greenfield Java project. It's named after the Java mascot _Duke_. Given below are instructions on how to use it.

## Setting up in Intellij

Prerequisites: JDK 11, update Intellij to the most recent version.

1. Open Intellij (if you are not in the welcome screen, click `File` > `Close Project` to close the existing project first)
1. Open the project into Intellij as follows:
1. Click `Open`.
1. Select the project directory, and click `OK`.
1. If there are any further prompts, accept the defaults.
1. Configure the project to use **JDK 11** (not other versions) as explained in [here](https://www.jetbrains.com/help/idea/sdk.html#set-up-jdk).<br>
In the same dialog, set the **Project language level** field to the `SDK default` option.
3. After that, locate the `src/main/java/Duke.java` file, right-click it, and choose `Run Duke.main()` (if the code editor is showing compile errors, try restarting the IDE). If the setup is correct, you should see something like the below as the output:
```
Hello from
____ _
| _ \ _ _| | _____
| | | | | | | |/ / _ \
| |_| | |_| | < __/
|____/ \__,_|_|\_\___|
```
# Duke project template
This is a project template for a greenfield Java project. It's named after the Java mascot _Duke_. Given below are instructions on how to use it.
## Setting up in Intellij
Prerequisites: JDK 11, update Intellij to the most recent version.
1. Open Intellij (if you are not in the welcome screen, click `File` > `Close Project` to close the existing project first)
1. Open the project into Intellij as follows:
1. Click `Open`.
1. Select the project directory, and click `OK`.
1. If there are any further prompts, accept the defaults.
1. Configure the project to use **JDK 11** (not other versions) as explained in [here](https://www.jetbrains.com/help/idea/sdk.html#set-up-jdk).<br>
In the same dialog, set the **Project language level** field to the `SDK default` option.
3. After that, locate the `src/main/java/Duke.java` file, right-click it, and choose `Run Duke.main()` (if the code editor is showing compile errors, try restarting the IDE). If the setup is correct, you should see something like the below as the output:
```
Hello from
____ _
| _ \ _ _| | _____
| | | | | | | |/ / _ \
| |_| | |_| | < __/
|____/ \__,_|_|\_\___|
```
64 changes: 64 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
plugins {
id 'java'
id 'application'
id 'checkstyle'
id 'com.github.johnrengelman.shadow' version '5.1.0'
id "org.openjfx.javafxplugin" version "0.0.10"
}

repositories {
mavenCentral()
}

dependencies {
implementation 'org.junit.jupiter:junit-jupiter:5.4.2'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.5.0'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.5.0'

String javaFxVersion = '11'

implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'linux'
}

test {
useJUnitPlatform()

testLogging {
events "passed", "skipped", "failed"

showExceptions true
exceptionFormat "full"
showCauses true
showStackTraces true
showStandardStreams = false
}
}

application {
mainClassName = "luke.Launcher"
}

shadowJar {
archiveBaseName = "luke"
archiveClassifier = null
}

checkstyle {
toolVersion = '8.29'
}

run{
standardInput = System.in
enableAssertions = true
}
Loading