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