Skip to content

Commit 0106bf4

Browse files
committed
Update to Latest OpenRemote version
1 parent 1e61871 commit 0106bf4

67 files changed

Lines changed: 3564 additions & 9904 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci_cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
# Push excluding tags and workflow changes
66
push:
77
branches:
8-
- '**'
8+
- '**'
99
tags-ignore:
1010
- '*.*'
1111
paths-ignore:
@@ -15,7 +15,7 @@ on:
1515

1616
# When a release is published
1717
release:
18-
types: [published]
18+
types: [published]
1919

2020
# Manual trigger
2121
workflow_dispatch:

.gitmodules

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright 2021, OpenRemote Inc.
3+
*
4+
* See the CONTRIBUTORS.txt file in the distribution for a
5+
* full listing of individual contributors.
6+
*
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Affero General Public License as
9+
* published by the Free Software Foundation, either version 3 of the
10+
* License, or (at your option) any later version.
11+
*
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Affero General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Affero General Public License
18+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19+
*/
20+
21+
package org.openremote.agent.teltonika;
22+
23+
import org.openremote.model.AssetModelProvider;
24+
25+
public class CustomAgentModelProvider implements AssetModelProvider {
26+
27+
@Override
28+
public boolean useAutoScan() {
29+
return true;
30+
}
31+
}

build.gradle

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11

22
allprojects {
3-
// Apply common project setup but exclude submodule, it has its own build.gradle
4-
if (!path.startsWith(":openremote")) {
5-
apply from: "${project(":openremote").projectDir}/project.gradle"
6-
}
3+
// Apply common project setup
4+
apply from: "${project.rootDir}/project.gradle"
75
}
86

97
// Uncomment the following to configure files to be encrypted/decrypted
@@ -26,17 +24,29 @@ allprojects {
2624
// return password.toCharArray()
2725
// }
2826
//}
29-
//task checkFilesGitIgnoredNew(type: Exec) {
30-
// // The provided checkFilesGitIgnored task doesn't work on Windows so here's one that does
31-
// def args = []
32-
// if (org.apache.tools.ant.taskdefs.condition.Os.isFamily(org.apache.tools.ant.taskdefs.condition.Os.FAMILY_WINDOWS)) {
33-
// args.add("cmd")
34-
// args.add("/c")
35-
// }
36-
// args.add("git")
37-
// args.add("check-ignore")
38-
// args.add("-q")
39-
// args.addAll(project.getProperties().get("gradleFileEncrypt").plainFiles)
27+
//tasks.register('checkFilesGitIgnoredNew') {
28+
// doLast {
29+
// // The provided checkFilesGitIgnored task doesn't work on Windows so here's one that does
30+
// def plainFiles = project.getProperties().get("gradleFileEncrypt").plainFiles
31+
// plainFiles.each { plainFile ->
32+
// def args = []
33+
// if (org.apache.tools.ant.taskdefs.condition.Os.isFamily(org.apache.tools.ant.taskdefs.condition.Os.FAMILY_WINDOWS)) {
34+
// args.add("cmd")
35+
// args.add("/c")
36+
// }
37+
// args.add("git")
38+
// args.add("check-ignore")
39+
// args.add("-q")
40+
// args.add(plainFile) // Assuming plainFile is a single file path
41+
//
42+
// def result = project.exec {
43+
// commandLine args
44+
// ignoreExitValue = true // Allow the build to continue so we can check the exit value
45+
// }
4046
//
41-
// commandLine args
42-
//}
47+
// if (result.exitValue != 0) {
48+
// throw new GradleException("Command execution failed for file ${plainFile} with exit code: ${result.exitValue}")
49+
// }
50+
// }
51+
// }
52+
//}

deployment/build.gradle

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
apply plugin: "java-library"
22

3+
configurations {
4+
managerRuntime
5+
}
6+
37
dependencies {
48
api project(":setup")
9+
managerRuntime "io.openremote:openremote-manager:$openremoteVersion"
510
}
611

7-
task license {
12+
tasks.register('license') {
813
doLast {
9-
def toConcatenate = files("${project(":openremote").projectDir}/LICENSE.txt", "${rootDir}/LICENSE.txt")
14+
def licenseFiles = new ArrayList<>()
15+
licenseFiles.add("${rootDir}/LICENSE.txt")
16+
17+
def toConcatenate = files(licenseFiles.toArray())
1018
def outputFileName = "${buildDir}/image/manager/app/LICENSE.txt"
1119
def output = new File(outputFileName)
1220
if (output.exists()) {
@@ -19,8 +27,9 @@ task license {
1927
}
2028
}
2129

22-
task installDist(type: Copy) {
23-
dependsOn (parent.getTasksByName('installDist', true).findAll {
30+
tasks.register('installDist', Copy) {
31+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
32+
dependsOn(parent.getTasksByName('installDist', true).findAll {
2433
// Don't create circular dependency or depend on built in openremote submodule apps
2534
it.project != project && !it.project.path.startsWith(":openremote:ui:app")
2635
})
@@ -31,10 +40,14 @@ task installDist(type: Copy) {
3140

3241
into("image") {
3342
from projectDir
34-
exclude "build.gradle", "Dockerfile", "build", "**/*.mbtiles", "src", "**/*.md", ".gitignore"
43+
exclude "build.gradle", "Dockerfile", "build", "**/*.mbtiles", "src", "**/*.md", ".gitignore", "**/*.encrypted"
3544
}
3645

3746
into("image/manager/extensions") {
38-
from getDeploymentJars()
47+
from configurations.runtimeClasspath.resolvedConfiguration.resolvedArtifacts.collect {it.file }
48+
// Don't include deps baked into the manager docker image
49+
exclude configurations.managerRuntime.resolvedConfiguration.resolvedArtifacts.collect {it.file.name }
50+
// Don't include any ui packaged JARs (used for dev purposes only)
51+
exclude { (it.file.path.contains(".gradle") || it.file.path.contains(".m2")) && it.file.path.contains("io.openremote.ui") }
3952
}
4053
}

docker-compose.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,12 @@ services:
116116
volumes:
117117
- manager-data:/storage
118118
- deployment-data:/deployment
119+
- "/Users/panos/Downloads/eindhoven_30mb (2).mbtiles:/efs/nb.mbtiles"
119120
# Map data should be accessed from a volume mount
120121
# 1). Host filesystem - /deployment.local:/deployment.local
121122
# 2) NFS/EFS network mount - efs-data:/efs
123+
ports:
124+
- "1883:1883"
122125
environment:
123126
# Here are some typical environment variables you want to set
124127
# see openremote/profile/deploy.yml for details
@@ -135,6 +138,6 @@ services:
135138
OR_ADDITIONAL_HOSTNAMES: ${OR_ADDITIONAL_HOSTNAMES:-}
136139
OR_SSL_PORT: ${OR_SSL_PORT:--1}
137140
OR_DEV_MODE: ${OR_DEV_MODE:-false}
138-
OR_MAP_TILES_PATH: '/efs/europe.mbtiles'
139-
#OR_MAP_TILES_PATH: '/efs/europe.mbtiles'
141+
# OR_MAP_TILES_PATH: '/efs/europe.mbtiles'
142+
OR_MAP_TILES_PATH: '/efs/nb.mbtiles'
140143
# <<: *awslogs

gradle.properties

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1+
org.gradle.parallel=true
2+
13
projectName = custom-project
2-
projectVersion = 1.0-SNAPSHOT
4+
version = 1.0-SNAPSHOT
5+
6+
openremoteVersion = 1.8.0
7+
8+
jacksonVersion = 2.16.0
39
typescriptGeneratorVersion = 3.2.1263
4-
org.gradle.parallel=true
10+
11+
12+
swaggerVersion=2.2.28
13+
swaggeruiVersion = 5.18.2

gradle/wrapper/gradle-wrapper.jar

-11.9 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)