Closed mhallo closed 6 years ago
I was able to build it using ./gradle build, however I got an error:
Unable to find a single main class from the following candidates [org.csc394.findadev.FindadevApplication, org.csc394.employeematch.EmployeematchApplication]
And this was on the bootRun step?
Perhaps a clean project directory might help. I had to retry that on my laptop when I was working on it. I did this by just removing all of the project files on my computer and then recloning the repo, and then checking out this branch.
Because
org.csc394.findadev.FindadevApplication
Is an old canned name I came up with.
Ah my apologies, it was on the build step not on the bootRun. Have you encountered this error before?
I did before. A clean pull of the repo resolved it.
Gradle can't find the file I referenced above there, and is failing.
Rather than digging thru the gradle configs just try a clean pull / build
Gotcha, how can I do a clean pull from IntelliJ?
I'd say, go to the launch screen, and then Check Out from Version control.
From there you can enter your github credentials and pull this CSC394/Project repo.
From there, checkout the Implement branch (my bad for not naming the branch a better name, getting git to cooperate was a pain)
Should I do "Checkout as Local Branch", or do I need to use "Pull"? Sorry for all the questions I want to make sure I do it right.
No problem. When I say checkout, you just checkout that remote repository as a local branch.
From there you can try running the commands.
Success! Its running now and I checked 8080. Is it normal for it to be hanging on :bootRun 80% Executing?
Yeah, that's a known gradle bug, but it wont be something that we should be concerned over. (I tried to solve it during an internship, wasn't worth my time to dig into it).
Glad it works! Excited to get going. Gradle is a super helpful tool, and will only be more helpful.
If everyone else can check if this works for their machines, that'd be great!
This builds for me on linux just fine, I see "Hello CSC 394 Teammates"
Perfect, that's the intended result.
Resolves #1
Follow the instructions on the branches README.md
You do not download gradle to run the commands. The purpose of gradle is so that any person can clone the repository and can build the project without having to install gradle on their machine.
So please follow the instructions mentioned and tell me if you have any issues.
I have been able to build on both of my Windows machines personally.