Dev #5

Merged
altavir merged 24 commits from dev into master 2020-12-28 09:44:15 +03:00
4 changed files with 23 additions and 8 deletions
Showing only changes of commit 83ab554955 - Show all commits

View File

@ -6,6 +6,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Added
### Changed
### Deprecated
### Removed
### Fixed
### Security
## [0.7.0]
### Added
- Changelog plugin automatically applied to `project`.
- Feature matrix and Readme generation task for a `project` plugin.
@ -27,7 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Publish plugin
### Removed
- `useDokka` method. Documentation jar should be added manually if needed.
### Fixed

View File

@ -20,6 +20,11 @@ open class KScienceCommonPlugin : Plugin<Project> {
registerKScienceExtension()
repositories.applyRepos()
// apply dokka for all projects
if (!plugins.hasPlugin("org.jetbrains.dokka")) {
plugins.apply("org.jetbrains.dokka")
}
//Configuration for K-JVM plugin
pluginManager.withPlugin("org.jetbrains.kotlin.jvm") {
//logger.info("Applying KScience configuration for JVM project")
@ -122,7 +127,7 @@ open class KScienceCommonPlugin : Plugin<Project> {
tasks.apply {
withType<KotlinJvmCompile> {
kotlinOptions {
// useIR = true
// useIR = true
jvmTarget = KScienceVersions.JVM_TARGET.toString()
}
}

View File

@ -91,10 +91,6 @@ class KScienceExtension(val project: Project) {
)
}
fun useDokka(): Unit = project.run {
plugins.apply("org.jetbrains.dokka")
}
fun useFx(
vararg modules: FXModule,
configuration: DependencyConfiguration = DependencyConfiguration.COMPILE_ONLY,

View File

@ -33,7 +33,7 @@ internal fun Project.configurePublishing() {
}
publications {
create("kotlinJs", MavenPublication::class) {
create("js", MavenPublication::class) {
from(components["kotlin"])
artifact(sourcesJar)
}
@ -49,7 +49,7 @@ internal fun Project.configurePublishing() {
}
publications {
create("kotlinJvm", MavenPublication::class) {
create("jvm", MavenPublication::class) {
from(components["kotlin"])
artifact(sourcesJar)
}