Remove useDokka
This commit is contained in:
parent
3416598434
commit
83ab554955
16
CHANGELOG.md
16
CHANGELOG.md
@ -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
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user