migration on new package
This commit is contained in:
@@ -17,7 +17,7 @@ plugins {
|
||||
}
|
||||
|
||||
project.version = "$core_version"
|
||||
project.group = "com.insanusmokrassar"
|
||||
project.group = "$group_name"
|
||||
|
||||
apply from: "./publish.gradle"
|
||||
|
||||
|
@@ -27,11 +27,11 @@ publishing {
|
||||
pom {
|
||||
description = "Publishing subsystem with necessary functionality related to publish mechanism"
|
||||
name = "PostsSystem Core Publishing subsystem"
|
||||
url = "https://git.insanusmokrassar.com/PostsSystem/Core/"
|
||||
url = "https://git.inmo.dev/PostsSystem/Core/"
|
||||
|
||||
scm {
|
||||
developerConnection = "scm:git:[fetch=]https://git.insanusmokrassar.com/PostsSystem/Core/.git[push=]https://git.insanusmokrassar.com/PostsSystem/Core/.git"
|
||||
url = "https://git.insanusmokrassar.com/PostsSystem/Core/.git"
|
||||
developerConnection = "scm:git:[fetch=]https://git.inmo.dev/PostsSystem/Core/.git[push=]https://git.inmo.dev/PostsSystem/Core/.git"
|
||||
url = "https://git.inmo.dev/PostsSystem/Core/.git"
|
||||
}
|
||||
|
||||
developers {
|
||||
@@ -48,7 +48,7 @@ publishing {
|
||||
|
||||
license {
|
||||
name = "Apache Software License 2.0"
|
||||
url = "https://git.insanusmokrassar.com/PostsSystem/Core/src/master/LICENSE"
|
||||
url = "https://git.inmo.dev/PostsSystem/Core/src/master/LICENSE"
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -1,5 +0,0 @@
|
||||
package com.insanusmokrassar.postssystem.core.publishing
|
||||
|
||||
import com.insanusmokrassar.postssystem.core.post.PostId
|
||||
|
||||
typealias PostKeyGenerator = suspend (PostId, TriggerId) -> TriggerControlKey
|
@@ -0,0 +1,5 @@
|
||||
package dev.inmo.postssystem.core.publishing
|
||||
|
||||
import dev.inmo.postssystem.core.post.PostId
|
||||
|
||||
typealias PostKeyGenerator = suspend (PostId, TriggerId) -> TriggerControlKey
|
@@ -1,6 +1,6 @@
|
||||
package com.insanusmokrassar.postssystem.core.publishing
|
||||
package dev.inmo.postssystem.core.publishing
|
||||
|
||||
import com.insanusmokrassar.postssystem.core.post.PostId
|
||||
import dev.inmo.postssystem.core.post.PostId
|
||||
|
||||
typealias PublishingKeyReceiverGetter = suspend (TriggerId) -> PublishingKeyReceiver?
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package com.insanusmokrassar.postssystem.core.publishing
|
||||
package dev.inmo.postssystem.core.publishing
|
||||
|
||||
import com.insanusmokrassar.postssystem.core.post.PostId
|
||||
import com.insanusmokrassar.postssystem.core.publishing.repos.PublishingKeysRepo
|
||||
import dev.inmo.postssystem.core.post.PostId
|
||||
import dev.inmo.postssystem.core.publishing.repos.PublishingKeysRepo
|
||||
import kotlinx.coroutines.channels.BroadcastChannel
|
||||
import kotlinx.coroutines.channels.Channel
|
||||
import kotlinx.coroutines.flow.Flow
|
@@ -1,8 +1,8 @@
|
||||
package com.insanusmokrassar.postssystem.core.publishing
|
||||
package dev.inmo.postssystem.core.publishing
|
||||
|
||||
import com.insanusmokrassar.postssystem.core.post.repo.PostsRepo
|
||||
import com.insanusmokrassar.postssystem.core.publishing.repos.PublishedPostsWriteRepo
|
||||
import com.insanusmokrassar.postssystem.core.publishing.repos.PublishingKeysRepo
|
||||
import dev.inmo.postssystem.core.post.repo.PostsRepo
|
||||
import dev.inmo.postssystem.core.publishing.repos.PublishedPostsWriteRepo
|
||||
import dev.inmo.postssystem.core.publishing.repos.PublishingKeysRepo
|
||||
|
||||
class PublishingService(
|
||||
private val postsRepo: PostsRepo,
|
@@ -1,10 +1,10 @@
|
||||
package com.insanusmokrassar.postssystem.core.publishing
|
||||
package dev.inmo.postssystem.core.publishing
|
||||
|
||||
import com.insanusmokrassar.postssystem.core.post.PostId
|
||||
import com.insanusmokrassar.postssystem.core.post.RegisteredPost
|
||||
import com.insanusmokrassar.postssystem.core.post.repo.PostsRepo
|
||||
import com.insanusmokrassar.postssystem.core.publishing.repos.PublishedPostsWriteRepo
|
||||
import com.insanusmokrassar.postssystem.core.publishing.repos.PublishingKeysRepo
|
||||
import dev.inmo.postssystem.core.post.PostId
|
||||
import dev.inmo.postssystem.core.post.RegisteredPost
|
||||
import dev.inmo.postssystem.core.post.repo.PostsRepo
|
||||
import dev.inmo.postssystem.core.publishing.repos.PublishedPostsWriteRepo
|
||||
import dev.inmo.postssystem.core.publishing.repos.PublishingKeysRepo
|
||||
import kotlinx.coroutines.channels.BroadcastChannel
|
||||
import kotlinx.coroutines.channels.Channel
|
||||
import kotlinx.coroutines.flow.Flow
|
@@ -1,4 +1,4 @@
|
||||
package com.insanusmokrassar.postssystem.core.publishing
|
||||
package dev.inmo.postssystem.core.publishing
|
||||
|
||||
typealias TriggerId = String
|
||||
|
@@ -1,9 +1,9 @@
|
||||
package com.insanusmokrassar.postssystem.core.publishing.repos
|
||||
package dev.inmo.postssystem.core.publishing.repos
|
||||
|
||||
import com.insanusmokrassar.postssystem.core.post.PostId
|
||||
import com.insanusmokrassar.postssystem.core.post.RegisteredPost
|
||||
import com.insanusmokrassar.postssystem.core.post.repo.PostsRepo
|
||||
import com.insanusmokrassar.postssystem.core.post.repo.ReadPostsRepo
|
||||
import dev.inmo.postssystem.core.post.PostId
|
||||
import dev.inmo.postssystem.core.post.RegisteredPost
|
||||
import dev.inmo.postssystem.core.post.repo.PostsRepo
|
||||
import dev.inmo.postssystem.core.post.repo.ReadPostsRepo
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
|
||||
interface PublishedPostsReadRepo : ReadPostsRepo
|
@@ -1,7 +1,7 @@
|
||||
package com.insanusmokrassar.postssystem.core.publishing.repos
|
||||
package dev.inmo.postssystem.core.publishing.repos
|
||||
|
||||
import com.insanusmokrassar.postssystem.core.post.PostId
|
||||
import com.insanusmokrassar.postssystem.core.publishing.TriggerControlKey
|
||||
import dev.inmo.postssystem.core.post.PostId
|
||||
import dev.inmo.postssystem.core.publishing.TriggerControlKey
|
||||
|
||||
interface ReadPublishingKeysRepo {
|
||||
suspend fun getPostIdByTriggerControlKey(
|
@@ -16,7 +16,7 @@ plugins {
|
||||
}
|
||||
|
||||
project.version = "$core_version"
|
||||
project.group = "com.insanusmokrassar"
|
||||
project.group = "$group_name"
|
||||
|
||||
apply plugin: "java-library"
|
||||
apply plugin: "kotlin"
|
||||
|
@@ -27,11 +27,11 @@ publishing {
|
||||
pom {
|
||||
description = "Exposed realisation for PostsSystem Core Publishing subsystem"
|
||||
name = "PostsSystem Core Publishing Exposed realization"
|
||||
url = "https://git.insanusmokrassar.com/PostsSystem/Core/"
|
||||
url = "https://git.inmo.dev/PostsSystem/Core/"
|
||||
|
||||
scm {
|
||||
developerConnection = "scm:git:[fetch=]https://git.insanusmokrassar.com/PostsSystem/Core/.git[push=]https://git.insanusmokrassar.com/PostsSystem/Core/.git"
|
||||
url = "https://git.insanusmokrassar.com/PostsSystem/Core/.git"
|
||||
developerConnection = "scm:git:[fetch=]https://git.inmo.dev/PostsSystem/Core/.git[push=]https://git.inmo.dev/PostsSystem/Core/.git"
|
||||
url = "https://git.inmo.dev/PostsSystem/Core/.git"
|
||||
}
|
||||
|
||||
developers {
|
||||
@@ -48,7 +48,7 @@ publishing {
|
||||
|
||||
license {
|
||||
name = "Apache Software License 2.0"
|
||||
url = "https://git.insanusmokrassar.com/PostsSystem/Core/src/master/LICENSE"
|
||||
url = "https://git.inmo.dev/PostsSystem/Core/src/master/LICENSE"
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -1,8 +1,8 @@
|
||||
package com.insanusmokrassar.postssystem.core.publishing.exposed
|
||||
package dev.inmo.postssystem.core.publishing.exposed
|
||||
|
||||
import com.insanusmokrassar.postssystem.core.post.PostId
|
||||
import com.insanusmokrassar.postssystem.core.publishing.TriggerControlKey
|
||||
import com.insanusmokrassar.postssystem.core.publishing.repos.PublishingKeysRepo
|
||||
import dev.inmo.postssystem.core.post.PostId
|
||||
import dev.inmo.postssystem.core.publishing.TriggerControlKey
|
||||
import dev.inmo.postssystem.core.publishing.repos.PublishingKeysRepo
|
||||
import org.jetbrains.exposed.sql.*
|
||||
import org.jetbrains.exposed.sql.transactions.transaction
|
||||
|
@@ -17,9 +17,7 @@ plugins {
|
||||
}
|
||||
|
||||
project.version = "$core_version"
|
||||
project.group = "com.insanusmokrassar"
|
||||
|
||||
apply from: "publish.gradle"
|
||||
project.group = "$group_name"
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package com.insanusmokrassar.postssystem.publishing.ktor.client
|
||||
package dev.inmo.postssystem.publishing.ktor.client
|
||||
|
||||
import com.insanusmokrassar.postssystem.core.publishing.repos.*
|
||||
import com.insanusmokrassar.postssystem.publishing.ktor.publishingKeysRootRoute
|
||||
import dev.inmo.postssystem.core.publishing.repos.*
|
||||
import dev.inmo.postssystem.publishing.ktor.publishingKeysRootRoute
|
||||
import io.ktor.client.HttpClient
|
||||
import io.ktor.client.features.websocket.WebSockets
|
||||
|
||||
|
@@ -1,10 +1,10 @@
|
||||
package com.insanusmokrassar.postssystem.publishing.ktor.client
|
||||
package dev.inmo.postssystem.publishing.ktor.client
|
||||
|
||||
import com.insanusmokrassar.postssystem.core.post.PostId
|
||||
import com.insanusmokrassar.postssystem.core.publishing.TriggerControlKey
|
||||
import com.insanusmokrassar.postssystem.core.publishing.repos.ReadPublishingKeysRepo
|
||||
import com.insanusmokrassar.postssystem.publishing.ktor.getPostIdByTriggerControlKeyRoute
|
||||
import com.insanusmokrassar.postssystem.publishing.ktor.getTriggerControlKeyByPostIdRoute
|
||||
import dev.inmo.postssystem.core.post.PostId
|
||||
import dev.inmo.postssystem.core.publishing.TriggerControlKey
|
||||
import dev.inmo.postssystem.core.publishing.repos.ReadPublishingKeysRepo
|
||||
import dev.inmo.postssystem.publishing.ktor.getPostIdByTriggerControlKeyRoute
|
||||
import dev.inmo.postssystem.publishing.ktor.getTriggerControlKeyByPostIdRoute
|
||||
import dev.inmo.micro_utils.ktor.client.uniget
|
||||
import dev.inmo.micro_utils.ktor.common.buildStandardUrl
|
||||
import io.ktor.client.HttpClient
|
||||
|
@@ -1,9 +1,9 @@
|
||||
package com.insanusmokrassar.postssystem.publishing.ktor.client
|
||||
package dev.inmo.postssystem.publishing.ktor.client
|
||||
|
||||
import com.insanusmokrassar.postssystem.core.post.PostId
|
||||
import com.insanusmokrassar.postssystem.core.publishing.TriggerControlKey
|
||||
import com.insanusmokrassar.postssystem.core.publishing.repos.WritePublishingKeysRepo
|
||||
import com.insanusmokrassar.postssystem.publishing.ktor.*
|
||||
import dev.inmo.postssystem.core.post.PostId
|
||||
import dev.inmo.postssystem.core.publishing.TriggerControlKey
|
||||
import dev.inmo.postssystem.core.publishing.repos.WritePublishingKeysRepo
|
||||
import dev.inmo.postssystem.publishing.ktor.*
|
||||
import dev.inmo.micro_utils.ktor.client.BodyPair
|
||||
import dev.inmo.micro_utils.ktor.client.unipost
|
||||
import dev.inmo.micro_utils.ktor.common.buildStandardUrl
|
||||
|
@@ -17,7 +17,7 @@ plugins {
|
||||
}
|
||||
|
||||
project.version = "$core_version"
|
||||
project.group = "com.insanusmokrassar"
|
||||
project.group = "$group_name"
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
|
@@ -1,4 +1,4 @@
|
||||
package com.insanusmokrassar.postssystem.publishing.ktor
|
||||
package dev.inmo.postssystem.publishing.ktor
|
||||
|
||||
const val publishingKeysRootRoute = "publishingKeys"
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
package com.insanusmokrassar.postssystem.publishing.ktor
|
||||
package dev.inmo.postssystem.publishing.ktor
|
||||
|
||||
//const val getPostIdByTriggerControlKeyRoute = "getPostIdByTriggerControlKey"
|
||||
const val registerTriggerForPostRoute = "registerTriggerForPost"
|
||||
|
@@ -1,3 +1,3 @@
|
||||
package com.insanusmokrassar.postssystem.publishing.ktor
|
||||
package dev.inmo.postssystem.publishing.ktor
|
||||
|
||||
const val triggerPostingRoute = "triggerPosting"
|
@@ -1,7 +1,7 @@
|
||||
package com.insanusmokrassar.postssystem.publishing.ktor
|
||||
package dev.inmo.postssystem.publishing.ktor
|
||||
|
||||
import com.insanusmokrassar.postssystem.core.post.PostId
|
||||
import com.insanusmokrassar.postssystem.core.publishing.TriggerControlKey
|
||||
import dev.inmo.postssystem.core.post.PostId
|
||||
import dev.inmo.postssystem.core.publishing.TriggerControlKey
|
||||
import kotlinx.serialization.builtins.SetSerializer
|
||||
import kotlinx.serialization.builtins.serializer
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package com.insanusmokrassar.postssystem.publishing.ktor
|
||||
package dev.inmo.postssystem.publishing.ktor
|
||||
|
||||
import com.insanusmokrassar.postssystem.core.post.PostId
|
||||
import com.insanusmokrassar.postssystem.core.publishing.TriggerControlKey
|
||||
import dev.inmo.postssystem.core.post.PostId
|
||||
import dev.inmo.postssystem.core.publishing.TriggerControlKey
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
|
@@ -16,7 +16,7 @@ plugins {
|
||||
}
|
||||
|
||||
project.version = "$core_version"
|
||||
project.group = "com.insanusmokrassar"
|
||||
project.group = "$group_name"
|
||||
|
||||
apply plugin: "java-library"
|
||||
apply plugin: "kotlin"
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package com.insanusmokrassar.postssystem.publishing.ktor.server
|
||||
package dev.inmo.postssystem.publishing.ktor.server
|
||||
|
||||
import com.insanusmokrassar.postssystem.core.publishing.repos.PublishingKeysRepo
|
||||
import com.insanusmokrassar.postssystem.publishing.ktor.publishingKeysRootRoute
|
||||
import dev.inmo.postssystem.core.publishing.repos.PublishingKeysRepo
|
||||
import dev.inmo.postssystem.publishing.ktor.publishingKeysRootRoute
|
||||
import dev.inmo.micro_utils.ktor.server.configurators.ApplicationRoutingConfigurator
|
||||
import io.ktor.routing.Route
|
||||
import io.ktor.routing.route
|
||||
|
@@ -1,10 +1,10 @@
|
||||
package com.insanusmokrassar.postssystem.publishing.ktor.server
|
||||
package dev.inmo.postssystem.publishing.ktor.server
|
||||
|
||||
import com.insanusmokrassar.postssystem.core.post.PostId
|
||||
import com.insanusmokrassar.postssystem.core.publishing.TriggerControlKey
|
||||
import com.insanusmokrassar.postssystem.core.publishing.repos.ReadPublishingKeysRepo
|
||||
import com.insanusmokrassar.postssystem.publishing.ktor.getPostIdByTriggerControlKeyRoute
|
||||
import com.insanusmokrassar.postssystem.publishing.ktor.getTriggerControlKeyByPostIdRoute
|
||||
import dev.inmo.postssystem.core.post.PostId
|
||||
import dev.inmo.postssystem.core.publishing.TriggerControlKey
|
||||
import dev.inmo.postssystem.core.publishing.repos.ReadPublishingKeysRepo
|
||||
import dev.inmo.postssystem.publishing.ktor.getPostIdByTriggerControlKeyRoute
|
||||
import dev.inmo.postssystem.publishing.ktor.getTriggerControlKeyByPostIdRoute
|
||||
import dev.inmo.micro_utils.ktor.server.configurators.ApplicationRoutingConfigurator
|
||||
import dev.inmo.micro_utils.ktor.server.getParameterOrSendError
|
||||
import dev.inmo.micro_utils.ktor.server.unianswer
|
||||
|
@@ -1,8 +1,8 @@
|
||||
package com.insanusmokrassar.postssystem.publishing.ktor.server
|
||||
package dev.inmo.postssystem.publishing.ktor.server
|
||||
|
||||
import com.insanusmokrassar.postssystem.core.post.PostId
|
||||
import com.insanusmokrassar.postssystem.core.publishing.repos.WritePublishingKeysRepo
|
||||
import com.insanusmokrassar.postssystem.publishing.ktor.*
|
||||
import dev.inmo.postssystem.core.post.PostId
|
||||
import dev.inmo.postssystem.core.publishing.repos.WritePublishingKeysRepo
|
||||
import dev.inmo.postssystem.publishing.ktor.*
|
||||
import dev.inmo.micro_utils.ktor.server.unianswer
|
||||
import dev.inmo.micro_utils.ktor.server.uniload
|
||||
import io.ktor.application.call
|
||||
|
Reference in New Issue
Block a user