Improved integer-type arguments
This commit is contained in:
parent
9548f6150f
commit
3a5f4f04bd
1 changed files with 42 additions and 4 deletions
|
@ -40,7 +40,7 @@ public class SourceSet {
|
|||
private AnalysisPlatform analysisPlatform_;
|
||||
private String apiVersion_;
|
||||
private String displayName_;
|
||||
private int jdkVersion_;
|
||||
private String jdkVersion_;
|
||||
private String languageVersion_;
|
||||
private boolean noJdkLink_;
|
||||
private boolean noSkipEmptyPackages_;
|
||||
|
@ -73,6 +73,17 @@ public class SourceSet {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Kotlin API version used for setting up analysis and samples.
|
||||
*
|
||||
* @param apiVersion the api version
|
||||
* @return this operation instance
|
||||
*/
|
||||
public SourceSet apiVersion(int apiVersion) {
|
||||
apiVersion_ = String.valueOf(apiVersion);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the formatted arguments.
|
||||
*
|
||||
|
@ -130,9 +141,9 @@ public class SourceSet {
|
|||
}
|
||||
|
||||
// -jdkVersion
|
||||
if (jdkVersion_ > 0) {
|
||||
if (jdkVersion_ != null) {
|
||||
args.add("-jdkVersion");
|
||||
args.add(String.valueOf(jdkVersion_));
|
||||
args.add(jdkVersion_);
|
||||
}
|
||||
|
||||
// -includes
|
||||
|
@ -375,11 +386,27 @@ public class SourceSet {
|
|||
* @param jdkVersion the JDK version
|
||||
* @return this operation instance
|
||||
*/
|
||||
public SourceSet jdkVersion(int jdkVersion) {
|
||||
public SourceSet jdkVersion(String jdkVersion) {
|
||||
jdkVersion_ = jdkVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the version of JDK to use for linking to JDK Javadocs.
|
||||
* <p>
|
||||
* The JDK version to use when generating external documentation links for Java types.
|
||||
* <p>
|
||||
* For example, if you use {@link java.util.UUID} in some public declaration signature, and this option is set to 8,
|
||||
* Dokka generates an external documentation link to JDK 8 Javadocs for it.
|
||||
*
|
||||
* @param jdkVersion the JDK version
|
||||
* @return this operation instance
|
||||
*/
|
||||
public SourceSet jdkVersion(int jdkVersion) {
|
||||
jdkVersion_ = String.valueOf(jdkVersion);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the language version used for setting up analysis and samples.
|
||||
*
|
||||
|
@ -391,6 +418,17 @@ public class SourceSet {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the language version used for setting up analysis and samples.
|
||||
*
|
||||
* @param languageVersion the language version
|
||||
* @return this operation instance
|
||||
*/
|
||||
public SourceSet languageVersion(int languageVersion) {
|
||||
languageVersion_ = String.valueOf(languageVersion);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets whether to generate links to JDK Javadocs.
|
||||
* <p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue