Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update readme to make it more clear that you need to apply plugin as well in legacy syntax #314

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,33 @@ To get started, declare the plugin in your `app` module's build script alongside

### Alternative: Legacy DSL

If you prefer to use the legacy way to declare the dependency instead, remove the `version()` block from above and declare the plugin in your _root project's build script_ like so:
If you prefer to use the legacy way to declare the dependency instead, remove the `version()` block from above and apply in your`app` module:

<details>
<summary>Kotlin</summary>

```kotlin
plugins {
id("de.mannodermaus.android-junit5")
}
```
</details>

<details>
<summary>Groovy</summary>

```kotlin
plugins {
id "de.mannodermaus.android-junit5"
}
```
or
```kotlin
apply plugin: 'de.mannodermaus.android-junit5'
```
</details>

Then declare the plugin in your _root project's build script_ like so:

<details>
<summary>Kotlin</summary>
Expand Down
28 changes: 27 additions & 1 deletion README.md.template
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,33 @@ To get started, declare the plugin in your `app` module's build script alongside

### Alternative: Legacy DSL

If you prefer to use the legacy way to declare the dependency instead, remove the `version()` block from above and declare the plugin in your _root project's build script_ like so:
If you prefer to use the legacy way to declare the dependency instead, remove the `version()` block from above and apply in your`app` module:

<details>
<summary>Kotlin</summary>

```kotlin
plugins {
id("de.mannodermaus.android-junit5")
}
```
</details>

<details>
<summary>Groovy</summary>

```kotlin
plugins {
id "de.mannodermaus.android-junit5"
}
```
or
```kotlin
apply plugin: 'de.mannodermaus.android-junit5'
```
</details>

Then declare the plugin in your _root project's build script_ like so:

<details>
<summary>Kotlin</summary>
Expand Down