-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(project)!: cleanup micronaut configurations and dependencies, fi…
…xed micronaut problems with serializations
- Loading branch information
Showing
36 changed files
with
136 additions
and
134 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
plugins { | ||
id("micronaut-base") | ||
} | ||
|
||
val catalog: VersionCatalog = extensions.getByType<VersionCatalogsExtension>().named("libs") | ||
|
||
dependencies { | ||
ksp(catalog.getLibrary("micronaut-data-document-processor")) | ||
implementation(catalog.getLibrary("micronaut-data-mongodb")) | ||
runtimeOnly(catalog.getLibrary("mongodb-driver-sync")) | ||
implementation(catalog.getLibrary("micronaut-kafka")) | ||
} | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,17 @@ | ||
plugins { | ||
id("micronaut-base") | ||
id("micronaut-full") | ||
id("java-test-fixtures") | ||
} | ||
|
||
application { mainClass.set("piperkt.services.friendships.ApplicationKt") } | ||
|
||
detekt { | ||
config.setFrom("./detekt-config.yml") | ||
} | ||
detekt { config.setFrom("./detekt-config.yml") } | ||
|
||
dependencies { | ||
ksp("io.micronaut.data:micronaut-data-document-processor") | ||
implementation("io.micronaut.data:micronaut-data-mongodb") | ||
testImplementation(testFixtures(project(":commons"))) | ||
runtimeOnly("org.mongodb:mongodb-driver-sync") | ||
implementation(project(":commons")) | ||
testImplementation("org.mockito.kotlin:mockito-kotlin:5.3.1") | ||
// Kafka | ||
implementation("io.micronaut.kafka:micronaut-kafka") | ||
// Jwt | ||
implementation("io.micronaut.security:micronaut-security-jwt") | ||
implementation("io.micronaut:micronaut-retry") | ||
} |
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,4 @@ | ||
micronaut: | ||
http: | ||
client: | ||
read-timeout: 60s |
3 changes: 0 additions & 3 deletions
3
friendships-service/src/main/resources/application.properties
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
application: | ||
name: "Piperkt Friendships Service" | ||
version: "1.0.0" | ||
mongodb: | ||
package-names: | ||
- piperkt.services.friendships.infrastructure.persistence |
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 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
12 changes: 6 additions & 6 deletions
12
...ain/kotlin/piperkt/services/multimedia/interfaces/websockets/MultimediaProtocolMessage.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
package piperkt.services.multimedia.interfaces.websockets | ||
|
||
import kotlinx.serialization.Serializable | ||
import io.micronaut.serde.annotation.Serdeable | ||
|
||
sealed interface MultimediaProtocolMessage { | ||
|
||
@Serializable data class JoinMessage(val sessionId: String) : MultimediaProtocolMessage | ||
@Serdeable data class JoinMessage(val sessionId: String) : MultimediaProtocolMessage | ||
|
||
@Serializable | ||
@Serdeable | ||
data class OfferMessage(val from: String, val to: String, val offer: String) : | ||
MultimediaProtocolMessage | ||
|
||
@Serializable | ||
@Serdeable | ||
data class AnswerMessage(val from: String, val to: String, val answer: String) : | ||
MultimediaProtocolMessage | ||
|
||
@Serializable | ||
@Serdeable | ||
data class IceCandidateMessage(val from: String, val to: String, val candidate: String) : | ||
MultimediaProtocolMessage | ||
|
||
@Serializable | ||
@Serdeable | ||
data class UserJoined(val sessionId: String, val userId: String) : MultimediaProtocolMessage | ||
} |
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
1 change: 0 additions & 1 deletion
1
multimedia-service/src/main/resources/application-test.properties
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
micronaut: | ||
http: | ||
client: | ||
read-timeout: 60s |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
application: | ||
name: "Piperkt Users Service" | ||
version: "1.0.0" | ||
mongodb: | ||
package-names: | ||
- piperkt.services.multimedia.infrastructure.persistence |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.