Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply release management #8

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
7e890a4
Add ci_cd.json
wborn Dec 3, 2023
b0d7630
Use fork with gitmodules and pipeline
wborn Dec 3, 2023
a3ab258
Update yarn.lock
wborn Dec 3, 2023
67791c1
Set openremoteVersion and use resolveDependency
wborn Dec 10, 2023
a0b94cf
Consume manager artifact
wborn Dec 17, 2023
3b2413d
Use custom-project.gradle if openremote submodule does not exist
wborn Dec 17, 2023
4644a25
Use NPM dependencies from repository instead of workspace
wborn Dec 17, 2023
30ad5c1
Further work on removing submodule dependency
richturner Jan 24, 2024
9c76406
WIP
richturner Jan 29, 2024
35edf08
Further work on removing submodule dependency
richturner Jan 30, 2024
d2e2de1
Use 1.2.0-snapshot NPMs
wborn Apr 22, 2024
933266a
Update yarn.lock
wborn Apr 22, 2024
4ee5de2
Use openremoteVersion 1.2.0-SNAPSHOT
wborn Apr 22, 2024
eed1298
Merge remote-tracking branch 'origin/main' into feature/release-manag…
wborn Apr 28, 2024
6b74a6b
Update GHA workflow
wborn Apr 28, 2024
47d6afa
Fix build
richturner May 3, 2024
cecabd9
Fix build
richturner May 3, 2024
50f9539
Consume NPMs from npmjs.com
wborn May 12, 2024
6f8e5c9
UI build fixes
richturner Jun 14, 2024
a07d2db
UI build fixes
richturner Jun 14, 2024
e40b3ac
UI build fixes
richturner Jun 21, 2024
7aef249
Cleanup run configurations
wborn Aug 20, 2024
20f84ab
Merge remote-tracking branch 'origin/main' into feature/release-manag…
wborn Sep 13, 2024
5c7de9c
Update snapshot dependencies
wborn Sep 13, 2024
e68340e
Update environment variables
wborn Sep 19, 2024
74986ab
Use UI JARs in IDE and some cleanup
wborn Sep 27, 2024
bcf3715
Add missing new lines
wborn Oct 3, 2024
840babc
Use parallel build
wborn Oct 3, 2024
05a28d9
Cleanup
wborn Oct 3, 2024
9e022d6
Cleanup
wborn Oct 11, 2024
db65310
Update gradle build config
wborn Nov 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
# Push excluding tags and workflow changes
push:
branches:
- '**'
- '**'
tags-ignore:
- '*.*'
paths-ignore:
Expand All @@ -15,7 +15,7 @@ on:

# When a release is published
release:
types: [published]
types: [published]

# Manual trigger
workflow_dispatch:
Expand Down
5 changes: 0 additions & 5 deletions .gitmodules

This file was deleted.

4 changes: 2 additions & 2 deletions agent/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apply plugin: "java-library"

dependencies {
api resolveProject(":agent")
api project(":model")
api "io.openremote:openremote-agent:$openremoteVersion"
}

task installDist {
tasks.register('installDist') {
dependsOn jar
}
10 changes: 4 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@

allprojects {
// Apply common project setup but exclude submodule, it has its own build.gradle
if (!path.startsWith(":openremote")) {
apply from: "${project(":openremote").projectDir}/project.gradle"
}
// Apply common project setup
apply from: "${project.rootDir}/project.gradle"
}

// Uncomment the following to configure files to be encrypted/decrypted
Expand All @@ -26,7 +23,7 @@ allprojects {
// return password.toCharArray()
// }
//}
//task checkFilesGitIgnoredNew(type: Exec) {
//tasks.register('checkFilesGitIgnoredNew', Exec) {
// // The provided checkFilesGitIgnored task doesn't work on Windows so here's one that does
// def args = []
// if (org.apache.tools.ant.taskdefs.condition.Os.isFamily(org.apache.tools.ant.taskdefs.condition.Os.FAMILY_WINDOWS)) {
Expand All @@ -35,6 +32,7 @@ allprojects {
// }
// args.add("git")
// args.add("check-ignore")
// args.add("-q")
// args.addAll(project.getProperties().get("gradleFileEncrypt").plainFiles)
//
// commandLine args
Expand Down
12 changes: 8 additions & 4 deletions deployment/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ dependencies {
api project(":setup")
}

task license {
tasks.register('license') {
doLast {
def toConcatenate = files("${project(":openremote").projectDir}/LICENSE.txt", "${rootDir}/LICENSE.txt")
def licenseFiles = new ArrayList<>()
licenseFiles.add("${rootDir}/LICENSE.txt")

def toConcatenate = files(licenseFiles.toArray())
def outputFileName = "${buildDir}/image/manager/app/LICENSE.txt"
def output = new File(outputFileName)
if (output.exists()) {
Expand All @@ -19,8 +22,9 @@ task license {
}
}

task installDist(type: Copy) {
dependsOn (parent.getTasksByName('installDist', true).findAll {
tasks.register('installDist', Copy) {
duplicatesStrategy DuplicatesStrategy.EXCLUDE
dependsOn(parent.getTasksByName('installDist', true).findAll {
// Don't create circular dependency or depend on built in openremote submodule apps
it.project != project && !it.project.path.startsWith(":openremote:ui:app")
})
Expand Down
6 changes: 6 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
org.gradle.parallel=true

projectName = custom-project
projectVersion = 1.0-SNAPSHOT

openremoteVersion = 1.2.0-SNAPSHOT

jacksonVersion = 2.16.0
typescriptGeneratorVersion = 3.2.1263
6 changes: 3 additions & 3 deletions manager/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apply plugin: "java-library"

dependencies {
api resolveProject(":container")
api resolveProject(":manager")
api project(":agent")
api project(":model")
api "io.openremote:openremote-container:$openremoteVersion"
api "io.openremote:openremote-manager:$openremoteVersion"
}

task installDist {
tasks.register('installDist') {
dependsOn jar
}
4 changes: 2 additions & 2 deletions model/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apply plugin: "java-library"

dependencies {
api resolveProject(":model")
api "io.openremote:openremote-model:$openremoteVersion"
}

task installDist {
tasks.register('installDist') {
dependsOn jar
}
1 change: 0 additions & 1 deletion openremote
Submodule openremote deleted from 42cb01
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
"packageManager": "[email protected]",
"private": true,
"workspaces": [
"openremote",
"ui/app/*",
"ui/component/*",
"ui/demo/*"
],
"devDependencies": {
"lerna": "^4.0.0"
"@openremote/util": "^1.2.0-snapshot"
}
}
Loading
Loading