1
- # Modulo Application Plugin
1
+ < div align = " center " >
2
2
3
+ # Modulo Application Plugin
3
4
![ Release App] ( https://github.com/ChillyCheesy/ModuloGradleApplication/actions/workflows/release-app.yml/badge.svg?branch=master )
5
+ [ ![ Gradle Plugin Portal] ( https://img.shields.io/gradle-plugin-portal/v/com.chillycheesy.modulo-application )] ( https://plugins.gradle.org/plugin/com.chillycheesy.modulo-application )
4
6
7
+ </div >
8
+ ---
5
9
## Overview.
6
10
The HomeTracker Application Plugin give help to deploy HomeTracker's modules.
7
11
@@ -16,14 +20,16 @@ The HomeTracker Application Plugin give help to deploy HomeTracker's modules.
16
20
* [ module] ( #closures-module )
17
21
* [ Tasks section] ( #tasks )
18
22
* [ generateModuleYml] ( #tasks-generateModuleYml )
23
+ * [ runModuloServer] ( #tasks-runModuloServer )
24
+ * [ deployModuleToLocalModuloServer] ( #tasks-deployModuleToLocalModuloServer )
19
25
20
26
## Getting Started Using the Plugin. <a id =" start " ></a >
21
27
### * Step 1: Apply the plugin to your Gradle build script.* <a id =" start-1 " ></a >
22
28
To apply the plugin, please add this following part of code.
23
29
24
30
``` groovy
25
31
plugins {
26
- id 'com.chillycheesy.modulo-application' version '0.0.3 '
32
+ id 'com.chillycheesy.modulo-application' version '1.1.0 '
27
33
}
28
34
29
35
group 'your.group'
@@ -50,8 +56,7 @@ $> ./gradlew build
50
56
```
51
57
52
58
### * Step 4: Use your module.* <a id =" start-4 " ></a >
53
- Take the built module and put it in the * modules* file of your Modulo server.
54
-
59
+ Take the built module and put it in the * modules* file of your Modulo server.
55
60
> Enjoy 🍻 🌶🧀
56
61
57
62
## Plugins Documentation. <a id =" doc " ></a >
@@ -83,18 +88,31 @@ The following array was the exhaustive list of **module**'s parameters.
83
88
84
89
| Key | Description | Equivalent of YAML | Default value |
85
90
| :----------------:| :---------------------------------------------------------| :------------------:| -----------------------------------------------:|
86
- | moduleName | Module name. | name | Your Gradle project name. |
87
- | version | Module version. | version | Your Gradle project version. |
88
- | authors | Module authors. | authors | [ 'ChillyCheesy'] |
89
- | main | Module main. | main | Concat the project group and the project name. |
90
- | mainPageName | Module main page name. | mainPageName | 'index' |
91
- | dependencies | Module dependencies. | dependencies | Empty list. |
92
- | softDependencies | Module soft dependencies. | softDependencies | Empty list. |
93
- | target | The output folder for the generated ** module.yml** file. | none | 'src/main/resources' |
91
+ | moduleName | Module name. | name | Your Gradle project name. |
92
+ | version | Module version. | version | Your Gradle project version. |
93
+ | authors | Module authors. | authors | [ 'ChillyCheesy'] |
94
+ | main | Module main. | main | Concat the project group and the project name. |
95
+ | mainPageName | Module main page name. | mainPageName | 'index' |
96
+ | dependencies | Module dependencies. | dependencies | Empty list. |
97
+ | softDependencies | Module soft dependencies. | softDependencies | Empty list. |
98
+ | target | The output folder for the generated ** module.yml** file. | none | 'src/main/resources' |
99
+ | moduloVersion | The target version for the modulo server. | none | 'BINKS-0.1.1' |
100
+
94
101
95
102
96
103
## Tasks section. <a id =" tasks " ></a >
97
104
### generateModuleYml. <a id =" tasks-generateModuleYml " ></a >
98
- This task generate the ** module.yml** file.
105
+ This task generate the ** module.yml** file.
106
+ If you run the processResources task. It will automatically call the generateModuleYml task.
107
+ The processResources task depends on the generateModuleYml task.
108
+
109
+
110
+ ### runModuloServer. <a id =" tasks-runModuloServer " ></a >
111
+ This task run a modulo server. The version of the modulo server is defined by the ** moduloVersion** parameter. * [ (See moduloVersion closure for more information.)] ( #closures-module ) *
112
+ The server name is automatically downloaded and placed in the ``` modulo-server ``` folder at the root of your project.
113
+ The runModuloServer task depends on the deployModuleToLocalModuloServer task.
114
+
115
+ ### deployModuleToLocalModuloServer. <a id =" tasks-deployModuleToLocalModuloServer " ></a >
116
+ This task build your module and copy it on the ``` modulo-server/modules ``` folder at the root of your project.
99
117
100
118
🌶🧀
0 commit comments