Skip to content

Commit 6352d56

Browse files
author
Marcel Schnelle
committed
Merge branch 'master' of https://github.com/aurae/android-junit5
# Conflicts: # gradle.properties
2 parents 904cea6 + 5436c51 commit 6352d56

File tree

14 files changed

+532
-230
lines changed

14 files changed

+532
-230
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
*.iml
22
.gradle
33
local.properties
4-
.idea/
4+
.idea/*
5+
!.idea/runConfigurations
56
.DS_Store
67
build/
78
captures/

.idea/runConfigurations/Run_Unit_Tests.xml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/Upload_to_Bintray.xml

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android-junit5/build.gradle

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ dependencies {
1010
compile gradleApi()
1111
compile localGroovy()
1212
compile "org.junit.platform:junit-platform-gradle-plugin:$JUNIT_PLATFORM_VERSION"
13-
compile "org.junit.platform:junit-platform-console:$JUNIT_PLATFORM_VERSION"
13+
14+
testCompile "com.android.tools.build:gradle:$ANDROID_PLUGIN_VERSION"
15+
testCompile("org.spockframework:spock-core:$SPOCK_VERSION") {
16+
transitive = false
17+
}
18+
testCompile "junit:junit:$JUNIT4_VERSION"
1419
}
1520

1621
version = VERSION_NAME
@@ -19,14 +24,15 @@ bintray {
1924
user = project.ext.bintrayUser
2025
key = project.ext.bintrayApiKey
2126
configurations = ['archives']
27+
dryRun = false
2228
pkg {
2329
repo = 'maven'
2430
name = ARTIFACT_ID
2531
userOrg = properties.get("BINTRAY_USER")
26-
licenses = ['EPL-1.0']
32+
licenses = ["EPL-1.0"]
2733
publish = true
2834
publicDownloadNumbers = true
29-
vcsUrl = 'https://github.com/aurae/android-junit5'
35+
vcsUrl = VCS_URL
3036
version {
3137
name = VERSION_NAME
3238
desc = DESCRIPTION
@@ -38,9 +44,17 @@ publishing {
3844
publications {
3945
library(MavenPublication) {
4046
from components.java
47+
artifact sourcesJar
48+
artifact javadocJar
4149
groupId GROUP_ID
4250
artifactId ARTIFACT_ID
4351
version VERSION_NAME
52+
pom.withXml {
53+
def root = asNode()
54+
root.appendNode("description", DESCRIPTION)
55+
root.appendNode("name", ARTIFACT_ID)
56+
root.appendNode("url", VCS_URL)
57+
}
4458
}
4559
}
4660
}

android-junit5/src/main/groovy/de/mannodermaus/gradle/anj5/AndroidJUnit5Extension.groovy

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package de.mannodermaus.gradle.anj5
2+
3+
import org.gradle.api.Project
4+
import org.junit.platform.gradle.plugin.JUnitPlatformExtension
5+
6+
/**
7+
* Core configuration options for the Android JUnit 5 Gradle plugin.
8+
* This extends the functionality available through JUnitPlatformExtension
9+
*/
10+
class AndroidJUnit5PlatformExtension extends JUnitPlatformExtension {
11+
12+
AndroidJUnit5PlatformExtension(Project project) {
13+
super(project)
14+
}
15+
16+
/**
17+
* The version of JUnit Jupiter to use.
18+
*
19+
* Defaults to {@code '5.+'}.
20+
*/
21+
String jupiterVersion = '5.+'
22+
23+
/**
24+
* The version of JUnit Vintage Engine to use.
25+
*
26+
* Defaults to {@code '4.12.+}.
27+
*/
28+
String vintageVersion = '4.12.+'
29+
}

0 commit comments

Comments
 (0)