|
|
@@ -65,7 +65,7 @@ To submit a fix for an existing exercise or port an exercise to Java with the le
|
|
65
|
65
|
|
|
66
|
66
|
There are two objectives to the design of this build:
|
|
67
|
67
|
|
|
68
|
|
-1. when a problem is built from within the `exercism/java` repo (i.e. when you, the contributor, are developing the exercise), the tests run against the "example" code;
|
|
|
68
|
+1. when a problem is built from within the `exercism/java` repo (i.e. when you, the contributor, are developing the exercise), the tests run against the reference solution;
|
|
69
|
69
|
2. when a problem is built outside the `exercism/java` repo (when a participant is solving the exercise), the tests run against the "main" code.
|
|
70
|
70
|
|
|
71
|
71
|
This repo is a multi-project gradle build.
|
|
|
@@ -74,7 +74,7 @@ This repo is a multi-project gradle build.
|
|
74
|
74
|
|
|
75
|
75
|
This is the top-level module, contained in the `exercises` directory. It is a container for the problem sub-modules.
|
|
76
|
76
|
|
|
77
|
|
- * its `build.gradle` points the "main" sourceset to the example code.
|
|
|
77
|
+ * its `build.gradle` points the "main" sourceset to the reference solution.
|
|
78
|
78
|
* its `settings.gradle` names each of the subprojects, one for each problem in the set.
|
|
79
|
79
|
|
|
80
|
80
|
### The Problem Submodules
|
|
|
@@ -87,7 +87,7 @@ Each problem/submodule is a subdirectory of the same name as its slug.
|
|
87
|
87
|
Each problem/submodule has three source sets:
|
|
88
|
88
|
|
|
89
|
89
|
* `src/test/java/` — a test suite defining the edges of the problem
|
|
90
|
|
-* `src/example/java/` — an example solution that passes all the tests
|
|
|
90
|
+* `./meta/src/reference/java/` — a reference solution that passes all the tests
|
|
91
|
91
|
* `src/main/java/` — starter source files, if required/desired *(this directory usually only has a `.keep` file in it)*.
|
|
92
|
92
|
|
|
93
|
93
|
----
|