Skip to content

Commit 81d16c3

Browse files
authored
Merge pull request #73 from modelix/feature/MODELIX-252
MODELIX-252: Rename mvn artifacts to unify modelix
2 parents af53af1 + 8b9f216 commit 81d16c3

File tree

165 files changed

+72
-43
lines changed

Some content is hidden

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

165 files changed

+72
-43
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
env:
2222
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2323
run: ./gradlew build publishToMavenLocal -PciBuild=true
24-
- name: Test Metamodel Gradle Plugin
24+
- name: Test Model API Generator Gradle Plugin
2525
env:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
run: metamodel-gradle-test/ci.sh
27+
run: model-api-gen-gradle-test/ci.sh
2828
- name: Archive test report
2929
uses: actions/upload-artifact@v3
3030
if: always()

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Use tag as version
2828
run: echo "${GITHUB_REF#refs/*/}" > version.txt
2929
- name: Build and Publish Artifacts
30-
run: ./gradlew build publish -PciBuild=true -Partifacts.itemis.cloud.user=${{secrets.ARTIFACTS_ITEMIS_CLOUD_USER}} -Partifacts.itemis.cloud.pw=${{secrets.ARTIFACTS_ITEMIS_CLOUD_PW}}
30+
run: ./gradlew build publish -PciBuild=true -Partifacts.itemis.cloud.user=${{secrets.ARTIFACTS_ITEMIS_CLOUD_USER}} -Partifacts.itemis.cloud.pw=${{secrets.ARTIFACTS_ITEMIS_CLOUD_PW}} -PGITHUB_ACTOR=${{ github.actor }} -PGITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
3131
env:
3232
NODE_AUTH_TOKEN: ${{ secrets.ARTIFACTS_ITEMIS_CLOUD_NPM_TOKEN }}
3333
- name: Set up QEMU

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
kotlin_gen
99
/version.txt
1010
/node_modules
11+
**/.ideaconfig
12+
**/.mpsconfig

build.gradle.kts

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
plugins {
32
kotlin("multiplatform") apply false
43
kotlin("plugin.serialization") apply false
@@ -20,7 +19,7 @@ fun computeVersion(): Any {
2019
return if (versionFile.exists()) {
2120
versionFile.readText().trim()
2221
} else {
23-
gitVersion().let{ if (it.endsWith("-SNAPSHOT")) it else "$it-SNAPSHOT" }.also { versionFile.writeText(it) }
22+
gitVersion().let { if (it.endsWith("-SNAPSHOT")) it else "$it-SNAPSHOT" }.also { versionFile.writeText(it) }
2423
}
2524
}
2625

@@ -51,10 +50,35 @@ subprojects {
5150
}
5251
}
5352
}
53+
val ghp_username = project.findProperty("gpr.user") as? String ?: System.getenv("GITHUB_ACTOR")
54+
val ghp_password = project.findProperty("gpr.key") as? String ?: System.getenv("GITHUB_TOKEN")
55+
if (ghp_username != null && ghp_password != null) {
56+
maven {
57+
name = "GitHubPackages"
58+
// we moved some components from modelix/modelix to modelix/modelix.core but github packages
59+
// cannot handle this situation. basically we suffer from what is described here:
60+
// https://github.com/orgs/community/discussions/23474
61+
// this is a simple workaround for the affected components.
62+
// consequently, when obtaining these dependencies, the repo url is the old modelix/modelix one...
63+
if (project.name in arrayOf("model-client",
64+
"model-client-js",
65+
"model-client-jvm",
66+
"model-server",
67+
"model-server-api")) {
68+
url = uri("https://maven.pkg.github.com/modelix/modelix")
69+
} else {
70+
url = uri("https://maven.pkg.github.com/modelix/modelix.core")
71+
}
72+
credentials {
73+
username = ghp_username
74+
password = ghp_password
75+
}
76+
}
77+
}
5478
}
5579
}
5680
}
5781

5882
tasks.withType<org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask> {
5983
dependsOn(":ts-model-api:npm_run_build")
60-
}
84+
}

commitlint.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ module.exports = {
66
"always",
77
[
88
"light-model-client",
9-
"light-model-server",
10-
"metamodel-export-mps",
11-
"metamodel-generator",
12-
"metamodel-gradle",
9+
"model-server-lib",
10+
"metamodel-export",
11+
"model-api-gen",
12+
"model-api-gen-gradle",
1313
"model-api",
1414
"model-client",
1515
"model-server",

docs/global/modules/core/pages/howto/usage-light-model-client.adoc

Lines changed: 1 addition & 1 deletion

docs/global/modules/core/pages/howto/usage-model-server.adoc

Lines changed: 1 addition & 1 deletion

light-model-client/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ kotlin {
3333
val commonMain by getting {
3434
dependencies {
3535
implementation(project(":model-api"))
36-
implementation(project(":metamodel-runtime"))
36+
implementation(project(":model-api-gen-runtime"))
3737
implementation(project(":model-server-api"))
3838
implementation("io.ktor:ktor-client-websockets:$ktorVersion")
3939
implementation(kotlin("stdlib-common"))
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)