While building a java project with gradle, the JAR files are created in ____ after the execution of gradle build command.
a-build/libs
B-build/libs
c-build/libs
d-build/libs
Answers
Answered by
1
b is the correct answer
Answered by
3
While building a ‘Java project with gradle’, the JAR files are created in build/libs after the’ execution of gradle build command’.
Explanation:
- Initially, we have to create a basic build.gradle file. This single line is executed for building construction.
- These gradle tasks have to be run again and again and you could see new tasks to be added to the list.
- Those new tasks includes task building, JavaDoc creation, and running of tests. The gradle task complies and assembles the code in the JAR file.
- Once the build got executed, several directories with folders have been created. They are classes, reports, and libs. The build/libs folder contains all JAR files.
Similar questions