Closed junh-ki closed 2 years ago
I am building with IntelliJ
Hello!
Working with gradle-projects in IntelliJ can be a painful experience, there are many ways to set it up incorreclty :-(
The gradle is set up as a multi-project, so to build the util project only, from a command promt you can run the command:
./gradlew :util:build
Assuming the you are in the top-folder of the specific code base. For the final solutoin for chapter 3, that is: .../Chapter03/2-basic-rest-services
.
Can you start with verifying that it works to compile the util-project from the command like as described above?
Next, import the Chapter03/2-basic-rest-services
- project into IntelliJ by taking the following steps:
.../Chapter03/2-basic-rest-services
and select itThis should result in a successful build and the resulting tree structure should be visible in the Project window:
I'm using IntelliJ IDEA 2021.3.3 (Ultimate Edition).
Hope it helps, regards Magnus.
Since I haven’t received any questions related to my suggested solution, I’ll close the issue.
I was progressing with your version of code but will try this. Sorry about my late reply and thank you for the detailed answer!
I am trying to build the util project on the page 68. I keep getting the build error:
if I add
include ':api'
insettings.gradle
, it will throw a different error:I am stuck here. How can I proceed?