forked from inductiveautomation/ignition-sdk-examples
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
103 lines (84 loc) · 3.16 KB
/
build.gradle
File metadata and controls
103 lines (84 loc) · 3.16 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
import java.util.concurrent.TimeUnit
buildscript {
repositories {
gradlePluginPortal()
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://nexus.inductiveautomation.com/repository/inductiveautomation-releases/" }
maven { url "https://nexus.inductiveautomation.com/repository/inductiveautomation-thirdparty/" }
maven { url "https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/" }
}
dependencies {
classpath("com.inductiveautomation.gradle:ignition-module-plugin:1.2.9")
}
}
plugins {
id "base"
}
version "1.0.0"
group "org.fakester"
allprojects {
apply plugin: "ignition-module-plugin"
ignitionModule {
// name of the .modl file to build
fileName "RadComponents"
// what is the name of the "root" gradle project for this module. In this case, it"s "this", aka, the project
// specified as <repoPath>/perspective-component/build.gradle
moduleRoot "perspective-component"
// module xml configuration
moduleName "RadComponents"
moduleId "org.fakester.radcomponent"
moduleVersion "${project.version}"
moduleDescription "A module that adds components to the Perspective module."
requiredIgnitionVersion "8.0.0"
requiredFrameworkVersion "8"
isFree true
license "license.html"
moduleDependencies = [
[scope: "G", moduleId: "com.inductiveautomation.perspective"],
[scope: "D", moduleId: "com.inductiveautomation.perspective"]
]
// map our projects to the scopes their jars should apply. Web isn't here because its assets are moved
// into the gateway resource folder as part of the module's build
projectScopes = [
[name: "gateway", scope: "G"],
[name: "designer", scope: "D"],
[name: "common", scope: "GD"]
]
hooks = [
[scope: "G", hookClass: "org.fakester.gateway.RadGatewayHook"],
[scope: "D", hookClass: "org.fakester.designer.RadDesignerHook"]
]
}
if (project.plugins.hasPlugin("java")) {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
// check for new versions of dependencies more frequently than default 24 hours.
configurations.all {
resolutionStrategy {
cacheChangingModulesFor(600, TimeUnit.SECONDS)
}
}
// where should we try to resolve maven artifacts from?
repositories {
mavenLocal()
mavenCentral()
google()
jcenter()
maven {
name "teamdev"
url "http://maven.teamdev.com/repository/products"
}
maven { url "https://nexus.inductiveautomation.com/repository/inductiveautomation-releases/" }
maven { url "https://nexus.inductiveautomation.com/repository/inductiveautomation-thirdparty/" }
maven { url "https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/" }
}
}
task deepClean() {
dependsOn clean
doLast {
delete(file(".gradle"))
}
}