For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

Jdk

open class Jdk(source)

Represents information for the project Java SDK. This translates to attributes of the ProjectRootManager element in the ipr.

Since

1.0

Constructors

Link copied to clipboard
constructor(jdkName: String, ideaLanguageLevel: IdeaLanguageLevel)
Creates a new Jdk.
constructor(assertKeyword: Boolean, jdk15: Boolean, languageLevel: String, projectJdkName: String)
Creates a new Jdk.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
Returns whether assert keyword is set.
Link copied to clipboard
open fun isJdk15(): Boolean
Returns whether jdk15 is set.
Link copied to clipboard
open fun setAssertKeyword(assertKeyword: Boolean)
Sets the assert keyword.
Link copied to clipboard
open fun setJdk15(jdk15: Boolean)
Sets the jdk15.
Link copied to clipboard
open fun toString(): String