Gradle Files Layout: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
* https://docs.gradle.org/current/userguide/directory_layout.html
* https://docs.gradle.org/current/userguide/java_plugin.html#sec:java_project_layout
=Internal=
=Internal=


Line 9: Line 13:
  ├── /Users/someuser
  ├── /Users/someuser
  │            └── .gradle  
  │            └── .gradle  
  │                    └── gradle.properties
  │                    ├── gradle.properties
│                    └── caches
  │
  │
  └── /projects
  └── /projects
          └── someproject  
          └── someproject  
                  ├── build.gradle
                  ├── build.gradle
                  ├── settings.gradle
                  ├── settings.gradle
                  ├── [[#Project_.gradle|.gradle]]
                  ├── gradlew
                  ├── [[#Project_gradle|gradle]]
                  ├── gradlew.bat
                  └── src
                  ├── [[#Project_.gradle|.gradle]]
                  │      ├── 6.5
                  │      ├── buildOutputCleanup
                  │      ├── checksums
                  │      └── vcs-1
                  ├── [[#Project_gradle|gradle]]
                  │      └── wrapper
                  │              ├── gradle-wrapper.jar
                  │              └── [[Gradle_Wrapper#gradlew-wrapper.properties|gradle-wrapper.properties]]
                  ├── build   
                  │    └── libs 
                  │          └── ''project''-''version''.jar
                  │     
                  └── src
                      ├── main
                      │    ├── java ← [[Gradle_Java_Plugin#The_.22main.22_Source_Set|main java source set directory]]
                      │    ├── bash
                      │    ├── groovy
                      │    ├── helm
                      │    └── resources
                      └── test
                            ├── java ← [[Gradle_Java_Plugin#The_.22test.22_Source_Set|test java source set directory]]
                            ├── bash
                            ├── groovy
                            ├── helm
                            └── resources


=User Home Directory Files=
=User Home Directory Files=
==.gradle==
===caches===
{{Internal|Gradle_Dependencies_and_Dependency_Configurations#The_Dependency_Cache|Gradle Dependencies and Dependency Configurations | The Dependency Cache}}
=Project Files=
=Project Files=
==<tt>.gradle</tt>==
==<span id='Project_.gradle'></span><tt>.gradle</tt>==
The directory contains various project-scoped caches generated by Gradle.
 
==<span id='Project_gradle'></span><tt>gradle</tt>==
==<span id='Project_gradle'></span><tt>gradle</tt>==
This directory contains the JAR file and configuration for [[Gradle_Wrapper|Gradle wrapper]]. <font color=darkgray>To tie a specific Gradle version to the project, it is reasonable to check in the gradle directory and its content into the source repository</font>.

Latest revision as of 07:46, 28 March 2021

External

Internal

/
├── usr/local/bin
│             └── gradle
│
├── /Users/someuser
│             └── .gradle 
│                     ├── gradle.properties
│                     └── caches
│
└── /projects
         └── someproject 
                 ├── build.gradle
                 ├── settings.gradle
                 ├── gradlew
                 ├── gradlew.bat
                 ├── .gradle
                 │       ├── 6.5
                 │       ├── buildOutputCleanup
                 │       ├── checksums
                 │       └── vcs-1
                 ├── gradle
                 │       └── wrapper
                 │              ├── gradle-wrapper.jar
                 │              └── gradle-wrapper.properties
                 ├── build    
                 │    └── libs  
                 │          └── project-version.jar
                 │       
                 └── src
                      ├── main 
                      │     ├── java ← main java source set directory
                      │     ├── bash
                      │     ├── groovy
                      │     ├── helm
                      │     └── resources
                      └── test 
                            ├── java ← test java source set directory
                            ├── bash
                            ├── groovy
                            ├── helm
                            └── resources

User Home Directory Files

.gradle

caches

Gradle Dependencies and Dependency Configurations | The Dependency Cache

Project Files

.gradle

The directory contains various project-scoped caches generated by Gradle.

gradle

This directory contains the JAR file and configuration for Gradle wrapper. To tie a specific Gradle version to the project, it is reasonable to check in the gradle directory and its content into the source repository.