feat(quiz_java): Java port of quiz app using codedifferently-instructional - #123
Merged
Merged
Conversation
anthonydmays
requested changes
Aug 16, 2025
anthonydmays
left a comment
Contributor
There was a problem hiding this comment.
You also need to make the updates to the typescript app as well.
Contributor
Nevermind, I see what's going on. I'll submit this PR. |
anthonydmays
approved these changes
Aug 16, 2025
emblue252
pushed a commit
to emblue252/code-society-25-2
that referenced
this pull request
Aug 16, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Quiz questions completed and answered fully
Java port of the quiz assignment in
lesson_02/quiz_java, wired to thelib/java/codedifferently-instructionallibrary.Changes
Lesson2.java(builds questions + prints quiz via library)App.javato runLesson2AppTest.java,Lesson2Test.javai) Included modules in settings
ii) App depends on
:codedifferently-instructional:instructional-libNotes/Problems (I'm trash as ever at Java)
I had two Gradle worlds: a nested build under lesson_02/quiz_java (include("quiz_java")
{ projectDir = file("app") }) and the top-level repo. Running Gradle inside the nested build
made it blind to the library, so dependency lookups failed.
I initially referenced the library by the wrong project path
(e.g., :lib:java:codedifferently-instructional). The library is multi-module;
the actual compile target is :codedifferently-instructional:instructional-lib.
Once I included that exact project in settings.gradle.kts, the dependency resolved.
I mixed up filesystem paths vs Gradle project names. Gradle dependencies are by project name declared in settings.gradle.kts, not by folder path.