Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
wrapperVersion=3.3.2
wrapperVersion=3.3.4
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Java CI with Maven](https://github.com/YourGitHubId/JoyOfCodingSummer2025/actions/workflows/maven.yml/badge.svg)](https://github.com/YourGitHubId/JoyOfCodingSummer2025/actions/workflows/maven.yml)
[![Java CI with Maven](https://github.com/YourGitHubId/JoyOfCodingWinter2026/actions/workflows/maven.yml/badge.svg)](https://github.com/YourGitHubId/JoyOfCodingWinter2026/actions/workflows/maven.yml)

# Getting Started with The Joy of Coding with Java and Android

Expand Down Expand Up @@ -71,7 +71,7 @@ developer"](https://education.github.com/pack) account that gives you
free private repositories. Then [create a private GitHub
repository from this "template" repository](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template)
for your source code for this course. (In this example, the
repository is named "JoyOfCodingSummer2025".)
repository is named "JoyOfCodingWinter2026".)

Again, please ensure that all of your code for the assignments is in a
**private** GitHub repository. GitHub makes it very easy for people to
Expand Down Expand Up @@ -99,7 +99,7 @@ The following command lines assume that you are running in the
directory created by cloning the repository.

```sh
$ cd JoyOfCodingSummer2025
$ cd JoyOfCodingWinter2026
```

### How do I use the Java Development Kit?
Expand Down Expand Up @@ -229,7 +229,7 @@ clone by adding the directory to git.

```sh
$ ./mvnw clean # Remove files that shouldn't be committed to version control
$ cd .. # to JoyOfCodingSummer2025 directory
$ cd .. # to JoyOfCodingWinter2026 directory
$ git add student
$ git commit -m "Added source files for student project"
```
Expand Down Expand Up @@ -288,7 +288,7 @@ After `ssh`ing to one of the CS Department's Linux machines, you can
make a clone of your GitHub repository using with:

```
$ git clone https://github.com/YourGitHubId/JoyOfCodingSummer2025.git
$ git clone https://github.com/YourGitHubId/JoyOfCodingWinter2026.git
```

### How can I get changes that other people make into my clone?
Expand All @@ -302,7 +302,7 @@ First, configure your repository to have this repository to be a
"remote" named "upstream".

```sh
$ cd JoyOfCodingSummer2025
$ cd JoyOfCodingWinter2026
$ git remote add upstream https://github.com/JoyOfCodingPDX/GettingStarted.git
```

Expand Down Expand Up @@ -380,7 +380,7 @@ After your code has been successfully submitted, the `submit.sh` script will
[tag](https://git-scm.com/book/en/v2/Git-Basics-Tagging) the current revision of
your git repository. The name of the tag indicates which project was submitted and
the date/time it was submitted. For example, submitting Project1 at 9 AM on May 1st
would tag the current revision of the repository with `submit-Project1-20250117T09:00:58`.
would tag the current revision of the repository with `submit-Project1-20260117T09:00:58`.
This tag allows you to create a [branch](https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging)
from the specific revision of your code that was submitted, which makes debugging problems
in submitted code much easier. Note that the `submit.sh` will issue an error if there are
Expand All @@ -399,13 +399,13 @@ $ git push --tags

Or push an individual tag:
```shell
$ git push origin submit-Project1-20250117T09:00:58
$ git push origin submit-Project1-20260117T09:00:58
```

To fix a bug in submitted code, create a new branch of your repository from the `submit` tag on your development system:
```shell
$ git fetch # Fetch the tag(s) from GitHub ("origin") into your local clone
$ git checkout -b fix-Project1 submit-Project1-20250117T09:00:58 # Create a branch to make fixes
$ git checkout -b fix-Project1 submit-Project1-20260117T09:00:58 # Create a branch to make fixes
$ git push --set-upstream origin fix-Project1 # Push the branch to GitHub
# Make code changes, commit them to git, and push them to the fix-Project1 branch
```
Expand All @@ -431,13 +431,13 @@ The following is a summary of the data gathered to date.

| | App Classes | Text File | Pretty Print | Koans | XML | REST | Android |
|:-----------|------------:|----------:|-------------:|----------:|---------:|----------:|---------:|
| Count | 142 | 142 | 138 | 122 | 80 | 129 | 130 |
| Average | 21 hours | 20 hours | 23 hours | 19 hours | 24 hours | 30 hours | 26 hours |
| Count | 168 | 169 | 164 | 145 | 80 | 154 | 152 |
| Average | 21 hours | 20 hours | 22 hours | 19 hours | 24 hours | 30 hours | 26 hours |
| Maximum | 60 hours | 120 hours | 76 hours | 100 hours | 60 hours | 129 hours | 90 hours |
| Top 25% | 25 hours | 25 hours | 30 hours | 23 hours | 30 hours | 40 hours | 30 hours |
| Median | 20 hours | 20 hours | 20 hours | 16 hours | 20 hours | 25 hours | 24 hours |
| Top 25% | 25 hours | 25 hours | 30 hours | 22 hours | 30 hours | 40 hours | 30 hours |
| Median | 20 hours | 20 hours | 20 hours | 15 hours | 20 hours | 25 hours | 24 hours |
| Bottom 25% | 12 hours | 12 hours | 12 hours | 10 hours | 15 hours | 16 hours | 17 hours |
| Minimum | 3 hours | 0 hours | 2 hours | 4 hours | 6 hours | 7 hours | 5 hours |
| Minimum | 3 hours | 0 hours | 2 hours | 4 hours | 6 hours | 6 hours | 5 hours |

You may want to consider it as you plan your projects. Recall, though, that
this data is self-reported. Your experience might be different from that
Expand Down Expand Up @@ -467,8 +467,8 @@ As you create Maven projects in this repository, you may encounter warnings like

```
[WARNING]
[WARNING] Some problems were encountered while building the effective model for edu.pdx.cs.joy.whitlock:apptbook:jar:1.0.0
[WARNING] 'parent.relativePath' of POM edu.pdx.cs.joy.whitlock:apptbook:1.0.0 (JoyOfCodingSummer2025/apptbook/pom.xml) points at edu.pdx.cs.joy.whitlock:JoyOfCodingSummer2025 instead of io.github.davidwhitlock.joy:joy, please verify your project structure @ line 3, column 11
[WARNING] Some problems were encountered while building the effective model for edu.pdx.cs.joy.whitlock:phonebill:jar:1.0.0
[WARNING] 'parent.relativePath' of POM edu.pdx.cs.joy.whitlock:phonebill:1.0.0 (JoyOfCodingWinter2026/phonebill/pom.xml) points at edu.pdx.cs.joy.whitlock:JoyOfCodingWinter2026 instead of io.github.davidwhitlock.joy:joy, please verify your project structure @ line 3, column 11
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
Expand Down Expand Up @@ -576,7 +576,7 @@ Running `mvn site` from the root directory of this repository will
generate a website that provides lots of information (reports, etc.)
about the Maven projects. Note that in order for your multi-project
Maven site to generate correctly, the subprojects must specify that
their parent project is the `JoyOfCodingSummer2025` project in
their parent project is the `JoyOfCodingWinter2026` project in
your group:

```xml
Expand Down Expand Up @@ -619,7 +619,7 @@ You can open `target/staging/index.html` in your web browse to see
what your site will look like.

Verify that your website is available at a URL like:
https://yourgithubuser.github.io/JoyOfCodingSummer2025
https://yourgithubuser.github.io/JoyOfCodingWinter2026

## How can I improve this repository?

Expand Down
2 changes: 1 addition & 1 deletion createFirstProject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ else
fi
fi

createProjectFromArchetype ${loginId} "apptbook" "2.2.2"
createProjectFromArchetype ${loginId} "phonebill" "2.3.0"
2 changes: 1 addition & 1 deletion createKataProject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ fi
projectName=$1
teamName=$2

createProjectFromArchetype ${teamName} "kata" "2.2.2" ${projectName}
createProjectFromArchetype ${teamName} "kata" "2.2.5" ${projectName}
2 changes: 1 addition & 1 deletion createKoansProject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ else
fi
fi

createProjectFromArchetype ${loginId} "java-koans" "2.2.3" "koans"
createProjectFromArchetype ${loginId} "java-koans" "2.2.5" "koans"
2 changes: 1 addition & 1 deletion createRESTProject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ else
fi
fi

createProjectFromArchetype ${loginId} "apptbook-web" "3.0.2"
createProjectFromArchetype ${loginId} "phonebill-web" "3.0.4"
2 changes: 1 addition & 1 deletion createStudentProject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ else
fi
fi

createProjectFromArchetype ${loginId} "student" "2.3.3"
createProjectFromArchetype ${loginId} "student" "2.3.5"

18 changes: 9 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ accordingly
<parent>
<artifactId>joy</artifactId>
<groupId>io.github.davidwhitlock.joy</groupId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<groupId>edu.pdx.cs.joy.YourUserId</groupId>
<artifactId>JoyOfCoding</artifactId>
<version>1.0.0</version>

<packaging>pom</packaging>
<name>JoyOfCodingSummer2025</name>
<description>Source code written in the Summer 2025 offering of The Joy of Coding</description>
<url>http://YourGitHubUserInLowerCase.github.io/JoyOfCodingSummer2025</url>
<name>JoyOfCodingWinter2026</name>
<description>Source code written in the Winter 2026 offering of The Joy of Coding</description>
<url>http://YourGitHubUserInLowerCase.github.io/JoyOfCodingWinter2026</url>

<modules>
</modules>

<inceptionYear>2025</inceptionYear>
<inceptionYear>2026</inceptionYear>
<organization>
<name>Portland State University</name>
<url>http://www.pdx.edu</url>
</organization>
<issueManagement>
<system>github</system>
<url>https://github.com/YourGitHubUser/JoyOfCodingSummer2025/issues</url>
<url>https://github.com/YourGitHubUser/JoyOfCodingWinter2026/issues</url>
</issueManagement>
<licenses>
<license>
Expand Down Expand Up @@ -76,7 +76,7 @@ accordingly
<plugin>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<topSiteURL>scm:git:git@github.com:YourGithubUser/JoyOfCodingSummer2025.git</topSiteURL>
<topSiteURL>scm:git:git@github.com:YourGithubUser/JoyOfCodingWinter2026.git</topSiteURL>
</configuration>
</plugin>
<plugin>
Expand All @@ -92,7 +92,7 @@ accordingly
</build>

<scm>
<connection>scm:git:git@github.com:YourGithubUser/JoyOfCodingSummer2025.git</connection>
<connection>scm:git:git@github.com:YourGithubUser/JoyOfCodingWinter2026.git</connection>
</scm>
<distributionManagement>
<snapshotRepository>
Expand All @@ -102,7 +102,7 @@ accordingly
<site>
<id>gh-pages</id>
<name>GitHub Pages</name>
<url>scm:git:git@github.com:YourGithubUser/JoyOfCodingSummer2025.git</url>
<url>scm:git:git@github.com:YourGithubUser/JoyOfCodingWinter2026.git</url>
</site>
</distributionManagement>

Expand Down
2 changes: 1 addition & 1 deletion src/site/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</googleSearch>
<sourceLineNumbersEnabled>true</sourceLineNumbersEnabled>
<gitHub>
<projectId>YourGitHubUser/JoyOfCodingSummer2025</projectId>
<projectId>YourGitHubUser/JoyOfCodingWinter2026</projectId>
<ribbonOrientation>right</ribbonOrientation>
<ribbonColor>black</ribbonColor>
</gitHub>
Expand Down
10 changes: 5 additions & 5 deletions submit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ elif [[ "$project" == "koans" ]]; then
directory="koans"
mavenGoals="clean exec:java"

elif [[ "$project" == "Project4" ]]; then
directory="apptbook-web"

elif [[ "$project" == "Project5" ]]; then
directory="apptbook-android"
directory="phonebill-web"

elif [[ "$project" == "Project6" ]]; then
directory="phonebill-android"
submitClass="SubmitAndroidProject"
srcDirectory="."

else
directory="apptbook"
directory="phonebill"
fi

if [ $# -gt 1 ]; then
Expand Down