Skip to content

Commit

Permalink
chore: added internal links for better reference
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandraPedroza committed Jan 31, 2025
1 parent 124d0c0 commit 4509db1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/topics/gradle/gradle-compiler-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ The Gradle DSL allows comprehensive
configuration of compiler options. It is available for [Kotlin Multiplatform](multiplatform-dsl-reference.md) and [JVM/Android](#target-the-jvm) projects.

With the Gradle DSL, you can configure compiler options within the build script at three levels:
* **Extension level**, in the `kotlin {}` block for all targets and shared source sets.
* **Target level**, in the block for a specific target.
* **Compilation unit level,** usually in a specific compilation task.
* **[Extension level](#extension-level)**, in the `kotlin {}` block for all targets and shared source sets.
* **[Target level](#target-level)**, in the block for a specific target.
* **[Compilation unit level](#compilation-unit-level),** usually in a specific compilation task.

![Kotlin compiler options levels](compiler-options-levels.svg){width=700}

Expand Down Expand Up @@ -138,7 +138,7 @@ tasks.named('compileKotlin', org.jetbrains.kotlin.gradle.tasks.KotlinCompilation

## Target the JVM

As explained before, you can define compiler options for your JVM/Android projects at the extension, target, and compilation unit levels.
[As explained before](#how-to-define-options), you can define compiler options for your JVM/Android projects at the extension, target, and compilation unit levels (tasks).

Default JVM compilation tasks are called `compileKotlin` for production code and `compileTestKotlin`
for test code. The tasks for custom source sets are named according to their `compile<Name>Kotlin` patterns.
Expand Down

0 comments on commit 4509db1

Please sign in to comment.