Skip to content

Commit cd202b6

Browse files
committed
Allow wiring kotlinApplication block independently of applying plugin
1 parent 1e9e66f commit cd202b6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

unified-prototype/unified-plugin/plugin-kmp/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ plugins {
99
description = "Implements the declarative KMP DSL prototype"
1010

1111
dependencies {
12-
implementation(project(":plugin-common"))
12+
api(project(":plugin-common"))
13+
1314
implementation(project(":plugin-jvm"))
1415
implementation(libs.kotlin.multiplatform)
1516
implementation(libs.kotlin.jvm)

unified-prototype/unified-plugin/plugin-kmp/src/main/java/org/gradle/api/experimental/kmp/StandaloneKmpApplicationPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ public abstract class StandaloneKmpApplicationPlugin implements Plugin<Project>
3333

3434
@Override
3535
public void apply(Project project) {
36-
PluginWiring.wirePlugin(project, getKmpApplication());
36+
PluginWiring.wireKMPApplication(project, getKmpApplication());
3737
}
3838

3939
public static final class PluginWiring {
4040
private PluginWiring() { /* not instantiable */ }
4141

42-
public static void wirePlugin(Project project, KmpApplication initialDslModel) {
42+
public static void wireKMPApplication(Project project, KmpApplication initialDslModel) {
4343
KmpApplication dslModel = setupDslModel(project, initialDslModel);
4444

4545
project.afterEvaluate(p -> linkDslModelToPlugin(p, dslModel));

0 commit comments

Comments
 (0)