Skip to content

Commit 43122f7

Browse files
committed
Updated to Ignition 8.3
- Updated version to 2.0.0
1 parent f9d5902 commit 43122f7

34 files changed

Lines changed: 3171 additions & 3991 deletions

build.gradle

Lines changed: 0 additions & 112 deletions
This file was deleted.

build.gradle.kts

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
import java.util.concurrent.TimeUnit
2+
3+
4+
plugins {
5+
base
6+
// the ignition module plugin: https://github.com/inductiveautomation/ignition-module-tools
7+
id("io.ia.sdk.modl") version("0.1.1")
8+
id("org.barfuin.gradle.taskinfo") version "1.3.0"
9+
}
10+
11+
allprojects {
12+
version = "2.0.0"
13+
group = "org.imdc"
14+
}
15+
16+
ignitionModule {
17+
fileName.set("PerspectiveMomentaryButton")
18+
name.set("Perspective Momentary Button")
19+
id.set("org.imdc.perspective.momentarybutton")
20+
moduleVersion.set("${project.version}")
21+
moduleDescription.set("The module provides a Perspective momentary button component")
22+
requiredIgnitionVersion.set("8.3.0")
23+
license.set("license.html")
24+
25+
moduleDependencies.put("com.inductiveautomation.perspective", "DG")
26+
27+
projectScopes.putAll(
28+
mapOf(
29+
":gateway" to "G",
30+
":web" to "G",
31+
":designer" to "D",
32+
":common" to "GD"
33+
)
34+
)
35+
36+
hooks.putAll(
37+
mapOf(
38+
"org.imdc.perspective.momentarybutton.gateway.GatewayHook" to "G",
39+
"org.imdc.perspective.momentarybutton.designer.DesignerHook" to "D"
40+
)
41+
)
42+
}
43+
44+
45+
val deepClean by tasks.registering {
46+
dependsOn(allprojects.map { "${it.path}:clean" })
47+
description = "Executes clean tasks and remove node plugin caches."
48+
doLast {
49+
delete(file(".gradle"))
50+
}
51+
}

common/build.gradle

Lines changed: 0 additions & 16 deletions
This file was deleted.

common/build.gradle.kts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
plugins {
2+
`java-library`
3+
}
4+
5+
java {
6+
toolchain {
7+
languageVersion.set(JavaLanguageVersion.of(17))
8+
}
9+
}
10+
11+
12+
dependencies {
13+
// compileOnly is the gradle equivalent to "provided" scope. Here we resolve the dependencies via the
14+
// declarations in the gradle/libs.versions.toml file
15+
compileOnly(libs.ignition.common)
16+
compileOnly(libs.ignition.perspective.common)
17+
compileOnly(libs.google.guava)
18+
compileOnly(libs.ia.gson)
19+
}

designer/build.gradle

Lines changed: 0 additions & 17 deletions
This file was deleted.

designer/build.gradle.kts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
plugins {
2+
`java-library`
3+
}
4+
5+
6+
java {
7+
toolchain {
8+
languageVersion.set(JavaLanguageVersion.of(17))
9+
}
10+
}
11+
12+
13+
dependencies {
14+
api(projects.common)
15+
compileOnly(libs.ignition.common)
16+
compileOnly(libs.google.jsr305)
17+
compileOnly(libs.ignition.designer.api)
18+
compileOnly(libs.ignition.perspective.common)
19+
compileOnly(libs.ignition.perspective.designer)
20+
}

gateway/build.gradle

Lines changed: 0 additions & 18 deletions
This file was deleted.

gateway/build.gradle.kts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
plugins {
2+
`java-library`
3+
}
4+
5+
java {
6+
toolchain {
7+
languageVersion.set(JavaLanguageVersion.of(17))
8+
}
9+
}
10+
11+
dependencies {
12+
// we have a dependency on the common project. Use the typesafe syntax here, but could also be written
13+
// as 'api(project(":common"))'. See https://docs.gradle.org/7.0/release-notes.html on Type-safe project accessors
14+
implementation(projects.common)
15+
16+
modlImplementation(projects.web)
17+
18+
// declare our dependencies on ignition sdk elements. These are defined in the gradle/libs.versions.toml file of
19+
// the root project for this module
20+
compileOnly(libs.ignition.common)
21+
compileOnly(libs.ignition.gateway.api)
22+
implementation(libs.ignition.perspective.gateway)
23+
implementation(libs.ignition.perspective.common)
24+
compileOnly(libs.ia.gson)
25+
}

gradle/libs.versions.toml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[versions]
2+
ignition = "8.3.3"
3+
4+
[libraries]
5+
# Dependencies provided by the Ignition SDK, they all reference the 'ignition' version
6+
ignition-alarm-notification-common = { module = "com.inductiveautomation.ignitionsdk:alarm-notification-common", version.ref = "ignition" }
7+
ignition-alarm-notification-designer = { module = "com.inductiveautomation.ignitionsdk:alarm-notification-designer", version.ref = "ignition" }
8+
ignition-alarm-notification-gateway-api = { module = "com.inductiveautomation.ignitionsdk:alarm-notification-gateway-api", version.ref = "ignition" }
9+
ignition-client-api = { module = "com.inductiveautomation.ignitionsdk:client-api", version.ref = "ignition" }
10+
ignition-client-launcher = { module = "com.inductiveautomation.ignitionsdk:client-launcher", version.ref = "ignition" }
11+
ignition-common = { module = "com.inductiveautomation.ignitionsdk:ignition-common", version.ref = "ignition" }
12+
ignition-designer-api = { module = "com.inductiveautomation.ignitionsdk:designer-api", version.ref = "ignition" }
13+
ignition-designer-launcher = { module = "com.inductiveautomation.ignitionsdk:designer-launcher", version.ref = "ignition" }
14+
ignition-driver-api = { module = "com.inductiveautomation.ignitionsdk:driver-api", version.ref = "ignition" }
15+
ignition-gateway-api = { module = "com.inductiveautomation.ignitionsdk:gateway-api", version.ref = "ignition" }
16+
ignition-perspective-common = { module = "com.inductiveautomation.ignitionsdk:perspective-common", version.ref = "ignition" }
17+
ignition-perspective-designer = { module = "com.inductiveautomation.ignitionsdk:perspective-designer", version.ref = "ignition" }
18+
ignition-perspective-gateway = { module = "com.inductiveautomation.ignitionsdk:perspective-gateway", version.ref = "ignition" }
19+
ignition-reporting-common = { module = "com.inductiveautomation.ignitionsdk:reporting-common", version.ref = "ignition" }
20+
ignition-reporting-designer = { module = "com.inductiveautomation.ignitionsdk:reporting-designer", version.ref = "ignition" }
21+
ignition-reporting-gateway = { module = "com.inductiveautomation.ignitionsdk:reporting-gateway", version.ref = "ignition" }
22+
ignition-sfc-client = { module = "com.inductiveautomation.ignitionsdk:sfc-client", version.ref = "ignition" }
23+
ignition-sfc-common = { module = "com.inductiveautomation.ignitionsdk:sfc-common", version.ref = "ignition" }
24+
ignition-sfc-designer = { module = "com.inductiveautomation.ignitionsdk:sfc-designer", version.ref = "ignition" }
25+
ignition-sfc-gateway-api = { module = "com.inductiveautomation.ignitionsdk:sfc-gateway-api", version.ref = "ignition" }
26+
ignition-tag-historian = { module = "com.inductiveautomation.ignitionsdk:tag-historian", version.ref = "ignition" }
27+
ignition-vision-client-api = { module = "com.inductiveautomation.ignitionsdk:vision-client-api", version.ref = "ignition" }
28+
ignition-vision-common = { module = "com.inductiveautomation.ignitionsdk:vision-common", version.ref = "ignition" }
29+
ignition-vision-designer-api = { module = "com.inductiveautomation.ignitionsdk:vision-designer-api", version.ref = "ignition" }
30+
31+
# Dependencies for 3rd party libraries used in this module
32+
google-guava = { module = "com.google.guava:guava", version = "23.3-jre" }
33+
google-jsr305 = { module = "com.google.code.findbugs:jsr305", version = "3.0.1" }
34+
# ia modified version of gson from https://github.com/inductiveautomation/gson
35+
ia-gson = { module = "com.inductiveautomation.ignition:ia-gson", version = "2.8.5" }

gradle/wrapper/gradle-wrapper.jar

4.24 KB
Binary file not shown.

0 commit comments

Comments
 (0)