1
00:00:02,620 --> 00:00:08,440
Let's start with a build stage, even if you're not the Java developer or have absolutely no relation

2
00:00:08,440 --> 00:00:13,870
to Java, you probably already know that most programs have to go through a build stage.

3
00:00:14,680 --> 00:00:20,260
The build process will take the source code and transform it into something that can be executed on

4
00:00:20,260 --> 00:00:20,860
a computer.

5
00:00:21,720 --> 00:00:23,770
We call this process compilation.

6
00:00:26,340 --> 00:00:33,540
In this case, the bail process will translate the source code into Java, bytecode that can be executed

7
00:00:33,540 --> 00:00:38,730
on the Java virtual machine, which is typically what a server will have installed.

8
00:00:39,180 --> 00:00:46,380
The output of this built process is a jar file, which is an archive that contains this byte code is

9
00:00:46,380 --> 00:00:47,250
Java bytecode.

10
00:00:47,670 --> 00:00:53,280
To run the build process locally, I will use a tool called Gradle, which is just a built to.

11
00:00:54,060 --> 00:00:56,310
You'll find that it's quite easy to use.

12
00:00:57,610 --> 00:01:03,280
The moment we have started this application, we have already built it, but I'm just going to show

13
00:01:03,280 --> 00:01:04,629
you again how this works.

14
00:01:05,080 --> 00:01:10,600
So from this Cradle panel, which you can open it from here and go to build Paape.

15
00:01:11,390 --> 00:01:12,710
And click on Build.

16
00:01:23,840 --> 00:01:29,660
This will take a few seconds to complete, but finally it will report back build successful if there

17
00:01:29,660 --> 00:01:36,410
are any errors with the code and the build does not work because it cannot be compiled to the Java bytecode,

18
00:01:36,620 --> 00:01:38,230
then a narrow will show up.

19
00:01:38,510 --> 00:01:40,460
And in this case, the build was successful.

20
00:01:41,180 --> 00:01:45,830
Every time the build is completed, a new built folder will be created.

21
00:01:47,290 --> 00:01:55,900
In order to view the output, you'll have to go to build lips and this car that shaped that car is our

22
00:01:55,930 --> 00:01:56,470
artifact.

23
00:01:56,620 --> 00:02:00,050
This is what we can run using the job on future machine.

24
00:02:00,820 --> 00:02:05,740
I have showed you this in a graphical interface, but just as well I can use the terminal in order to

25
00:02:05,740 --> 00:02:06,280
build this.

26
00:02:08,190 --> 00:02:14,220
The comment for doing that is using the Grayden wrapper that's can be accessed using this comment.

27
00:02:17,240 --> 00:02:24,350
And I'm using a reference to the local Ford using that that's just in case the grader is somehow installed

28
00:02:24,350 --> 00:02:27,980
globally and just wanted to reference the local file that I have right here.

29
00:02:28,900 --> 00:02:30,880
And I'm going to use here build.

30
00:02:35,600 --> 00:02:40,760
Greta has already detected that nothing has changed in the code and has simply reused the current bill.

31
00:02:41,420 --> 00:02:45,080
If I want to make sure that I create a new build, I can use the clean command.

32
00:02:47,340 --> 00:02:49,860
And a clean command will remove the built folder.

33
00:02:51,130 --> 00:02:54,570
And then they can build it again and will take through the entire process.

34
00:03:04,500 --> 00:03:09,890
If you look back at the project funds, you will see that a build folder has appeared again and under.

35
00:03:10,470 --> 00:03:12,420
This is the artifact that has been generated.

36
00:03:12,970 --> 00:03:14,730
I'm going to do exactly the same.

37
00:03:15,030 --> 00:03:18,290
But using it lexia because we want to automate everything.

