티스토리 뷰
> Introduction to Gradle Project and Build Reports
> project-report plugin 적용. [build.gradle 파일]
> taskReport task 실행
> gradlew clean taskReport
* 위 결과 수행 후 아래와 같이 tasks.txt 파일(프로젝트 gradle task들에 대한 설명) 생성됨.
예)
------------------------------------------------------------
All tasks runnable from root project
------------------------------------------------------------
Application tasks
-----------------
bootRun - Run the project with support for auto-detecting main class and reloading static resources
Build tasks
-----------
assemble - Assembles the outputs of this project.
bootRepackage - Repackage existing JAR and WAR archives so that they can be executed from the command line using 'java -jar'
build - Assembles and tests this project.
buildDependents - Assembles and tests this project and all projects that depend on it.
buildNeeded - Assembles and tests this project and all projects it depends on.
classes - Assembles main classes.
clean - Deletes the build directory.
jar - Assembles a jar archive containing the main classes.
testClasses - Assembles test classes.
Build Setup tasks
-----------------
init - Initializes a new Gradle build. [incubating]
wrapper - Generates Gradle wrapper files. [incubating]
Documentation tasks
-------------------
javadoc - Generates Javadoc API documentation for the main source code.
Help tasks
----------
buildEnvironment - Displays all buildscript dependencies declared in root project 'sample-springBoot'.
components - Displays the components produced by root project 'sample-springBoot'. [incubating]
dependencies - Displays all dependencies declared in root project 'sample-springBoot'.
dependencyInsight - Displays the insight into a specific dependency in root project 'sample-springBoot'.
help - Displays a help message.
model - Displays the configuration model of root project 'sample-springBoot'. [incubating]
projects - Displays the sub-projects of root project 'sample-springBoot'.
properties - Displays the properties of root project 'sample-springBoot'.
tasks - Displays the tasks runnable from root project 'sample-springBoot'.
IDE tasks
---------
cleanEclipse - Cleans all Eclipse files.
eclipse - Generates all Eclipse files.
Reporting tasks
---------------
projectReport - Generates a report about your project.
Verification tasks
------------------
check - Runs all checks.
test - Runs the unit tests.
Other tasks
-----------
dependencyManagement
Rules
-----
Pattern: clean<TaskName>: Cleans the output files of a task.
Pattern: build<ConfigurationName>: Assembles the artifacts of a configuration.
Pattern: upload<ConfigurationName>: Assembles and uploads the artifacts belonging to a configuration.
To see all tasks and more detail, run gradlew tasks --all
To see more detail about a task, run gradlew help --task <task>
> propertyReport 실행
> gradlew clean propertyReport
* 위 결과 수행 후 아래와 같이 property.txt 파일 ( gradle 설정에 대한 내용) 생성됨.
예)
------------------------------------------------------------
Root project
------------------------------------------------------------
BootRepackage: class org.springframework.boot.gradle.repackage.RepackageTask
allprojects: [root project 'sample-springBoot']
ant: org.gradle.api.internal.project.DefaultAntBuilder@1b5cfd3
antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@15f2999
archivesBaseName: sample-springBoot
artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@a41521
asDynamicObject: org.gradle.api.internal.ExtensibleDynamicObject@675a11
assemble: task ':assemble'
baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@14a469d
bootRepackage: task ':bootRepackage'
bootRun: task ':bootRun'
buildDependents: task ':buildDependents'
buildDir: C:\eGovFrame-3.5.1\workspace.edu\sample-springBoot\build
buildFile: C:\eGovFrame-3.5.1\workspace.edu\sample-springBoot\build.gradle
buildNeeded: task ':buildNeeded'
buildScriptSource: org.gradle.groovy.scripts.UriScriptSource@161f335
buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@1a63a01
check: task ':check'
childProjects: {}
class: class org.gradle.api.internal.project.DefaultProject_Decorated
classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@2a3f7a
classes: task ':classes'
clean: task ':clean'
cleanEclipse: task ':cleanEclipse'
cleanEclipseClasspath: task ':cleanEclipseClasspath'
cleanEclipseJdt: task ':cleanEclipseJdt'
cleanEclipseProject: task ':cleanEclipseProject'
compileJava: task ':compileJava'
compileTestJava: task ':compileTestJava'
components: [org.gradle.api.internal.java.JavaLibrary@1ad91db]
configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@42eedc
configurations: [configuration ':archives', configuration ':compile', configuration ':compileClasspath', configuration ':compileOnly', configuration ':default', configuration ':runtime', configuration ':testCompile', configuration ':testCompileClasspath', configuration ':testCompileOnly', configuration ':testRuntime']
convention: org.gradle.api.internal.plugins.DefaultConvention@4fb6e1
defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@16fa347
defaultTasks: []
deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@48affb
dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@14a8a37
dependencyCacheDir: C:\eGovFrame-3.5.1\workspace.edu\sample-springBoot\build\dependency-cache
dependencyCacheDirName: dependency-cache
dependencyManagement: io.spring.gradle.dependencymanagement.DependencyManagementExtension_Decorated@19a8b5
dependencyReport: task ':dependencyReport'
depth: 0
description: null
distsDir: C:\eGovFrame-3.5.1\workspace.edu\sample-springBoot\build\distributions
distsDirName: distributions
docsDir: C:\eGovFrame-3.5.1\workspace.edu\sample-springBoot\build\docs
docsDirName: docs
eclipse: org.gradle.plugins.ide.eclipse.model.EclipseModel_Decorated@93366a
eclipseClasspath: task ':eclipseClasspath'
eclipseJdt: task ':eclipseJdt'
eclipseProject: task ':eclipseProject'
ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@d99279
extensions: org.gradle.api.internal.plugins.DefaultConvention@4fb6e1
fileOperations: org.gradle.api.internal.file.DefaultFileOperations@1f7fd0
fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@5ff0
findMainClass: task ':findMainClass'
gradle: build 'sample-springBoot'
group:
guavaVersion: 19.0
htmlDependencyReport: task ':htmlDependencyReport'
inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@9a91df
jadiraVersion: 4.0.0.GA
jar: task ':jar'
javadoc: task ':javadoc'
libsDir: C:\eGovFrame-3.5.1\workspace.edu\sample-springBoot\build\libs
libsDirName: libs
logger: org.gradle.logging.internal.slf4j.OutputEventListenerBackedLogger@1dee89b
logging: org.gradle.logging.internal.DefaultLoggingManager@1794b56
modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@411ba8
modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@7ecd65
module: org.gradle.api.internal.artifacts.ProjectBackedModule@2c1f9d
name: sample-springBoot
parent: null
parentIdentifier: null
path: :
pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@deb187
plugins: [org.gradle.api.plugins.HelpTasksPlugin@1a0fba0, org.gradle.language.base.plugins.LifecycleBasePlugin@5938c8, org.gradle.api.plugins.BasePlugin@a97164, org.gradle.api.plugins.ReportingBasePlugin@1977199, org.gradle.platform.base.plugins.ComponentBasePlugin@43ea37, org.gradle.language.base.plugins.LanguageBasePlugin@ff901f, org.gradle.platform.base.plugins.BinaryBasePlugin@2fc81d, org.gradle.api.plugins.JavaBasePlugin@1f8db0, org.gradle.api.plugins.JavaPlugin@82b522, org.gradle.plugins.ide.eclipse.EclipsePlugin@169c34e, io.spring.gradle.dependencymanagement.DependencyManagementPlugin@10bab32, org.springframework.boot.gradle.SpringBootPlugin@b24b4b, org.gradle.api.plugins.ProjectReportsPlugin@7c29d7]
processOperations: org.gradle.api.internal.file.DefaultFileOperations@1f7fd0
processResources: task ':processResources'
processTestResources: task ':processTestResources'
project: root project 'sample-springBoot'
projectDir: C:\eGovFrame-3.5.1\workspace.edu\sample-springBoot
projectEvaluationBroadcaster: ProjectEvaluationListener broadcast
projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@5921cb
projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@1b9d320
projectReport: task ':projectReport'
projectReportDir: C:\eGovFrame-3.5.1\workspace.edu\sample-springBoot\build\reports\project
projectReportDirName: project
projects: [root project 'sample-springBoot']
properties: {...}
propertyReport: task ':propertyReport'
reporting: org.gradle.api.reporting.ReportingExtension_Decorated@d405d8
reportsDir: C:\eGovFrame-3.5.1\workspace.edu\sample-springBoot\build\reports
repositories: [org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@1cbb5aa]
resources: org.gradle.api.internal.resources.DefaultResourceHandler@103d7e7
rootDir: C:\eGovFrame-3.5.1\workspace.edu\sample-springBoot
rootProject: root project 'sample-springBoot'
scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@15397d4
scriptPluginFactory: org.gradle.configuration.DefaultScriptPluginFactory@1151a72
serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@7b6e6b
services: ProjectScopeServices
sourceCompatibility: 1.7
sourceSets: [source set 'main', source set 'test']
springBoot: org.springframework.boot.gradle.SpringBootPluginExtension_Decorated@18e51d2
standardOutputCapture: org.gradle.logging.internal.DefaultLoggingManager@1794b56
state: project state 'EXECUTED'
status: integration
subprojects: []
swaggerVersion: 2.3.0
targetCompatibility: 1.7
taskReport: task ':taskReport'
tasks: [task ':assemble', task ':bootRepackage', task ':bootRun', task ':buildDependents', task ':buildNeeded', task ':check', task ':classes', task ':clean', task ':cleanEclipse', task ':cleanEclipseClasspath', task ':cleanEclipseJdt', task ':cleanEclipseProject', task ':compileJava', task ':compileTestJava', task ':dependencyManagement', task ':dependencyReport', task ':eclipse', task ':eclipseClasspath', task ':eclipseJdt', task ':eclipseProject', task ':findMainClass', task ':htmlDependencyReport', task ':jar', task ':javadoc', task ':processResources', task ':processTestResources', task ':projectReport', task ':propertyReport', task ':taskReport', task ':test', task ':testClasses']
test: task ':test'
testClasses: task ':testClasses'
testReportDir: C:\eGovFrame-3.5.1\workspace.edu\sample-springBoot\build\reports\tests
testReportDirName: tests
testResultsDir: C:\eGovFrame-3.5.1\workspace.edu\sample-springBoot\build\test-results
testResultsDirName: test-results
version: 1.0.0-SNAPSHOT
> depenecyReport task 실행
> gradlew clean dependencyReport
* 위 결과 수행후 아래와 같이 dependencis.txt. 파일 생성
> htmlDependencyReport task 실행
> gradlew clean htmlDependencyReport
* denpency 정보를 html 페이지로 출력
> projectReport task 실행
C:\eGovFrame-3.5.1\workspace.edu\sample-springBoot>gradlew clean projectReport
:clean
:dependencyReport
:htmlDependencyReport
:propertyReport
:taskReport
:projectReport
> build-dashboard plugin 적용
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'spring-boot'
apply plugin: 'project-report'
apply plugin: 'build-dashboard'
> gradlew clean build projectReport buildDashboard
결과>
- Total
- Today
- Yesterday