From 5a5d5d09d8e6a3d1ba05301df004885900d26017 Mon Sep 17 00:00:00 2001 From: Marcel Schnelle Date: Mon, 11 Sep 2017 07:40:56 +0900 Subject: [PATCH] Prepare for 1.0.0 release & remove deprecated dependency handlers --- .../AndroidJUnitPlatformExtension.groovy | 6 ++--- .../AndroidJUnitPlatformPlugin.groovy | 24 ------------------- gradle.properties | 4 ++-- 3 files changed, 5 insertions(+), 29 deletions(-) diff --git a/android-junit5/src/main/groovy/de/mannodermaus/gradle/plugins/android_junit5/AndroidJUnitPlatformExtension.groovy b/android-junit5/src/main/groovy/de/mannodermaus/gradle/plugins/android_junit5/AndroidJUnitPlatformExtension.groovy index c234f5ac..f391edc3 100644 --- a/android-junit5/src/main/groovy/de/mannodermaus/gradle/plugins/android_junit5/AndroidJUnitPlatformExtension.groovy +++ b/android-junit5/src/main/groovy/de/mannodermaus/gradle/plugins/android_junit5/AndroidJUnitPlatformExtension.groovy @@ -9,7 +9,7 @@ import org.junit.platform.gradle.plugin.JUnitPlatformExtension */ class AndroidJUnitPlatformExtension extends JUnitPlatformExtension { - private static final String PLATFORM_VERSION = "1.0.0-RC3" + private static final String PLATFORM_VERSION = "1.0.0" AndroidJUnitPlatformExtension(Project project) { super(project) @@ -19,10 +19,10 @@ class AndroidJUnitPlatformExtension extends JUnitPlatformExtension { /** * The version of JUnit Jupiter to use. */ - String jupiterVersion = "5.0.0-RC3" + String jupiterVersion = "5.0.0" /** * The version of JUnit Vintage Engine to use. */ - String vintageVersion = "4.12.0-RC3" + String vintageVersion = "4.12.0" } diff --git a/android-junit5/src/main/groovy/de/mannodermaus/gradle/plugins/android_junit5/AndroidJUnitPlatformPlugin.groovy b/android-junit5/src/main/groovy/de/mannodermaus/gradle/plugins/android_junit5/AndroidJUnitPlatformPlugin.groovy index 1ddc21d9..ab8efd6e 100644 --- a/android-junit5/src/main/groovy/de/mannodermaus/gradle/plugins/android_junit5/AndroidJUnitPlatformPlugin.groovy +++ b/android-junit5/src/main/groovy/de/mannodermaus/gradle/plugins/android_junit5/AndroidJUnitPlatformPlugin.groovy @@ -21,19 +21,6 @@ class AndroidJUnitPlatformPlugin implements Plugin { static final String LOG_TAG = "[android-junit5]" static final String EXTENSION_NAME = "junitPlatform" - - private static String dependencyDeprecationWarning(oldName, newName) { - return "AGPBI: {" + - '"kind":"warning",' + - '"text":' + "\"$LOG_TAG The $oldName() dependency handler is deprecated " + - "and will be removed in a future release. Use $newName() instead!\"," + - '"sources":[{},{}]' + - '}' - } - - private static final String JUNITJUPITER_DEPENDENCY_WARNING = dependencyDeprecationWarning("junitJupiter", "junit5") - private static final String JUNITPARAMS_DEPENDENCY_WARNING = dependencyDeprecationWarning("junitParams", "junit5Params") - /** * This method doesn't call through to super.apply(). * This is intentional, and prevents clashing between our Android-specific extension @@ -104,17 +91,6 @@ class AndroidJUnitPlatformPlugin implements Plugin { return project.dependencies.create("org.junit.jupiter:junit-jupiter-params:${jupiterVersion}") } - // Add deprecated dependency handlers - project.dependencies.ext.junitJupiter = { - project.logger.warn(JUNITJUPITER_DEPENDENCY_WARNING) - return project.dependencies.ext.junit5() - } - - project.dependencies.ext.junitParams = { - project.logger.warn(JUNITPARAMS_DEPENDENCY_WARNING) - return project.dependencies.ext.junit5Params() - } - project.afterEvaluate { configure(project) } diff --git a/gradle.properties b/gradle.properties index 0a45c1b2..f63f0ecc 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ android.injected.build.model.only.versioned = 3 # Artifact configuration (common) GROUP_ID = de.mannodermaus.gradle.plugins -VERSION_NAME = 1.0.0-RC3-rev1 +VERSION_NAME = 1.0.0-SNAPSHOT VCS_URL = https://github.com/aurae/android-junit5 # Artifact configuration (plugin) @@ -25,7 +25,7 @@ BINTRAY_PLUGIN_VERSION = 1.7.3 SHADOW_PLUGIN_VERSION = 2.0.1 # Dependency versions -JUNIT_PLATFORM_VERSION = 1.0.0-RC3 +JUNIT_PLATFORM_VERSION = 1.0.0 JUNIT4_VERSION = 4.12 SPOCK_VERSION = 1.0-groovy-2.4