-
-
Notifications
You must be signed in to change notification settings - Fork 758
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
detekt-tooling/src/main/kotlin/io/github/detekt/tooling/dsl/CompilerSpecBuilder.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
package io.github.detekt.tooling.dsl | ||
|
||
import io.github.detekt.tooling.api.spec.CompilerSpec | ||
import java.nio.file.Path | ||
|
||
@ProcessingModelDsl | ||
class CompilerSpecBuilder : Builder<CompilerSpec> { | ||
|
||
var jvmTarget: String = "1.8" | ||
var languageVersion: String? = null | ||
var classpath: String? = null | ||
var jdkHome: Path? = null | ||
|
||
override fun build(): CompilerSpec = CompilerModel(jvmTarget, languageVersion, classpath) | ||
override fun build(): CompilerSpec = CompilerModel(jvmTarget, languageVersion, classpath, jdkHome) | ||
} | ||
|
||
private data class CompilerModel( | ||
override val jvmTarget: String, | ||
override val languageVersion: String?, | ||
override val classpath: String? | ||
override val classpath: String?, | ||
override val jdkHome: Path?, | ||
) : CompilerSpec |