Skip to content

Commit eefe8a1

Browse files
committed
chore(model-server): remove commented legacy code
1 parent 11985e3 commit eefe8a1

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

gradle/libs.versions.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ node = {id = "com.github.node-gradle.node", version = "7.0.1"}
2020
detekt = { id = "io.gitlab.arturbosch.detekt", version = "1.23.4" }
2121
npm-publish = { id = "dev.petuska.npm.publish", version = "3.4.1" }
2222
openapi-generator = {id = "org.openapi.generator", version.ref = "openapi"}
23-
#kotlin-plugin-allopen = { id = "org.jetbrains.kotlin.plugin.allopen", version.ref = "kotlin" }
2423

2524
[versions]
2625
kotlin = "1.9.21"

model-server/build.gradle.kts

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ plugins {
1010
id("com.github.johnrengelman.shadow") version "8.1.1"
1111
kotlin("plugin.serialization")
1212
alias(libs.plugins.openapi.generator)
13-
// alias(libs.plugins.kotlin.plugin.allopen)
1413
}
1514

1615
description = "Model Server offering access to model storage"
@@ -67,9 +66,6 @@ dependencies {
6766
testImplementation(libs.ktor.server.test.host)
6867
testImplementation(kotlin("test"))
6968
testImplementation(project(":modelql-untyped"))
70-
71-
// implementation("jakarta.ws.rs:jakarta.ws.rs-api:2.1.6")
72-
// implementation("jakarta.annotation:jakarta.annotation-api:1.3.5")
7369
}
7470

7571
tasks.test {
@@ -218,21 +214,6 @@ openApiGenerate {
218214
"featureMetrics" to "false",
219215
),
220216
)
221-
globalProperties.putAll(
222-
mapOf(
223-
// "debugOpenAPI" to "true",
224-
// "debugModels" to "true",
225-
// "debugSupportingFiles" to "true",
226-
// "debugOperations" to "true",
227-
228-
// "models" to "",
229-
// "apis" to "",
230-
// "supportingFiles" to "",
231-
// "apiTests" to "false",
232-
// "modelTests" to "false",
233-
// "modelDocs" to "false",
234-
),
235-
)
236217
}
237218

238219
// Ensure that the OpenAPI generator runs before starting to compile
@@ -252,16 +233,8 @@ ktlint {
252233
exclude {
253234
it.file.toPath().toAbsolutePath().startsWith(openAPIgenerationPath)
254235
}
255-
// exclude("$openAPIgenerationPath/src/main/kotlin/**")
256-
// exclude("$openAPIgenerationPath/**")
257-
// exclude("**/generated/**")
258236
}
259237
}
260238

261-
// allOpen {
262-
// annotation("javax.ws.rs.Path")
263-
// annotation("javax.enterprise.context.ApplicationScoped")
264-
// }
265-
266239
// add openAPI generated artifacts to the sourceSets
267240
java.sourceSets.getByName("main").java.srcDir(file("$openAPIgenerationPath/src/main/kotlin"))

0 commit comments

Comments
 (0)