replace subprojects and add publishing of postssystem.core
This commit is contained in:
parent
9f4990b442
commit
a7de0817f8
@ -1 +0,0 @@
|
||||
rootProject.name = 'postssystem.core'
|
@ -1 +0,0 @@
|
||||
rootProject.name="postssystem.core-exposed"
|
@ -10,7 +10,6 @@ gradle_bintray_plugin_version=1.8.4
|
||||
|
||||
project_public_version=0.1.0
|
||||
project_public_group=com.insanusmokrassar
|
||||
project_public_name=PostsSystemCore
|
||||
project_public_description=Core library for PostsSystem
|
||||
|
||||
disableImplicitReflectionSerializerAnnotation=-Xexperimental=kotlinx.serialization.ImplicitReflectionSerializer
|
||||
|
@ -17,6 +17,7 @@ buildscript {
|
||||
|
||||
apply plugin: 'kotlinx-serialization'
|
||||
apply plugin: 'kotlin-multiplatform'
|
||||
apply from: "publish.gradle"
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
1
postssystem.core/gradle.properties
Normal file
1
postssystem.core/gradle.properties
Normal file
@ -0,0 +1 @@
|
||||
project_vcs_base=https://git.insanusmokrassar.com/PostsSystem/PostsSystemCore
|
63
postssystem.core/maven.publish.gradle
Normal file
63
postssystem.core/maven.publish.gradle
Normal 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
|
||||
}
|
30
postssystem.core/publish.gradle
Normal file
30
postssystem.core/publish.gradle
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
@ -27,7 +27,7 @@ repositories {
|
||||
|
||||
dependencies {
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||||
implementation project(":core")
|
||||
implementation project(":postssystem.core")
|
||||
|
||||
api "org.jetbrains.exposed:exposed:$exposed_version"
|
||||
testImplementation "org.xerial:sqlite-jdbc:$test_sqlite_version"
|
@ -15,5 +15,7 @@ include 'api'
|
||||
include 'services:webservice'
|
||||
*/
|
||||
|
||||
include ':core'
|
||||
include ':exposed'
|
||||
rootProject.name='postssystem'
|
||||
include ':postssystem.core'
|
||||
include ':postssystem.exposed'
|
||||
enableFeaturePreview("GRADLE_METADATA")
|
||||
|
Loading…
Reference in New Issue
Block a user