Skip to content

Commit e0c49e7

Browse files
committed
Update README & prepare next version
Also, update build files of the local modules to disable the integrity check for instrumentation tests. After all, this repository uses project dependencies instead of Maven coordinates, so we don't need the strict check
1 parent c26a0e1 commit e0c49e7

File tree

4 files changed

+29
-20
lines changed

4 files changed

+29
-20
lines changed

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Furthermore, this repository provides a small showcase of the functionality prov
1919
```groovy
2020
buildscript {
2121
dependencies {
22-
classpath "de.mannodermaus.gradle.plugins:android-junit5:1.4.2.1"
22+
classpath "de.mannodermaus.gradle.plugins:android-junit5:1.5.0.0"
2323
}
2424
}
2525
```
@@ -31,7 +31,7 @@ Furthermore, this repository provides a small showcase of the functionality prov
3131
```kotlin
3232
buildscript {
3333
dependencies {
34-
classpath("de.mannodermaus.gradle.plugins:android-junit5:1.4.2.1")
34+
classpath("de.mannodermaus.gradle.plugins:android-junit5:1.5.0.0")
3535
}
3636
}
3737
```
@@ -51,15 +51,15 @@ Snapshots of the development version are available through [Sonatype's `snapshot
5151
5252
dependencies {
5353
// (Required) Writing and executing Unit Tests on the JUnit Platform
54-
testImplementation "org.junit.jupiter:junit-jupiter-api:5.4.2"
55-
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.4.2"
54+
testImplementation "org.junit.jupiter:junit-jupiter-api:5.5.0"
55+
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.5.0"
5656
5757
// (Optional) If you need "Parameterized Tests"
58-
testImplementation "org.junit.jupiter:junit-jupiter-params:5.4.2"
58+
testImplementation "org.junit.jupiter:junit-jupiter-params:5.5.0"
5959
6060
// (Optional) If you also have JUnit 4-based tests
6161
testImplementation "junit:junit:4.12"
62-
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:5.4.2"
62+
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:5.5.0"
6363
}
6464
```
6565
</details>
@@ -74,15 +74,15 @@ Snapshots of the development version are available through [Sonatype's `snapshot
7474

7575
dependencies {
7676
// (Required) Writing and executing Unit Tests on the JUnit Platform
77-
testImplementation("org.junit.jupiter:junit-jupiter-api:5.4.2")
78-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.4.2")
77+
testImplementation("org.junit.jupiter:junit-jupiter-api:5.5.0")
78+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.5.0")
7979

8080
// (Optional) If you need "Parameterized Tests"
81-
testImplementation("org.junit.jupiter:junit-jupiter-params:5.4.2")
81+
testImplementation("org.junit.jupiter:junit-jupiter-params:5.5.0")
8282

8383
// (Optional) If you also have JUnit 4-based tests
8484
testImplementation("junit:junit:4.12")
85-
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.4.2")
85+
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.5.0")
8686
}
8787
```
8888
</details>
@@ -130,11 +130,11 @@ To start writing instrumentation tests with JUnit Jupiter, make the following ch
130130
dependencies {
131131
// 5) Jupiter API & Test Runner, if you don't have it already
132132
androidTestImplementation "androidx.test:runner:1.1.1"
133-
androidTestImplementation "org.junit.jupiter:junit-jupiter-api:5.4.2"
133+
androidTestImplementation "org.junit.jupiter:junit-jupiter-api:5.5.0"
134134
135135
// 6) The instrumentation test companion libraries
136-
androidTestImplementation "de.mannodermaus.junit5:android-test-core:1.0.0"
137-
androidTestRuntimeOnly "de.mannodermaus.junit5:android-test-runner:1.0.0"
136+
androidTestImplementation "de.mannodermaus.junit5:android-test-core:1.1.0"
137+
androidTestRuntimeOnly "de.mannodermaus.junit5:android-test-runner:1.1.0"
138138
}
139139
```
140140
</details>
@@ -165,11 +165,11 @@ To start writing instrumentation tests with JUnit Jupiter, make the following ch
165165
dependencies {
166166
// 5) Jupiter API & Test Runner, if you don't have it already
167167
androidTestImplementation("androidx.test:runner:1.1.1")
168-
androidTestImplementation("org.junit.jupiter:junit-jupiter-api:5.4.2")
168+
androidTestImplementation("org.junit.jupiter:junit-jupiter-api:5.5.0")
169169
170170
// 6) The instrumentation test companion libraries
171-
androidTestImplementation("de.mannodermaus.junit5:android-test-core:1.0.0")
172-
androidTestRuntimeOnly("de.mannodermaus.junit5:android-test-runner:1.0.0")
171+
androidTestImplementation("de.mannodermaus.junit5:android-test-core:1.1.0")
172+
androidTestRuntimeOnly("de.mannodermaus.junit5:android-test-runner:1.1.0")
173173
}
174174
```
175175
</details>

buildSrc/src/main/kotlin/Artifacts.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ object Artifacts {
3535
platform = Java,
3636
groupId = "de.mannodermaus.gradle.plugins",
3737
artifactId = "android-junit5",
38-
currentVersion = "1.5.0.0",
39-
latestStableVersion = "1.4.2.1",
38+
currentVersion = "1.5.0.1-SNAPSHOT",
39+
latestStableVersion = "1.5.0.0",
4040
license = license,
4141
description = "Unit Testing with JUnit 5 for Android."
4242
)
@@ -46,8 +46,8 @@ object Artifacts {
4646
*/
4747
object Instrumentation {
4848
private val groupId = "de.mannodermaus.junit5"
49-
private val currentVersion = "1.1.0"
50-
val latestStableVersion = "1.0.0"
49+
private val currentVersion = "1.1.1-SNAPSHOT"
50+
val latestStableVersion = "1.1.0"
5151

5252
val Library = Deployed(
5353
platform = Android(minSdk = 26),

instrumentation/core/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import de.mannodermaus.gradle.plugins.junit5.junitPlatform
12
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
23
import org.gradle.api.tasks.testing.logging.TestLogEvent
34
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
@@ -62,6 +63,11 @@ android {
6263
}
6364

6465
testOptions {
66+
junitPlatform {
67+
// Using local dependency instead of Maven coordinates
68+
instrumentationTests.integrityCheckEnabled = false
69+
}
70+
6571
unitTests.apply {
6672
isReturnDefaultValues = true
6773
}

instrumentation/sample/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ android {
6565
filters("debug") {
6666
excludeTags("slow")
6767
}
68+
69+
// Using local dependency instead of Maven coordinates
70+
instrumentationTests.integrityCheckEnabled = false
6871
}
6972
}
7073

0 commit comments

Comments
 (0)