diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-09-11 16:45:11 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-09-11 16:45:11 +0200 |
commit | 757f72db456cf4dd12b0cfdbf312752d5951f166 (patch) | |
tree | e616cee86448fc9ae12c9cf67f27abecef0755f1 /maven-plugin/src | |
parent | e67ee4136f69ad2c8ef65c4978465f43717517d2 (diff) | |
download | dokka-757f72db456cf4dd12b0cfdbf312752d5951f166.tar.gz dokka-757f72db456cf4dd12b0cfdbf312752d5951f166.tar.bz2 dokka-757f72db456cf4dd12b0cfdbf312752d5951f166.zip |
M13 code cleanup
Diffstat (limited to 'maven-plugin/src')
-rw-r--r-- | maven-plugin/src/main/kotlin/DokkaMojo.kt | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/maven-plugin/src/main/kotlin/DokkaMojo.kt b/maven-plugin/src/main/kotlin/DokkaMojo.kt index 80f00c42..fae9d856 100644 --- a/maven-plugin/src/main/kotlin/DokkaMojo.kt +++ b/maven-plugin/src/main/kotlin/DokkaMojo.kt @@ -9,53 +9,53 @@ import org.jetbrains.dokka.DokkaGenerator import org.jetbrains.dokka.SourceLinkDefinition public class SourceLinkMapItem { - Parameter(name = "dir", required = true) + @Parameter(name = "dir", required = true) var dir: String = "" - Parameter(name = "url", required = true) + @Parameter(name = "url", required = true) var url: String = "" - Parameter(name = "urlSuffix") + @Parameter(name = "urlSuffix") var urlSuffix: String? = null } -Mojo(name = "dokka", defaultPhase = LifecyclePhase.PRE_SITE, threadSafe = true, requiresDependencyResolution = ResolutionScope.COMPILE, requiresProject = true) +@Mojo(name = "dokka", defaultPhase = LifecyclePhase.PRE_SITE, threadSafe = true, requiresDependencyResolution = ResolutionScope.COMPILE, requiresProject = true) public class DokkaMojo : AbstractMojo() { - Parameter(required = true, defaultValue = "\${project.compileSourceRoots}") + @Parameter(required = true, defaultValue = "\${project.compileSourceRoots}") var sourceDirectories: List<String> = emptyList() - Parameter + @Parameter var samplesDirs: List<String> = emptyList() - Parameter + @Parameter var includeDirs: List<String> = emptyList() - Parameter(required = true, defaultValue = "\${project.compileClasspathElements}") + @Parameter(required = true, defaultValue = "\${project.compileClasspathElements}") var classpath: List<String> = emptyList() - Parameter(required = true, defaultValue = "\${project.basedir}/target/dokka") + @Parameter(required = true, defaultValue = "\${project.basedir}/target/dokka") var outputDir: String = "" - Parameter(required = true, defaultValue = "html") + @Parameter(required = true, defaultValue = "html") var outputFormat: String = "html" - Parameter + @Parameter var sourceLinks: Array<SourceLinkMapItem> = emptyArray() - Parameter(required = true, defaultValue = "\${project.artifactId}") + @Parameter(required = true, defaultValue = "\${project.artifactId}") var moduleName: String = "" - Parameter(required = false, defaultValue = "false") + @Parameter(required = false, defaultValue = "false") var skip: Boolean = false override fun execute() { if (skip) { - getLog().info("Dokka skip parameter is true so no dokka output will be produced") + log.info("Dokka skip parameter is true so no dokka output will be produced") return } val gen = DokkaGenerator( - MavenDokkaLogger(getLog()), + MavenDokkaLogger(log), classpath, sourceDirectories, samplesDirs, |