-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from gradle/tt/add-runtime-compiletime-only-t…
…o-kotlin Add runtimeOnly and compileOnly configurations to Kotlin testing
- Loading branch information
Showing
4 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...gin/plugin-kmp/src/main/java/org/gradle/api/experimental/kotlin/KotlinJvmApplication.java
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,13 +1,24 @@ | ||
package org.gradle.api.experimental.kotlin; | ||
|
||
import org.gradle.api.Action; | ||
import org.gradle.api.experimental.common.HasCliExecutables; | ||
import org.gradle.api.experimental.jvm.HasJavaTarget; | ||
import org.gradle.api.experimental.jvm.HasJvmApplication; | ||
import org.gradle.api.experimental.kotlin.testing.Testing; | ||
import org.gradle.api.tasks.Nested; | ||
import org.gradle.declarative.dsl.model.annotations.Configuring; | ||
import org.gradle.declarative.dsl.model.annotations.Restricted; | ||
|
||
/** | ||
* An application implemented using Kotlin and that targets a single JVM version. | ||
*/ | ||
@Restricted | ||
public interface KotlinJvmApplication extends HasJavaTarget, HasJvmApplication, HasCliExecutables { | ||
@Nested | ||
Testing getTesting(); | ||
|
||
@Configuring | ||
default void testing(Action<? super Testing> action) { | ||
action.execute(getTesting()); | ||
} | ||
} |
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