diff --git a/docs/pages/release_notes.md b/docs/pages/release_notes.md index d146870ab3..cf48ab3783 100644 --- a/docs/pages/release_notes.md +++ b/docs/pages/release_notes.md @@ -37,6 +37,7 @@ Being based on a proper Antlr grammar, CPD can: * all * [#1788](https://github.com/pmd/pmd/issues/1788): \[cpd] \[core] Use better `ClassLoader` for `ServiceLoader` in `LanguageFactory` + * [#1515](https://github.com/pmd/pmd/issues/1515): \[core] Module pmd-lang-test is missing javadoc artifact * go * [#1751](https://github.com/pmd/pmd/issues/1751): \[go] Parsing errors encountered with escaped backslash * java diff --git a/pmd-lang-test/pom.xml b/pmd-lang-test/pom.xml index 005b1daf88..318bd9042f 100644 --- a/pmd-lang-test/pom.xml +++ b/pmd-lang-test/pom.xml @@ -16,6 +16,7 @@ + ${project.basedir}/src/main/kotlin @@ -29,15 +30,54 @@ compile process-sources - - - ${project.basedir}/src/main/kotlin - ${project.basedir}/src/main/java - - + + org.apache.maven.plugins + maven-javadoc-plugin + + + attach-javadocs + + none + + + + + org.jetbrains.dokka + dokka-maven-plugin + ${dokka.version} + + + package + + + dokka + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + kotlin-javadoc + package + + jar + + + ${project.build.directory}/dokka + javadoc + + + + diff --git a/pmd-lang-test/src/main/java/net/sourceforge/pmd/lang/ast/test/PlaceHolder.java b/pmd-lang-test/src/main/java/net/sourceforge/pmd/lang/ast/test/PlaceHolder.java deleted file mode 100644 index e45609fc3d..0000000000 --- a/pmd-lang-test/src/main/java/net/sourceforge/pmd/lang/ast/test/PlaceHolder.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * BSD-style license; for more info see http://pmd.sourceforge.net/license.html - */ - -package net.sourceforge.pmd.lang.ast.test; - -/** - * Hack to generate package javadoc. - * See: https://stackoverflow.com/questions/1138390/javadoc-for-package-info-java-only - */ -@Deprecated -public class PlaceHolder { -} diff --git a/pmd-lang-test/src/main/java/net/sourceforge/pmd/lang/ast/test/package-info.java b/pmd-lang-test/src/main/java/net/sourceforge/pmd/lang/ast/test/package-info.java deleted file mode 100644 index f648abb279..0000000000 --- a/pmd-lang-test/src/main/java/net/sourceforge/pmd/lang/ast/test/package-info.java +++ /dev/null @@ -1,8 +0,0 @@ -/** - * BSD-style license; for more info see http://pmd.sourceforge.net/license.html - */ - -/** - * Contains the Kotlin-based DSL to test AST nodes. - */ -package net.sourceforge.pmd.lang.ast.test; diff --git a/pom.xml b/pom.xml index 01188c6079..227ecca1e1 100644 --- a/pom.xml +++ b/pom.xml @@ -266,6 +266,7 @@ Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code ${maven.compiler.test.target} 1.2.61 + 0.9.18 5.0 @@ -1009,6 +1010,11 @@ Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code true + + jcenter + JCenter + https://jcenter.bintray.com/ +