File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 44
55### Steps to the workflow :
66
7- #### Creating the Java App Using Gradle :
7+ > #### Creating the Java App Using Gradle :
88
991-Generate a Java Application Sourcesets & buildScripts using gradle CLI using ``` gradle init ``` command in the project folder
1010<br >
19196-Find the java jar build inside ``` applicationExample/app/build/libs/app.jar ``` & run it using ``` java -jar app.jar ``` to be sure of your results
2020<br >
2121
22- #### Creating theb git repo & pushing files :
22+ > #### Creating the git repo & pushing files :
2323
24241-run ``` git init ``` command in your root project directory, to initiliaze git local for this repo
2525<br >
2929<br >
30304-run ``` gh repo create REPO-NAME ``` to create a new empty git repository with the specified name
3131<br >
32- 5-run ``` git push origin main ``` to push your code to the main origin branch
32+ 5-run ``` git checkout -b main ``` to switch from the branch(``` -b ``` ) to a new branch named ``` main ``` (it will create it anyway)
33+ <br >
34+ 6-run ``` git push origin main ``` to push your code to the ``` main ``` origin branch
3335<br >
3436
35- ### ``` eg : ``` :
37+ ### ``` eg ``` :
3638
3739``` bash
3840┌─[twisted@parrot]─[~/GradleProjects/applicationExample]
You can’t perform that action at this time.
0 commit comments