-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(gradle): create test scopes plugin convention for test scopes m…
…odules.
- Loading branch information
1 parent
517930f
commit 78200c5
Showing
4 changed files
with
32 additions
and
12 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
26 changes: 26 additions & 0 deletions
26
build-logic/plugins/src/main/kotlin/conventions/TestScopesLibraryPlugin.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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package conventions | ||
|
||
import org.gradle.api.Plugin | ||
import org.gradle.api.Project | ||
import org.gradle.kotlin.dsl.configure | ||
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl | ||
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension | ||
|
||
class TestScopesLibraryPlugin: Plugin<Project> { | ||
@OptIn(ExperimentalWasmDsl::class) | ||
override fun apply(target: Project) { | ||
with(target) { | ||
with(pluginManager) { | ||
apply("confily.multiplatform.library") | ||
apply("confily.quality") | ||
} | ||
extensions.configure<KotlinMultiplatformExtension> { | ||
androidTarget() | ||
wasmJs { | ||
useCommonJs() | ||
browser() | ||
} | ||
} | ||
} | ||
} | ||
} |
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,12 +1,7 @@ | ||
plugins { | ||
id("confily.multiplatform.library") | ||
id("confily.quality") | ||
id("confily.test.scopes") | ||
} | ||
|
||
android { | ||
namespace = "com.paligot.confily.schedules.test.scopes" | ||
} | ||
|
||
kotlin { | ||
androidTarget() | ||
} |
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,12 +1,7 @@ | ||
plugins { | ||
id("confily.multiplatform.library") | ||
id("confily.quality") | ||
id("confily.test.scopes") | ||
} | ||
|
||
android { | ||
namespace = "com.paligot.confily.speakers.test.scopes" | ||
} | ||
|
||
kotlin { | ||
androidTarget() | ||
} |