Skip to content

Commit

Permalink
Support applying the plugin to any project in hierarchy (Kotlin#39)
Browse files Browse the repository at this point in the history
This change removes accesses to the extension via `rootProject`.
Instead, we now access the extension wherever it was actually created.

This means that when applying the plugin to a project that is not the rootProject, we will use the correct extension instead of looking for it in the rootProject (where it is not).

Fixes Kotlin#37
  • Loading branch information
joffrey-bion authored Feb 1, 2021
1 parent 3ed63f9 commit 29267dd
Show file tree
Hide file tree
Showing 5 changed files with 347 additions and 179 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import org.assertj.core.api.Assertions
import org.junit.Test
import kotlin.test.assertTrue

internal class SubprojectsTests : BaseKotlinGradleTest() {
internal class SubprojectsWithPluginOnRootTests : BaseKotlinGradleTest() {

/**
* Sets up a project hierarchy like this:
Expand Down
Loading

0 comments on commit 29267dd

Please sign in to comment.