Gradle

김신영·2023년 3월 23일
0
post-thumbnail

Gralde 빌드 수행 구성 요소

https://velog.velcdn.com/images/hoha/post/42bfc4b8-a9ee-44b9-83d6-d9756c8c84d0/image.png

https://velog.velcdn.com/images/hoha/post/03d40cb4-5c91-42cf-add5-a95cb214a2ac/image.png

Project

https://docs.gradle.org/current/dsl/org.gradle.api.Project.html

Task

https://docs.gradle.org/current/dsl/org.gradle.api.Task.html

SourceSet

https://docs.gradle.org/current/dsl/org.gradle.api.tasks.SourceSet.html

Tasks

https://docs.gradle.org/current/dsl/org.gradle.api.tasks.TaskContainer.html

Task Types

https://docs.gradle.org/current/dsl/#N104D7

TypeDescription
AntlrTaskGenerates parsers from Antlr grammars.
BuildEnvironmentReportTaskProvides information about the build environment for the project that the task is associated with.
CheckstyleRuns Checkstyle against some source files.
CodeNarcRuns CodeNarc against some source files.
CopyCopies files into a destination directory. This task can also rename and filter files as it copies. The task implements CopySpec for specifying what to copy.
CreateStartScriptsCreates start scripts for launching JVM applications.
DeleteDeletes files or directories. Example:
EarAssembles an EAR archive.
ExecExecutes a command line process. Example:
GenerateIvyDescriptorGenerates an Ivy XML Module Descriptor file.
GenerateMavenPomGenerates a Maven module descriptor (POM) file.
GenerateBuildDashboardGenerates build dashboard report.
GradleBuildExecutes a Gradle build.
GroovyCompileCompiles Groovy source files, and optionally, Java source files.
GroovydocGenerates HTML API documentation for Groovy source, and optionally, Java source.
HtmlDependencyReportTaskGenerates an HTML dependency report. This report combines the features of the ASCII dependency report and those of the ASCII dependency insight report. For a given project, it generates a tree of the dependencies of every configuration, and each dependency can be clicked to show the insight of this dependency.
JacocoReportTask to generate HTML, Xml and CSV reports of Jacoco coverage data.
JacocoCoverageVerificationTask for verifying code coverage metrics. Fails the task if violations are detected based on specified rules.
JarAssembles a JAR archive.
JavaCompileCompiles Java source files.
JavadocGenerates HTML API documentation for Java classes.
JavaExecExecutes a Java application in a child process.
PmdRuns a set of static code analysis rules on Java source code files and generates a report of problems found.
ProcessResourcesCopies resources from their source to their target directory, potentially processing them. Makes sure no stale resources remain in the target directory.
PublishToIvyRepositoryPublishes an IvyPublication to an IvyArtifactRepository.
PublishToMavenRepositoryPublishes a MavenPublication to a MavenArtifactRepository.
ScalaCompileCompiles Scala source files, and optionally, Java source files.
ScalaDocGenerates HTML API documentation for Scala source files.
InitBuildGenerates a Gradle project structure.
SignA task for creating digital signature files for one or more; tasks, files, publishable artifacts or configurations.
SyncSynchronizes the contents of a destination directory with some source directories and files.
TarAssembles a TAR archive.
AbstractTestTaskAbstract class for all test tasks.
TestExecutes JUnit (3.8.x, 4.x or 5.x) or TestNG tests. Test are always run in (one or more) separate JVMs.
TestReportGenerates an HTML test report from the results of one or more Test tasks.
WarAssembles a WAR archive.
WrapperGenerates scripts (for *nix and windows) which allow you to build your project

Task Dependency Diagram

태스크 의존관계

Dependency Scope

https://user-images.githubusercontent.com/45073750/120927471-de25dd80-c71b-11eb-9785-88fac945ab8e.png

https://user-images.githubusercontent.com/45073750/120927511-0281ba00-c71c-11eb-82ad-b5c42be83f36.png

profile
Hello velog!

0개의 댓글