Don't configure the operations Java/JDK version if the project's Java release is not set
This commit is contained in:
parent
044e53ae24
commit
b29169213b
3 changed files with 13 additions and 6 deletions
|
@ -227,9 +227,10 @@ public class DokkaOperation extends AbstractProcessOperation<DokkaOperation> {
|
|||
@Override
|
||||
public DokkaOperation fromProject(BaseProject project) {
|
||||
project_ = project;
|
||||
sourceSet_ = new SourceSet()
|
||||
.src(new File(project.srcMainDirectory(), "kotlin").getAbsolutePath())
|
||||
.jdkVersion(project.javaRelease());
|
||||
sourceSet_ = new SourceSet().src(new File(project.srcMainDirectory(), "kotlin").getAbsolutePath());
|
||||
if (project.javaRelease() != null) {
|
||||
sourceSet_ = sourceSet_.jdkVersion(project.javaRelease());
|
||||
}
|
||||
moduleName_ = project.name();
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue