-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #235 from clementguillot/234-move-gateways-to-thei…
…r-own-module chore(server): move all gateways to a dedicated module
- Loading branch information
Showing
39 changed files
with
164 additions
and
78 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
quarkus: | ||
http: | ||
port: | ||
8080 | ||
port: 8080 | ||
root-path: "/nx-cloud" | ||
mongodb: | ||
database: nx-cloud-ce | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# libs/server/gateway | ||
|
||
This library is part of [`apps/server`](../../../apps/server) application. | ||
|
||
It contains all implementation of `gateway`s defined by the `libs/server/domain` layer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget | ||
|
||
plugins { | ||
kotlin("jvm") | ||
kotlin("plugin.allopen") | ||
id("io.quarkus") | ||
id("com.diffplug.spotless") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
mavenLocal() | ||
} | ||
|
||
val javaVersion: String by project | ||
val quarkusPlatformGroupId: String by project | ||
val quarkusPlatformArtifactId: String by project | ||
val quarkusPlatformVersion: String by project | ||
val ktlintVersion: String by project | ||
val atriumVersion: String by project | ||
val mockkVersion: String by project | ||
val quarkusMockkVersion: String by project | ||
|
||
dependencies { | ||
implementation(enforcedPlatform("$quarkusPlatformGroupId:$quarkusPlatformArtifactId:$quarkusPlatformVersion")) | ||
implementation("io.quarkus:quarkus-kotlin") | ||
implementation("io.quarkus:quarkus-mongodb-panache-kotlin") | ||
|
||
implementation(project(":libs:server:domain")) | ||
implementation(project(":libs:server:persistence")) | ||
implementation(project(":libs:server:storage:core")) | ||
|
||
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test") | ||
testImplementation("ch.tutteli.atrium:atrium-fluent:$atriumVersion") | ||
testImplementation("io.mockk:mockk:$mockkVersion") | ||
testImplementation("io.quarkiverse.mockk:quarkus-junit5-mockk:$quarkusMockkVersion") | ||
testImplementation("io.quarkus:quarkus-junit5") | ||
testImplementation("io.quarkus:quarkus-jacoco") | ||
testImplementation("io.quarkus:quarkus-test-hibernate-reactive-panache") | ||
} | ||
|
||
group = "org.nxcloudce.server" | ||
version = "0.4.2" | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.toVersion(javaVersion) | ||
targetCompatibility = JavaVersion.toVersion(javaVersion) | ||
} | ||
|
||
tasks.withType<Jar> { | ||
archiveBaseName = "${project.group}.${project.name}" | ||
} | ||
|
||
tasks.withType<Test> { | ||
systemProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager") | ||
} | ||
|
||
allOpen { | ||
annotation("jakarta.enterprise.context.ApplicationScoped") | ||
annotation("io.quarkus.test.junit.QuarkusTest") | ||
} | ||
|
||
kotlin { | ||
compilerOptions { | ||
freeCompilerArgs.add("-Xjsr305=strict") | ||
jvmTarget = JvmTarget.fromTarget(javaVersion) | ||
javaParameters = true | ||
} | ||
} | ||
|
||
spotless { | ||
kotlin { | ||
ktlint(ktlintVersion) | ||
} | ||
|
||
kotlinGradle { | ||
target("*.gradle.kts") | ||
ktlint(ktlintVersion) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "libs/server/gateway", | ||
"$schema": "../../../node_modules/nx/schemas/project-schema.json", | ||
"projectType": "library", | ||
"sourceRoot": "libs/server/gateway/src", | ||
"targets": { | ||
"build": { | ||
"executor": "@jnxplus/nx-gradle:run-task", | ||
"options": { | ||
"task": "build" | ||
}, | ||
"outputs": ["{projectRoot}/build/classes", "{projectRoot}/build/libs"] | ||
}, | ||
"lint": { | ||
"executor": "@jnxplus/nx-gradle:run-task", | ||
"options": { | ||
"task": "spotlessCheck" | ||
} | ||
}, | ||
"format": { | ||
"executor": "@jnxplus/nx-gradle:run-task", | ||
"options": { | ||
"task": "spotlessApply" | ||
} | ||
}, | ||
"test": { | ||
"executor": "@jnxplus/nx-gradle:run-task", | ||
"options": { | ||
"task": "test" | ||
}, | ||
"outputs": ["{projectRoot}/build/jacoco-report"] | ||
} | ||
}, | ||
"tags": [] | ||
} |
2 changes: 1 addition & 1 deletion
2
.../persistence/gateway/AccessTokenMapper.kt → .../gateway/persistence/AccessTokenMapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ence/gateway/AccessTokenRepositoryImpl.kt → .../persistence/AccessTokenRepositoryImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ver/persistence/gateway/ArtifactMapper.kt → ...ver/gateway/persistence/ArtifactMapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...istence/gateway/ArtifactRepositoryImpl.kt → ...way/persistence/ArtifactRepositoryImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...persistence/gateway/OrganizationMapper.kt → ...gateway/persistence/OrganizationMapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nce/gateway/OrganizationRepositoryImpl.kt → ...persistence/OrganizationRepositoryImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../persistence/gateway/RunRepositoryImpl.kt → .../gateway/persistence/RunRepositoryImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../server/persistence/gateway/TaskMapper.kt → .../server/gateway/persistence/TaskMapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...persistence/gateway/TaskRepositoryImpl.kt → ...gateway/persistence/TaskRepositoryImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...istence/gateway/TaskRunnerMetricMapper.kt → ...way/persistence/TaskRunnerMetricMapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...gateway/TaskRunnerMetricRepositoryImpl.kt → ...istence/TaskRunnerMetricRepositoryImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...er/persistence/gateway/WorkspaceMapper.kt → ...er/gateway/persistence/WorkspaceMapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...stence/gateway/WorkspaceRepositoryImpl.kt → ...ay/persistence/WorkspaceRepositoryImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ver/storage/gateway/StorageServiceImpl.kt → ...ver/gateway/storage/StorageServiceImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../gateway/AccessTokenRepositoryImplTest.kt → ...sistence/AccessTokenRepositoryImplTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nce/gateway/ArtifactRepositoryImplTest.kt → ...persistence/ArtifactRepositoryImplTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...gateway/OrganizationRepositoryImplTest.kt → ...istence/OrganizationRepositoryImplTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...sistence/gateway/RunRepositoryImplTest.kt → ...eway/persistence/RunRepositoryImplTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...istence/gateway/TaskRepositoryImplTest.kt → ...way/persistence/TaskRepositoryImplTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...way/TaskRunnerMetricRepositoryImplTest.kt → ...nce/TaskRunnerMetricRepositoryImplTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ce/gateway/WorkspaceRepositoryImplTest.kt → ...ersistence/WorkspaceRepositoryImplTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...storage/gateway/StorageServiceImplTest.kt → ...gateway/storage/StorageServiceImplTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.