Serialization version to implementation

This commit is contained in:
Alexander Nozik 2020-09-06 13:35:06 +03:00
parent 65ab0e75d3
commit fc7ae90476
4 changed files with 6 additions and 33 deletions

View File

@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Migrate to kotlin 1.4.0 - Migrate to kotlin 1.4.0
- Separate Native (current platform) and nodeJs plugins - Separate Native (current platform) and nodeJs plugins
### Changed
- Serialization default configuration changed to implementation
## [0.5.2] ## [0.5.2]
### Added ### Added

View File

@ -1,5 +1,3 @@
import java.util.*
plugins { plugins {
`java-gradle-plugin` `java-gradle-plugin`
`kotlin-dsl` `kotlin-dsl`
@ -8,7 +6,7 @@ plugins {
} }
group = "ru.mipt.npm" group = "ru.mipt.npm"
version = "0.6.0-dev-3" version = "0.6.0-dev-4"
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
@ -138,34 +136,5 @@ publishing {
} }
} }
// bintray {
// user = project.findProperty("bintrayUser") as? String ?: System.getenv("BINTRAY_USER")
// key = project.findProperty("bintrayApiKey") as? String? ?: System.getenv("BINTRAY_API_KEY")
// publish = true
// override = true // for multi-platform Kotlin/Native publishing
//
// // We have to use delegateClosureOf because bintray supports only dynamic groovy syntax
// // this is a problem of this plugin
// pkg.apply {
// userOrg = "mipt-npm"
// repo = if (project.version.toString().contains("dev")) "dev" else "kscience"
// name = project.name
// issueTrackerUrl = "$vcs/issues"
// setLicenses("Apache-2.0")
// vcsUrl = vcs
// version.apply {
// name = project.version.toString()
// vcsTag = project.version.toString()
// released = Date().toString()
// }
// }
//
// //workaround bintray bug
// project.afterEvaluate {
// setPublications(*project.extensions.findByType<PublishingExtension>()!!.publications.names.toTypedArray())
// }
//
// }
//}

View File

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