Add automatic publishing to bintray

This commit is contained in:
Alexander Nozik 2020-09-07 13:32:25 +03:00
parent fc7ae90476
commit b428387116
4 changed files with 5 additions and 6 deletions

View File

@ -10,13 +10,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Migrate to kotlin 1.4.0
- Separate Native (current platform) and nodeJs plugins
- Add `application()` toggle in plugin configuration to produce binaries on JS and applicaion plugin on jvm.
- Add `publish` to expose publishing configuration
### Changed
- Serialization default configuration changed to implementation
## [0.5.2]
### Added
- Copy resources for jvm modules and jvm source sets in mpp

View File

@ -27,7 +27,7 @@ dependencies {
implementation("org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion")
implementation("org.jetbrains.kotlinx:atomicfu-gradle-plugin:0.14.4")
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.4.0")
implementation("org.jetbrains.dokka:dokka-core:1.4.0")
implementation("org.jetbrains.dokka:dokka-base:1.4.0")
}
gradlePlugin {

View File

@ -28,7 +28,7 @@ class KScienceExtension(val project: Project) {
fun useSerialization(
version: String = KScienceVersions.serializationVersion,
sourceSet: DependencySourceSet = DependencySourceSet.MAIN,
configuration: DependencyConfiguration = DependencyConfiguration.IMPLEMENTATION,
configuration: DependencyConfiguration = DependencyConfiguration.API,
block: SerializationTargets.() -> Unit = {}
): Unit = project.run {
plugins.apply("org.jetbrains.kotlin.plugin.serialization")

View File

@ -115,7 +115,7 @@ open class KSciencePublishPlugin : Plugin<Project> {
maven {
name = "bintray"
url = uri(
"https://api.bintray.com/maven/$bintrayOrg/$bintrayRepo/$projectName/;publish=0;override=1"
"https://api.bintray.com/maven/$bintrayOrg/$bintrayRepo/$projectName/;publish=1;override=1"
)
credentials {
username = bintrayUser