Let's start with a build stage, even if you're not the Java developer or have absolutely no relation
to Java, you probably already know that most programs have to go through a build stage.
The build process will take the source code and transform it into something that can be executed on
a computer.
We call this process compilation.
In this case, the bail process will translate the source code into Java, bytecode that can be executed
on the Java virtual machine, which is typically what a server will have installed.
The output of this built process is a jar file, which is an archive that contains this byte code is
Java bytecode.
To run the build process locally, I will use a tool called Gradle, which is just a built to.
You'll find that it's quite easy to use.
The moment we have started this application, we have already built it, but I'm just going to show
you again how this works.
So from this Cradle panel, which you can open it from here and go to build Paape.
And click on Build.
This will take a few seconds to complete, but finally it will report back build successful if there
are any errors with the code and the build does not work because it cannot be compiled to the Java bytecode,
then a narrow will show up.
And in this case, the build was successful.
Every time the build is completed, a new built folder will be created.
In order to view the output, you'll have to go to build lips and this car that shaped that car is our
artifact.
This is what we can run using the job on future machine.
I have showed you this in a graphical interface, but just as well I can use the terminal in order to
build this.
The comment for doing that is using the Grayden wrapper that's can be accessed using this comment.
And I'm using a reference to the local Ford using that that's just in case the grader is somehow installed
globally and just wanted to reference the local file that I have right here.
And I'm going to use here build.
Greta has already detected that nothing has changed in the code and has simply reused the current bill.
If I want to make sure that I create a new build, I can use the clean command.
And a clean command will remove the built folder.
And then they can build it again and will take through the entire process.
If you look back at the project funds, you will see that a build folder has appeared again and under.
This is the artifact that has been generated.
I'm going to do exactly the same.
But using it lexia because we want to automate everything.