add post creating business case

This commit is contained in:
2020-09-10 00:04:25 +06:00
parent cf1aa3ae0f
commit 60725d9fa3
31 changed files with 332 additions and 37 deletions

View File

@@ -44,7 +44,7 @@ kotlin {
if ((project.hasProperty('RELEASE_MODE') && project.property('RELEASE_MODE') == "true") || System.getenv('RELEASE_MODE') == "true") {
api "com.insanusmokrassar:postssystem.core.api:$core_version"
} else {
api projectByName("postssystem.core.api")
api projectByName("core.api")
}
}
}

View File

@@ -0,0 +1,5 @@
package com.insanusmokrassar.postssystem.core.publishing
import com.insanusmokrassar.postssystem.core.post.PostId
typealias PostKeyGenerator = suspend (PostId, TriggerId) -> TriggerControlKey

View File

@@ -37,8 +37,8 @@ dependencies {
api "com.insanusmokrassar:postssystem.core.publishing:$core_version"
api "com.insanusmokrassar:postssystem.exposed.commons:$core_version"
} else {
api projectByName("postssystem.publishing.api")
api projectByName("postssystem.exposed.commons")
api projectByName("publishing.api")
api projectByName("exposed.commons")
}
testImplementation "org.xerial:sqlite-jdbc:$test_sqlite_version"

View File

@@ -45,8 +45,8 @@ kotlin {
api "com.insanusmokrassar:postssystem.core.ktor.common:$core_version"
api "com.insanusmokrassar:postssystem.ktor.client:$core_version"
} else {
api projectByName("postssystem.publishing.ktor.common")
api projectByName("postssystem.ktor.client")
api projectByName("publishing.ktor.common")
api projectByName("ktor.client")
}
}
}

View File

@@ -43,8 +43,8 @@ kotlin {
api "com.insanusmokrassar:postssystem.ktor.common:$core_version"
api "com.insanusmokrassar:postssystem.publishing.api:$core_version"
} else {
api projectByName("postssystem.ktor.common")
api projectByName("postssystem.publishing.api")
api projectByName("ktor.common")
api projectByName("publishing.api")
}
}
}

View File

@@ -32,8 +32,8 @@ repositories {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
api projectByName("postssystem.publishing.ktor.common")
api projectByName("postssystem.ktor.server")
api projectByName("publishing.ktor.common")
api projectByName("ktor.server")
testImplementation "org.xerial:sqlite-jdbc:$test_sqlite_version"
testImplementation "org.jetbrains.kotlin:kotlin-test"