Skip to content

Commit

Permalink
Merge pull request #208 from ndtp/137-gradle-plugin
Browse files Browse the repository at this point in the history
ISSUE-137: Redefine plugin artifact to work with gradle plugin DSL
  • Loading branch information
DanielJette committed Jun 1, 2024
2 parents 1b378a8 + 72a44eb commit 51d2049
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 25 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

- https://github.com/ndtp/android-testify/pull/208 - Redefine plugin artifact to work with gradle plugin DSL
- https://github.com/ndtp/android-testify/pull/201 - Added ScreenshotScenarioRule which works in conjunction with Android's ActivityScenario.
- Added tests demonstrating the usage of ScreenshotScenarioRule.
- Major overhaul of all documentation to include alternative instructions for using ScreenshotScenarioRule.
Expand Down
4 changes: 2 additions & 2 deletions Plugins/Gradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
ext {
pom = [
publishedGroupId : 'dev.testify',
artifact : 'plugin',
artifact : 'dev.testify.gradle.plugin',
libraryName : 'testify-plugin',
libraryDescription: 'Android screenshot instrumentation tests plugin.',
siteUrl : 'https://github.com/ndtp/android-testify',
Expand Down Expand Up @@ -116,4 +116,4 @@ jacocoTestReport {
csv.required = false
html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
}
}
}
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,15 @@ Testify plugin:
**Root build.gradle**

```groovy
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "dev.testify:plugin:2.0.0"
}
plugins {
id("dev.testify") version "2.0.0" apply false
}
```

**settings.gradle**

Ensure that `mavenCentral()` is available to both `pluginManagement` and `dependencyResolutionManagement`.

**Application build.gradle**

```groovy
Expand Down
15 changes: 7 additions & 8 deletions Samples/Flix/FlixLibrary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,17 @@ An Android library is structurally the same as an Android app module. It include

## Setting Up Testify with an Android Library Project

**Root build.gradle**:
**Root build.gradle**
```groovy
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "dev.testify:plugin:2.0.0"
}
plugins {
id("dev.testify") version "2.0.0" apply false
}
```

**settings.gradle**

Ensure that `mavenCentral()` is available to both `pluginManagement` and `dependencyResolutionManagement`.

**Library module build.gradle**:
```groovy
plugins {
Expand Down
2 changes: 1 addition & 1 deletion Samples/Flix/FlixLibrary/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
buildscript {
dependencies {
classpath "dev.testify:plugin:${versions.testify}"
classpath "dev.testify:plugin:2.0.0"
}
ext {
versions = [
Expand Down
13 changes: 6 additions & 7 deletions docs/docs/get-started/1-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ Before building your screenshot test with Testify, make sure to set a dependency

**Root build.gradle**
```groovy
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "dev.testify:plugin:2.0.0"
}
plugins {
id("dev.testify") version "2.0.0" apply false
}
```

**settings.gradle**

Ensure that `mavenCentral()` is available to both `pluginManagement` and `dependencyResolutionManagement`.

**Application build.gradle**
```groovy
plugins {
Expand Down

0 comments on commit 51d2049

Please sign in to comment.