replace subprojects and add publishing of postssystem.core

This commit is contained in:
InsanusMokrassar 2019-11-15 14:12:01 +06:00
parent 9f4990b442
commit a7de0817f8
30 changed files with 100 additions and 6 deletions

View File

@ -1 +0,0 @@
rootProject.name = 'postssystem.core'

View File

@ -1 +0,0 @@
rootProject.name="postssystem.core-exposed"

View File

@ -10,7 +10,6 @@ gradle_bintray_plugin_version=1.8.4
project_public_version=0.1.0 project_public_version=0.1.0
project_public_group=com.insanusmokrassar project_public_group=com.insanusmokrassar
project_public_name=PostsSystemCore
project_public_description=Core library for PostsSystem project_public_description=Core library for PostsSystem
disableImplicitReflectionSerializerAnnotation=-Xexperimental=kotlinx.serialization.ImplicitReflectionSerializer disableImplicitReflectionSerializerAnnotation=-Xexperimental=kotlinx.serialization.ImplicitReflectionSerializer

View File

@ -17,6 +17,7 @@ buildscript {
apply plugin: 'kotlinx-serialization' apply plugin: 'kotlinx-serialization'
apply plugin: 'kotlin-multiplatform' apply plugin: 'kotlin-multiplatform'
apply from: "publish.gradle"
repositories { repositories {
mavenLocal() mavenLocal()

View File

@ -0,0 +1 @@
project_vcs_base=https://git.insanusmokrassar.com/PostsSystem/PostsSystemCore

View File

@ -0,0 +1,63 @@
apply plugin: 'maven-publish'
apply plugin: 'signing'
task javadocJar(type: Jar) {
archiveClassifier.set 'javadoc'
}
kotlin {
jvm("jvm8") {
mavenPublication {
groupId "${project.group}"
artifactId "${project.name}-jvm"
version "${project.version}"
artifact(javadocJar)
}
}
}
publishing {
publications {
jvm8 {
pom.withXml {
asNode().children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
name "${project.name}-jvm"
description "${project_public_description}"
scm {
developerConnection "scm:git:[fetch=]${project_vcs_base}/${project.name}.git[push=]ssh:git@github.com:insanusmokrassar/${project.name}.git"
url "${project_vcs_base}/${project.name}"
}
developers {
developer {
id "InsanusMokrassar"
name "Ovsyannikov Alexey"
email "ovsyannikov.alexey95@gmail.com"
}
developer {
id "mi-ast"
name "Michail Astafiev"
email "astaf65@gmail.com"
}
}
licenses {
license {
name "The Apache Software License, Version 2.0"
url "${project_vcs_base}/${project.name}/blob/master/LICENSE"
distribution "repo"
}
}
}
}
}
}
}
signing {
useGpgCmd()
sign publishing.publications.jvm8
}

View File

@ -0,0 +1,30 @@
apply plugin: 'com.jfrog.bintray'
ext {
projectBintrayDir = "${project.group}/".replace(".", "/") + "${project.name}/${project.version}"
}
apply from: "maven.publish.gradle"
bintray {
user = project.hasProperty('BINTRAY_USER') ? project.property('BINTRAY_USER') : System.getenv('BINTRAY_USER')
key = project.hasProperty('BINTRAY_KEY') ? project.property('BINTRAY_KEY') : System.getenv('BINTRAY_KEY')
publications = ["jvm8"]
filesSpec {
into projectBintrayDir
from signJvm8Publication
rename "pom.*\\.xml(.*)", "${project.name}-${project.version}.pom\$1"
rename "(.*)jvm8-(.*)", "\$1\$2"
}
pkg {
repo = 'InsanusMokrassar'
name = "${project.name}"
vcsUrl = "${project_vcs_base}/${project.name}"
licenses = ['Apache-2.0']
version {
name = "${project.version}"
released = new Date()
vcsTag = name
}
}
}

View File

@ -27,7 +27,7 @@ repositories {
dependencies { dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation project(":core") implementation project(":postssystem.core")
api "org.jetbrains.exposed:exposed:$exposed_version" api "org.jetbrains.exposed:exposed:$exposed_version"
testImplementation "org.xerial:sqlite-jdbc:$test_sqlite_version" testImplementation "org.xerial:sqlite-jdbc:$test_sqlite_version"

View File

@ -15,5 +15,7 @@ include 'api'
include 'services:webservice' include 'services:webservice'
*/ */
include ':core' rootProject.name='postssystem'
include ':exposed' include ':postssystem.core'
include ':postssystem.exposed'
enableFeaturePreview("GRADLE_METADATA")