update scripts

This commit is contained in:
InsanusMokrassar 2020-11-25 18:40:45 +06:00
parent 83e0513dba
commit f7d60fa672
53 changed files with 482 additions and 648 deletions

5
.gitignore vendored
View File

@ -8,3 +8,8 @@ settings.xml
.gradle/ .gradle/
build/ build/
out/ out/
secret.gradle
local.properties
publishing.sh

View File

@ -1,27 +1,31 @@
buildscript { buildscript {
repositories {
jcenter()
google()
mavenCentral()
mavenLocal()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
classpath "com.getkeepsafe.dexcount:dexcount-gradle-plugin:$dexcount_version"
classpath "com.github.breadmoirai:github-release:$github_release_plugin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
}
}
allprojects {
repositories { repositories {
mavenLocal() mavenLocal()
jcenter() jcenter()
mavenCentral() mavenCentral()
google()
maven { url "https://kotlin.bintray.com/kotlinx" }
} }
} }
repositories { apply from: "./extensions.gradle"
mavenLocal() apply from: "./github_release.gradle"
jcenter()
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" }
}
allprojects {
ext {
projectByName = { name ->
for (subproject in rootProject.subprojects) {
if (subproject.name == name) {
return subproject
}
}
return null
}
}
}

View File

@ -1,74 +1,20 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
plugins { plugins {
id "org.jetbrains.kotlin.multiplatform" version "$kotlin_version" id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version" id "org.jetbrains.kotlin.plugin.serialization"
id "com.android.library"
} }
project.version = "$core_version" apply from: "$mppProjectWithSerializationPresetPath"
project.group = "$group_name"
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" }
}
kotlin { kotlin {
jvm()
js (BOTH) {
browser()
nodejs()
}
sourceSets { sourceSets {
commonMain { commonMain {
dependencies { dependencies {
implementation kotlin('stdlib') implementation kotlin('stdlib')
api project(":postssystem.business_cases.post_creating.common") api project(":postssystem.business_cases.post_creating.common")
api project(":postssystem.core.ktor.client") api project(":postssystem.core.ktor.client")
} }
} }
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
}
}
jvmTest {
dependencies {
implementation kotlin('test-junit')
}
}
jsMain {
dependencies {
implementation kotlin('stdlib-js')
}
}
jsTest {
dependencies {
implementation kotlin('test-js')
implementation kotlin('test-junit')
}
}
} }
} }

View File

@ -0,0 +1 @@
<manifest package="dev.inmo.postssystem.business_cases.post_creating.client"/>

View File

@ -1,38 +1,12 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
plugins { plugins {
id "org.jetbrains.kotlin.multiplatform" version "$kotlin_version" id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version" id "org.jetbrains.kotlin.plugin.serialization"
id "com.android.library"
} }
project.version = "$core_version" apply from: "$mppProjectWithSerializationPresetPath"
project.group = "$group_name"
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" }
}
kotlin { kotlin {
jvm()
js (BOTH) {
browser()
nodejs()
}
sourceSets { sourceSets {
commonMain { commonMain {
dependencies { dependencies {
@ -42,32 +16,5 @@ kotlin {
api project(":postssystem.publishing.ktor.common") api project(":postssystem.publishing.ktor.common")
} }
} }
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
}
}
jvmTest {
dependencies {
implementation kotlin('test-junit')
}
}
jsMain {
dependencies {
implementation kotlin('stdlib-js')
}
}
jsTest {
dependencies {
implementation kotlin('test-js')
implementation kotlin('test-junit')
}
}
} }
} }

View File

@ -0,0 +1 @@
<manifest package="dev.inmo.postssystem.business_cases.post_creating.common"/>

View File

@ -1,40 +1,24 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
plugins { plugins {
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version" id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization"
} }
project.version = "$core_version" apply from: "$mppJavaProjectPresetPath"
project.group = "$group_name"
apply plugin: "java-library" kotlin {
apply plugin: "kotlin" sourceSets {
commonMain {
repositories { dependencies {
mavenLocal() api project(":postssystem.business_cases.post_creating.common")
jcenter() api project(":postssystem.core.ktor.server")
mavenCentral() }
maven { url "https://kotlin.bintray.com/kotlinx" } }
} jvmTest {
dependencies {
dependencies { implementation "org.xerial:sqlite-jdbc:$test_sqlite_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-test"
implementation "org.jetbrains.kotlin:kotlin-test-junit"
api project(":postssystem.business_cases.post_creating.common") }
api project(":postssystem.core.ktor.server") }
}
testImplementation "org.xerial:sqlite-jdbc:$test_sqlite_version"
testImplementation "org.jetbrains.kotlin:kotlin-test"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit"
} }

24
changelog_parser.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash
function parse() {
version="$1"
while IFS= read -r line && [ -z "`echo "$line" | grep -e "^#\+ $version"`" ]
do
: # do nothing
done
while IFS= read -r line && [ -z "`echo "$line" | grep -e "^#\+"`" ]
do
echo "$line"
done
}
version="$1"
file="$2"
if [ -n "$file" ]; then
parse "$version" < "$file"
else
parse "$version"
fi

View File

@ -1,44 +1,15 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
plugins { plugins {
id "org.jetbrains.kotlin.multiplatform" version "$kotlin_version" id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version" id "org.jetbrains.kotlin.plugin.serialization"
id "com.android.library"
} }
project.version = "$core_version" apply from: "$mppProjectWithSerializationPresetPath"
project.group = "$group_name"
apply from: "publish.gradle"
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" }
}
kotlin { kotlin {
jvm()
js (BOTH) {
browser()
nodejs()
}
sourceSets { sourceSets {
commonMain { commonMain {
dependencies { dependencies {
implementation kotlin('stdlib')
api kotlin('reflect') api kotlin('reflect')
api "com.soywiz.korlibs.klock:klock:$klockVersion" api "com.soywiz.korlibs.klock:klock:$klockVersion"
@ -47,22 +18,5 @@ kotlin {
api "dev.inmo:micro_utils.mime_types:$microutils_version" api "dev.inmo:micro_utils.mime_types:$microutils_version"
} }
} }
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmTest {
dependencies {
implementation kotlin('test-junit')
}
}
jsTest {
dependencies {
implementation kotlin('test-js')
implementation kotlin('test-junit')
}
}
} }
} }

View File

@ -0,0 +1 @@
<manifest package="dev.inmo.postssystem.core.api"/>

View File

@ -1,43 +1,26 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
plugins { plugins {
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version" id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization"
} }
project.version = "$core_version" apply from: "$mppJavaProjectPresetPath"
project.group = "$group_name"
apply plugin: "java-library" kotlin {
apply plugin: "kotlin" sourceSets {
apply from: "./publish.gradle" commonMain {
dependencies {
api "dev.inmo:micro_utils.repos.exposed:$microutils_version"
repositories { api project(":postssystem.core.api")
mavenLocal() }
jcenter() }
mavenCentral() jvmTest {
maven { url "https://kotlin.bintray.com/kotlinx" } dependencies {
} implementation "org.jetbrains.exposed:exposed-jdbc:$exposed_version"
implementation "org.xerial:sqlite-jdbc:$test_sqlite_version"
dependencies { implementation "org.jetbrains.kotlin:kotlin-test"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-test-junit"
}
api "dev.inmo:micro_utils.repos.exposed:$microutils_version" }
}
api project(":postssystem.core.api")
testImplementation "org.jetbrains.exposed:exposed-jdbc:$exposed_version"
testImplementation "org.xerial:sqlite-jdbc:$test_sqlite_version"
testImplementation "org.jetbrains.kotlin:kotlin-test"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit"
} }

View File

@ -1,40 +1,12 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
plugins { plugins {
id "org.jetbrains.kotlin.multiplatform" version "$kotlin_version" id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version" id "org.jetbrains.kotlin.plugin.serialization"
id "com.android.library"
} }
project.version = "$core_version" apply from: "$mppProjectWithSerializationPresetPath"
project.group = "$group_name"
apply from: "publish.gradle"
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" }
}
kotlin { kotlin {
jvm()
js (BOTH) {
browser()
nodejs()
}
sourceSets { sourceSets {
commonMain { commonMain {
dependencies { dependencies {
@ -46,32 +18,5 @@ kotlin {
api project(":postssystem.core.ktor.common") api project(":postssystem.core.ktor.common")
} }
} }
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
}
}
jvmTest {
dependencies {
implementation kotlin('test-junit')
}
}
jsMain {
dependencies {
implementation kotlin('stdlib-js')
}
}
jsTest {
dependencies {
implementation kotlin('test-js')
implementation kotlin('test-junit')
}
}
} }
} }

View File

@ -0,0 +1 @@
<manifest package="dev.inmo.postssystem.core.ktor.client"/>

View File

@ -1,40 +1,12 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
plugins { plugins {
id "org.jetbrains.kotlin.multiplatform" version "$kotlin_version" id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version" id "org.jetbrains.kotlin.plugin.serialization"
id "com.android.library"
} }
project.version = "$core_version" apply from: "$mppProjectWithSerializationPresetPath"
project.group = "$group_name"
apply from: "publish.gradle"
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" }
}
kotlin { kotlin {
jvm()
js (BOTH) {
browser()
nodejs()
}
sourceSets { sourceSets {
commonMain { commonMain {
dependencies { dependencies {
@ -45,32 +17,5 @@ kotlin {
api project(":postssystem.core.api") api project(":postssystem.core.api")
} }
} }
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
}
}
jvmTest {
dependencies {
implementation kotlin('test-junit')
}
}
jsMain {
dependencies {
implementation kotlin('stdlib-js')
}
}
jsTest {
dependencies {
implementation kotlin('test-js')
implementation kotlin('test-junit')
}
}
} }
} }

View File

@ -0,0 +1 @@
<manifest package="dev.inmo.postssystem.core.ktor.common"/>

View File

@ -1,42 +1,26 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
plugins { plugins {
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version" id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization"
} }
project.version = "$core_version" apply from: "$mppJavaProjectPresetPath"
project.group = "$group_name"
apply plugin: "java-library" kotlin {
apply plugin: "kotlin" sourceSets {
commonMain {
dependencies {
api "dev.inmo:micro_utils.pagination.ktor.server:$microutils_version"
api "dev.inmo:micro_utils.ktor.server:$microutils_version"
repositories { api project(":postssystem.core.ktor.common")
mavenLocal() }
jcenter() }
mavenCentral() jvmTest {
maven { url "https://kotlin.bintray.com/kotlinx" } dependencies {
} implementation "org.xerial:sqlite-jdbc:$test_sqlite_version"
implementation "org.jetbrains.kotlin:kotlin-test"
dependencies { implementation "org.jetbrains.kotlin:kotlin-test-junit"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" }
}
api "dev.inmo:micro_utils.pagination.ktor.server:$microutils_version" }
api "dev.inmo:micro_utils.ktor.server:$microutils_version"
api project(":postssystem.core.ktor.common")
testImplementation "org.xerial:sqlite-jdbc:$test_sqlite_version"
testImplementation "org.jetbrains.kotlin:kotlin-test"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit"
} }

38
defaultAndroidSettings Normal file
View File

@ -0,0 +1,38 @@
android {
compileSdkVersion "$android_compileSdkVersion".toInteger()
buildToolsVersion "$android_buildToolsVersion"
defaultConfig {
minSdkVersion "$android_minSdkVersion".toInteger()
targetSdkVersion "$android_compileSdkVersion".toInteger()
versionCode "${android_code_version}".toInteger()
versionName "$version"
}
buildTypes {
release {
minifyEnabled false
}
debug {
debuggable true
}
}
packagingOptions {
exclude 'META-INF/kotlinx-serialization-runtime.kotlin_module'
exclude 'META-INF/kotlinx-serialization-cbor.kotlin_module'
exclude 'META-INF/kotlinx-serialization-properties.kotlin_module'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
}

11
extensions.gradle Normal file
View File

@ -0,0 +1,11 @@
allprojects {
ext {
mppProjectWithSerializationPresetPath = "${rootProject.projectDir.absolutePath}/mppProjectWithSerialization"
mppJavaProjectPresetPath = "${rootProject.projectDir.absolutePath}/mppJavaProject"
mppAndroidProjectPresetPath = "${rootProject.projectDir.absolutePath}/mppAndroidProject"
defaultAndroidSettingsPresetPath = "${rootProject.projectDir.absolutePath}/defaultAndroidSettings"
publishGradlePath = "${rootProject.projectDir.absolutePath}/publish.gradle"
}
}

30
github_release.gradle Normal file
View File

@ -0,0 +1,30 @@
private String getCurrentVersionChangelog() {
OutputStream changelogDataOS = new ByteArrayOutputStream()
exec {
commandLine 'chmod', "+x", './changelog_parser.sh'
}
exec {
standardOutput = changelogDataOS
commandLine './changelog_parser.sh', "${project.version}", 'CHANGELOG.md'
}
return changelogDataOS.toString().trim()
}
if (new File(projectDir, "secret.gradle").exists()) {
apply from: './secret.gradle'
apply plugin: "com.github.breadmoirai.github-release"
githubRelease {
token "${project.property('GITHUB_RELEASE_TOKEN')}"
owner "PostsSystem"
repo "Core"
tagName "${project.version}"
releaseName "${project.version}"
targetCommitish "${project.version}"
body getCurrentVersionChangelog()
}
}

View File

@ -1,11 +1,18 @@
kotlin.code.style=official kotlin.code.style=official
org.gradle.parallel=true org.gradle.parallel=true
kotlin.js.generate.externals=true
kotlin.incremental=true
kotlin.incremental.js=true
android.useAndroidX=true
android.enableJetifier=true
org.gradle.jvmargs=-Xmx2048m
kotlin_version=1.4.20 kotlin_version=1.4.20
kotlin_coroutines_version=1.4.1 kotlin_coroutines_version=1.4.1
kotlin_serialisation_core_version=1.0.1 kotlin_serialisation_core_version=1.0.1
kotlin_exposed_version=0.28.1
ktor_version=1.4.2 ktor_version=1.4.2
klockVersion=2.0.0 klockVersion=2.0.0
uuidVersion=0.2.3 uuidVersion=0.2.3
@ -16,5 +23,28 @@ microutils_version=0.4.5
javax_activation_version=1.1.1 javax_activation_version=1.1.1
github_release_plugin_version=2.2.12
# ANDROID
core_ktx_version=1.3.2
androidx_recycler_version=1.1.0
appcompat_version=1.2.0
android_minSdkVersion=19
android_compileSdkVersion=30
android_buildToolsVersion=30.0.2
dexcount_version=2.0.0-RC1
junit_version=4.12
test_ext_junit_version=1.1.2
espresso_core=3.3.0
# Dokka
dokka_version=1.4.0
# Project data
core_version=0.6.0 core_version=0.6.0
android_code_version=1
group_name=dev.inmo group_name=dev.inmo

26
mppAndroidProject Normal file
View File

@ -0,0 +1,26 @@
project.version = "$version"
project.group = "$group"
apply from: "$publishGradlePath"
kotlin {
android {
publishAllLibraryVariants()
}
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib')
}
}
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
}
}
apply from: "$defaultAndroidSettingsPresetPath"

28
mppJavaProject Normal file
View File

@ -0,0 +1,28 @@
project.version = "$version"
project.group = "$group"
apply from: "$publishGradlePath"
kotlin {
jvm()
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib')
}
}
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmTest {
dependencies {
implementation kotlin('test-junit')
}
}
}
}

View File

@ -0,0 +1,50 @@
project.version = "$version"
project.group = "$group"
apply from: "$publishGradlePath"
kotlin {
jvm()
js (BOTH) {
browser()
nodejs()
}
android {
publishAllLibraryVariants()
}
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib')
api "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlin_serialisation_core_version"
}
}
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmTest {
dependencies {
implementation kotlin('test-junit')
}
}
jsTest {
dependencies {
implementation kotlin('test-js')
implementation kotlin('test-junit')
}
}
androidTest {
dependencies {
implementation kotlin('test-junit')
implementation "androidx.test.ext:junit:$test_ext_junit_version"
implementation "androidx.test.espresso:espresso-core:$espresso_core"
}
}
}
}
apply from: "$defaultAndroidSettingsPresetPath"

1
pubconf.kpsb Normal file
View File

@ -0,0 +1 @@
{"bintrayConfig":{"repo":"releaseMode","packageName":"${project.name}","packageVcs":"https://git.inmo.dev:8322/PostsSystem/Core","autoPublish":true,"overridePublish":true},"licenses":[{"id":"Apache-2.0","title":"Apache Software License 2.0","url":"https://git.inmo.dev/InsanusMokrassar/MicroUtils_mirror/src/master/LICENSE"}],"mavenConfig":{"name":"${project.name}","description":"","url":"https://git.inmo.dev:8322/PostsSystem/Core","vcsUrl":"ssh://git@git.inmo.dev:8322/PostsSystem/Core.git","developers":[{"id":"InsanusMokrassar","name":"Aleksei Ovsiannikov","eMail":"ovsyannikov.alexey95@gmail.com"},{"id":"000Sanya","name":"Syrov Aleksandr","eMail":"000sanya.000sanya@gmail.com"}]}}

76
publish.gradle Normal file
View File

@ -0,0 +1,76 @@
apply plugin: 'maven-publish'
task javadocsJar(type: Jar) {
classifier = 'javadoc'
}
task sourceJar (type : Jar) {
classifier = 'sources'
}
afterEvaluate {
project.publishing.publications.all {
// rename artifacts
groupId "${project.group}"
if (it.name.contains('kotlinMultiplatform')) {
artifactId = "${project.name}"
artifact sourceJar
} else {
artifactId = "${project.name}-$name"
}
}
}
publishing {
publications.all {
artifact javadocsJar
pom {
description = ""
name = "${project.name}"
url = "https://git.inmo.dev:8322/PostsSystem/Core"
scm {
developerConnection = "scm:git:[fetch=]ssh://git@git.inmo.dev:8322/PostsSystem/Core.git[push=]ssh://git@git.inmo.dev:8322/PostsSystem/Core.git"
url = "ssh://git@git.inmo.dev:8322/PostsSystem/Core.git"
}
developers {
developer {
id = "InsanusMokrassar"
name = "Aleksei Ovsiannikov"
email = "ovsyannikov.alexey95@gmail.com"
}
developer {
id = "000Sanya"
name = "Syrov Aleksandr"
email = "000sanya.000sanya@gmail.com"
}
}
licenses {
license {
name = "Apache Software License 2.0"
url = "https://git.inmo.dev/InsanusMokrassar/MicroUtils_mirror/src/master/LICENSE"
}
}
}
repositories {
maven {
name = "bintray"
url = uri("https://api.bintray.com/maven/${project.hasProperty('BINTRAY_USER') ? project.property('BINTRAY_USER') : System.getenv('BINTRAY_USER')}/releaseMode/${project.name}/;publish=1;override=1")
credentials {
username = project.hasProperty('BINTRAY_USER') ? project.property('BINTRAY_USER') : System.getenv('BINTRAY_USER')
password = project.hasProperty('BINTRAY_KEY') ? project.property('BINTRAY_KEY') : System.getenv('BINTRAY_KEY')
}
}
}
}
}

View File

@ -1,40 +1,12 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
plugins { plugins {
id "org.jetbrains.kotlin.multiplatform" version "$kotlin_version" id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version" id "org.jetbrains.kotlin.plugin.serialization"
id "com.android.library"
} }
project.version = "$core_version" apply from: "$mppProjectWithSerializationPresetPath"
project.group = "$group_name"
apply from: "./publish.gradle"
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" }
}
kotlin { kotlin {
jvm()
js (BOTH) {
browser()
nodejs()
}
sourceSets { sourceSets {
commonMain { commonMain {
dependencies { dependencies {
@ -43,33 +15,6 @@ kotlin {
api project(":postssystem.core.api") api project(":postssystem.core.api")
} }
} }
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
}
}
jvmTest {
dependencies {
implementation kotlin('test-junit')
}
}
jsMain {
dependencies {
implementation kotlin('stdlib-js')
}
}
jsTest {
dependencies {
implementation kotlin('test-js')
implementation kotlin('test-junit')
}
}
} }
} }

View File

@ -0,0 +1 @@
<manifest package="dev.inmo.postssystem.publishing.api"/>

View File

@ -1,42 +1,26 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
plugins { plugins {
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version" id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization"
} }
project.version = "$core_version" apply from: "$mppJavaProjectPresetPath"
project.group = "$group_name"
apply plugin: "java-library" kotlin {
apply plugin: "kotlin" sourceSets {
apply from: "./publish.gradle" commonMain {
dependencies {
implementation kotlin('stdlib')
api "dev.inmo:micro_utils.repos.exposed:$microutils_version"
repositories { api project(":postssystem.publishing.api")
mavenLocal() }
jcenter() }
mavenCentral() jvmMain {
maven { url "https://kotlin.bintray.com/kotlinx" } dependencies {
} implementation "org.xerial:sqlite-jdbc:$test_sqlite_version"
implementation "org.jetbrains.kotlin:kotlin-test"
dependencies { implementation "org.jetbrains.kotlin:kotlin-test-junit"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" }
}
api "dev.inmo:micro_utils.repos.exposed:$microutils_version" }
api project(":postssystem.publishing.api")
testImplementation "org.xerial:sqlite-jdbc:$test_sqlite_version"
testImplementation "org.jetbrains.kotlin:kotlin-test"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit"
} }

View File

@ -1,38 +1,12 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
plugins { plugins {
id "org.jetbrains.kotlin.multiplatform" version "$kotlin_version" id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version" id "org.jetbrains.kotlin.plugin.serialization"
id "com.android.library"
} }
project.version = "$core_version" apply from: "$mppProjectWithSerializationPresetPath"
project.group = "$group_name"
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" }
}
kotlin { kotlin {
jvm()
js (BOTH) {
browser()
nodejs()
}
sourceSets { sourceSets {
commonMain { commonMain {
dependencies { dependencies {
@ -43,32 +17,5 @@ kotlin {
api project(":postssystem.publishing.ktor.common") api project(":postssystem.publishing.ktor.common")
} }
} }
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
}
}
jvmTest {
dependencies {
implementation kotlin('test-junit')
}
}
jsMain {
dependencies {
implementation kotlin('stdlib-js')
}
}
jsTest {
dependencies {
implementation kotlin('test-js')
implementation kotlin('test-junit')
}
}
} }
} }

View File

@ -0,0 +1 @@
<manifest package="dev.inmo.postssystem.publishing.ktor.client"/>

View File

@ -1,64 +1,19 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
plugins { plugins {
id "org.jetbrains.kotlin.multiplatform" version "$kotlin_version" id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version" id "org.jetbrains.kotlin.plugin.serialization"
id "com.android.library"
} }
project.version = "$core_version" apply from: "$mppProjectWithSerializationPresetPath"
project.group = "$group_name"
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" }
}
kotlin { kotlin {
jvm()
js (BOTH) {
browser()
nodejs()
}
sourceSets { sourceSets {
commonMain { commonMain {
dependencies { dependencies {
implementation kotlin('stdlib')
api "dev.inmo:micro_utils.ktor.common:$microutils_version" api "dev.inmo:micro_utils.ktor.common:$microutils_version"
api project(":postssystem.publishing.api") api project(":postssystem.publishing.api")
} }
} }
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmTest {
dependencies {
implementation kotlin('test-junit')
}
}
jsTest {
dependencies {
implementation kotlin('test-js')
implementation kotlin('test-junit')
}
}
} }
} }

View File

@ -0,0 +1 @@
<manifest package="dev.inmo.postssystem.publishing.ktor.common"/>

View File

@ -1,41 +1,26 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
plugins { plugins {
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version" id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization"
} }
project.version = "$core_version" apply from: "$mppJavaProjectPresetPath"
project.group = "$group_name"
apply plugin: "java-library" kotlin {
apply plugin: "kotlin" sourceSets {
commonMain {
dependencies {
api "dev.inmo:micro_utils.ktor.server:$microutils_version"
repositories { api project(":postssystem.publishing.ktor.common")
mavenLocal() }
jcenter() }
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" } jvmTest {
} dependencies {
implementation "org.xerial:sqlite-jdbc:$test_sqlite_version"
dependencies { implementation "org.jetbrains.kotlin:kotlin-test"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-test-junit"
}
api "dev.inmo:micro_utils.ktor.server:$microutils_version" }
}
api project(":postssystem.publishing.ktor.common")
testImplementation "org.xerial:sqlite-jdbc:$test_sqlite_version"
testImplementation "org.jetbrains.kotlin:kotlin-test"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit"
} }

View File

@ -3,7 +3,6 @@ rootProject.name='postssystem'
String[] includes = [ String[] includes = [
':core:api', ':core:api',
':core:exposed', ':core:exposed',
':core:ktor',
':core:ktor:common', ':core:ktor:common',
':core:ktor:client', ':core:ktor:client',
':core:ktor:server', ':core:ktor:server',