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

ISSUE-137: Redefine plugin artifact to work with gradle plugin DSL #208

Merged
merged 3 commits into from
Jun 1, 2024
Merged
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
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
Loading