-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
121 lines (105 loc) · 4.56 KB
/
build.gradle.kts
File metadata and controls
121 lines (105 loc) · 4.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/*
* This project was generated by the Ignition Module Generator. It is intended to provide initial project structure
* and minimize boilerplate. This initial project is a starting point for your own module projects using the Gradle
* build system. It is not intended to be a replacement for learning and understanding Gradle.
*
* Generator: https://github.com/inductiveautomation/ignition-module-tools/tree/master/generator/generator-core
* Gradle Docs: https://docs.gradle.org/current/userguide/userguide.html
*/
import java.util.Date
import java.text.SimpleDateFormat
plugins {
id("io.ia.sdk.modl") version("0.3.0")
}
val sdk_version by extra("8.3.0-beta2")
allprojects {
version = "2.0.1"
}
ignitionModule {
/*
* Human readable name of the module, as will be displayed on the gateway status page
*/
name.set("Ignition Node-RED Module")
/*
* Name of the '.modl' file to be created, without file extension.
*/
fileName.set("IgnitionNodeRED")
/*
* Unique identifier for the module. Reverse domain convention is recommended (e.g.: com.mycompany.charting-module)
*/
id.set("org.imdc.nodered.IgnitionNodeRED")
/*
* Version of the module. Here being set to the same version that gradle uses, up above in this file.
*/
moduleVersion.set("${project.version}.${SimpleDateFormat("yyyyMMddHH").format(Date())}")
moduleDescription.set("Adds support for Node-RED nodes")
/*
* Minimum version of Ignition required for the module to function correctly. This typically won't change over
* the course of a major Ignition (7.9, 8.0, etc) version, except for when the Ignition Platform adds/changes APIs
* used by the module.
*/
requiredIgnitionVersion.set("8.3.0")
/*
* This is a map of String: String, where the 'key' represents the fully qualified path to the project
* (using gradle path syntax), and the value is the shorthand Scope string.
* Example entry: listOf( ":gateway" to "G", ":common" to "GC", ":vision-client" to "C" )
*/
projectScopes.putAll(mapOf(
":IgnitionNodeRED-gateway" to "G",
":IgnitionNodeRED-web" to "G",
))
/*
* Add your module dependencies here, following the examples, with scope being one or more of G, C or D,
* for (G)ateway, (D)esigner, Vision (C)lient.
* Example:
* moduleDependencies = mapOf(
* "CD" to "com.inductiveautomation.vision",
* "G" to "com.inductiveautomation.opcua"
* )
*/
//moduleDependencies.set(mapOf<String, String>())
/*
* Add required module dependencies here, following the examples, with scope being one or more of G, C or D,
* for (G)ateway, (D)esigner, Vision (C)lient.
*
* Example:
* moduleDependencySpecs {
* register("com.inductiveautomation.vision") {
* scope = "GCD"
* required = true
* }
* // register("com.another.mod") { ...
* }
*
* If any of module's required module dependencies are not present, the
* gateway will fault on loading the module.
*
* NOTE: For modules targeting Ignition 8.3 and later. Use `moduleDependencies` for 8.1 and earlier.
* This property will only add the "required" flag if {requiredIgnitionVersion} is at least 8.3
*
*/
/*
* Map of fully qualified hook class to the shorthand scope. Only one scope may apply to a class, and each scope
* must have no more than single class registered. You may omit scope registrations if they do not apply.
*
* Example entry: "com.myorganization.vectorizer.VectorizerDesignerHook" to "D"
*/
hooks.putAll(mapOf(
"org.imdc.nodered.GatewayHook" to "G"
))
/*
* Optional 'documentation' settings. Supply the files that would be desired to end up in the 'doc' dir of the
* assembled module, and specify the path to the index.html file inside that folder. In this commented-out
* example, the html files being collected are located in the module root project in `src/docs/`
*/
// the files to collect into the documentation dir, with example implementation
// documentationFiles.from(project.file("src/docs/"))
/* The path from the root documentation dir to the index file, or filename if in the root doc dir. */
// documentationIndex.set("index.html")
license.set("license.html")
/*
* Optional unsigned modl settings. If true, modl signing will be skipped. This is not for production and should
* be used merely for development testing
*/
skipModlSigning.set(true)
}