diff --git a/services/posts/client/build.gradle b/services/posts/client/build.gradle
new file mode 100644
index 00000000..d242956a
--- /dev/null
+++ b/services/posts/client/build.gradle
@@ -0,0 +1,19 @@
+plugins {
+ id "org.jetbrains.kotlin.multiplatform"
+ id "org.jetbrains.kotlin.plugin.serialization"
+ id "com.android.library"
+}
+
+apply from: "$mppProjectWithSerializationPresetPath"
+
+kotlin {
+ sourceSets {
+ commonMain {
+ dependencies {
+ api project(":postssystem.services.posts.common")
+ api project(":postssystem.features.common.client")
+ api project(":postssystem.features.posts.client")
+ }
+ }
+ }
+}
diff --git a/services/posts/client/src/main/AndroidManifest.xml b/services/posts/client/src/main/AndroidManifest.xml
new file mode 100644
index 00000000..a8a28afc
--- /dev/null
+++ b/services/posts/client/src/main/AndroidManifest.xml
@@ -0,0 +1 @@
+
diff --git a/services/posts/common/build.gradle b/services/posts/common/build.gradle
new file mode 100644
index 00000000..71c2c7e9
--- /dev/null
+++ b/services/posts/common/build.gradle
@@ -0,0 +1,18 @@
+plugins {
+ id "org.jetbrains.kotlin.multiplatform"
+ id "org.jetbrains.kotlin.plugin.serialization"
+ id "com.android.library"
+}
+
+apply from: "$mppProjectWithSerializationPresetPath"
+
+kotlin {
+ sourceSets {
+ commonMain {
+ dependencies {
+ api project(":postssystem.features.common.common")
+ api project(":postssystem.features.posts.common")
+ }
+ }
+ }
+}
diff --git a/services/posts/common/src/commonMain/kotlin/dev/inmo/postssystem/services/posts/common/Constants.kt b/services/posts/common/src/commonMain/kotlin/dev/inmo/postssystem/services/posts/common/Constants.kt
new file mode 100644
index 00000000..4483418a
--- /dev/null
+++ b/services/posts/common/src/commonMain/kotlin/dev/inmo/postssystem/services/posts/common/Constants.kt
@@ -0,0 +1,3 @@
+package dev.inmo.postssystem.services.posts.common
+
+const val postsRootPath = "posts"
diff --git a/services/posts/common/src/main/AndroidManifest.xml b/services/posts/common/src/main/AndroidManifest.xml
new file mode 100644
index 00000000..81f002d1
--- /dev/null
+++ b/services/posts/common/src/main/AndroidManifest.xml
@@ -0,0 +1 @@
+
diff --git a/services/posts/server/build.gradle b/services/posts/server/build.gradle
new file mode 100644
index 00000000..5b0bc9a0
--- /dev/null
+++ b/services/posts/server/build.gradle
@@ -0,0 +1,20 @@
+plugins {
+ id "org.jetbrains.kotlin.multiplatform"
+ id "org.jetbrains.kotlin.plugin.serialization"
+}
+
+apply from: "$mppJavaProjectPresetPath"
+
+kotlin {
+ sourceSets {
+ commonMain {
+ dependencies {
+ api project(":postssystem.services.posts.common")
+ api project(":postssystem.features.common.server")
+ api project(":postssystem.features.content.server")
+ api project(":postssystem.features.posts.server")
+ api project(":postssystem.features.users.server")
+ }
+ }
+ }
+}
diff --git a/services/template/client/build.gradle b/services/template/client/build.gradle
index e4a6a26a..578e8f8a 100644
--- a/services/template/client/build.gradle
+++ b/services/template/client/build.gradle
@@ -11,7 +11,7 @@ kotlin {
commonMain {
dependencies {
api project(":postssystem.services.template.common")
- api project(":postssystem.services.common.client")
+ api project(":postssystem.features.common.client")
}
}
}
diff --git a/services/template/common/build.gradle b/services/template/common/build.gradle
index d31732ab..d4a562e5 100644
--- a/services/template/common/build.gradle
+++ b/services/template/common/build.gradle
@@ -10,7 +10,7 @@ kotlin {
sourceSets {
commonMain {
dependencies {
- api project(":postssystem.services.common.common")
+ api project(":postssystem.features.common.common")
}
}
}
diff --git a/services/template/server/build.gradle b/services/template/server/build.gradle
index cd649089..0a4328b3 100644
--- a/services/template/server/build.gradle
+++ b/services/template/server/build.gradle
@@ -10,7 +10,7 @@ kotlin {
commonMain {
dependencies {
api project(":postssystem.services.template.common")
- api project(":postssystem.services.common.server")
+ api project(":postssystem.features.common.server")
}
}
}
diff --git a/settings.gradle b/settings.gradle
index 24cd3219..305d5817 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -45,6 +45,10 @@ String[] includes = [
":features:posts:client",
":features:posts:server",
+ ":services:posts:common",
+ ":services:posts:client",
+ ":services:posts:server",
+
":features:publication:common",
":features:publication:client",
":features:publication:server",