Skip to content

Commit 54670d4

Browse files
committed
feat: Add component for resolutions
Add a new component for handling resolutions. Signed-off-by: Johanna Lamppu <[email protected]>
1 parent c6219be commit 54670d4

File tree

3 files changed

+106
-0
lines changed

3 files changed

+106
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* Copyright (C) 2025 The ORT Server Authors (See <https://github.com/eclipse-apoapsis/ort-server/blob/main/NOTICE>)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* SPDX-License-Identifier: Apache-2.0
17+
* License-Filename: LICENSE
18+
*/
19+
20+
plugins {
21+
id("ort-server-kotlin-multiplatform-conventions")
22+
id("ort-server-publication-conventions")
23+
24+
// Apply third-party plugins.
25+
alias(libs.plugins.kotlinSerialization)
26+
}
27+
28+
group = "org.eclipse.apoapsis.ortserver.components.resolutions"
29+
30+
kotlin {
31+
linuxX64()
32+
macosArm64()
33+
macosX64()
34+
mingwX64()
35+
36+
sourceSets {
37+
commonMain {
38+
dependencies {
39+
api(projects.shared.apiModel)
40+
41+
implementation(libs.kotlinxSerializationJson)
42+
}
43+
}
44+
}
45+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/*
2+
* Copyright (C) 2025 The ORT Server Authors (See <https://github.com/eclipse-apoapsis/ort-server/blob/main/NOTICE>)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* SPDX-License-Identifier: Apache-2.0
17+
* License-Filename: LICENSE
18+
*/
19+
20+
plugins {
21+
id("ort-server-kotlin-component-backend-conventions")
22+
id("ort-server-publication-conventions")
23+
}
24+
25+
group = "org.eclipse.apoapsis.ortserver.components.resolutions"
26+
27+
dependencies {
28+
api(projects.model)
29+
api(projects.services.ortRunService)
30+
31+
api(libs.exposedCore)
32+
33+
implementation(projects.dao)
34+
35+
routesImplementation(projects.components.authorizationKeycloak.backend)
36+
routesImplementation(projects.components.resolutions.apiModel)
37+
routesImplementation(projects.shared.apiMappings)
38+
routesImplementation(projects.shared.apiModel)
39+
routesImplementation(projects.shared.ktorUtils)
40+
41+
routesImplementation(ktorLibs.http)
42+
routesImplementation(ktorLibs.server.auth)
43+
routesImplementation(ktorLibs.server.core)
44+
routesImplementation(libs.kotlinxDatetime)
45+
routesImplementation(libs.ktorOpenApi)
46+
47+
testImplementation(testFixtures(projects.dao))
48+
testImplementation(testFixtures(projects.shared.ktorUtils))
49+
50+
testImplementation(ktorLibs.client.core)
51+
testImplementation(ktorLibs.http)
52+
testImplementation(ktorLibs.server.auth)
53+
testImplementation(ktorLibs.server.core)
54+
testImplementation(ktorLibs.server.testHost)
55+
testImplementation(libs.kotestAssertionsCore)
56+
testImplementation(libs.kotestAssertionsKtor)
57+
testImplementation(libs.kotestFrameworkEngine)
58+
testImplementation(libs.mockk)
59+
}

settings.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ include(":components:infrastructure-services:api-model")
3838
include(":components:infrastructure-services:backend")
3939
include(":components:plugin-manager:api-model")
4040
include(":components:plugin-manager:backend")
41+
include(":components:resolutions:api-model")
42+
include(":components:resolutions:backend")
4143
include(":components:secrets:api-model")
4244
include(":components:secrets:backend")
4345
include(":compositions:secrets-routes")

0 commit comments

Comments
 (0)