forked from Kyvis-Labs/ignition-apexcharts-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
112 lines (91 loc) · 3.45 KB
/
build.gradle
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
import java.util.concurrent.TimeUnit
buildscript {
repositories {
gradlePluginPortal()
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://nexus.inductiveautomation.com/repository/inductiveautomation-thirdparty/" }
maven { url "https://nexus.inductiveautomation.com/repository/inductiveautomation-releases/" }
maven { url "https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/" }
}
ext.sdk_version = "8.1.0"
dependencies {
classpath("com.inductiveautomation.gradle:ignition-module-plugin:1.2.10-SNAPSHOT")
}
}
plugins {
id "base"
}
version "1.0.19"
group "com.kyvislabs"
allprojects {
apply plugin: "ignition-module-plugin"
ignitionModule {
// name of the .modl file to build
fileName "ApexCharts"
// 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 "apex-charts"
// module xml configuration
moduleName "Apex Charts Components"
moduleId "com.kyvislabs.apexcharts"
moduleVersion "${project.version}"
moduleDescription "The module provides Perspective ApexCharts components"
requiredIgnitionVersion "8.1.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: "com.kyvislabs.apexcharts.gateway.GatewayHook"],
[scope: "D", hookClass: "com.kyvislabs.apexcharts.designer.DesignerHook"]
]
}
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(30, 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 allprojects.collect { "${it.path}:clean" }
description "Executes clean tasks and remove node plugin caches."
doLast {
delete(file(".gradle"))
}
}
/**
* Gradle wrapper configuration*/
wrapper {
distributionUrl = "https://services.gradle.org/distributions/gradle-5.6.4-all.zip"
}