Update gradle to 27.0 infrastructure
Test: ./gradlew createArchive
Change-Id: Ibef7130e5b5f419642ee90ebfbc99b951356691f
diff --git a/buildSrc/src/main/java/android/support/LibraryVersions.java b/buildSrc/src/main/java/android/support/LibraryVersions.java
index c994f6e..1a206c1 100644
--- a/buildSrc/src/main/java/android/support/LibraryVersions.java
+++ b/buildSrc/src/main/java/android/support/LibraryVersions.java
@@ -69,4 +69,9 @@
* Version code for shared testing code of flatfoot
*/
public static final Version ARCH_CORE_TESTING = FLATFOOT_1_0_BATCH;
+
+ /**
+ * Version code for Navigation
+ */
+ public static final Version NAVIGATION = new Version("0.5.0-alpha1");
}
diff --git a/navigation/runtime/build.gradle b/navigation/runtime/build.gradle
index 8554111..77e25cf 100644
--- a/navigation/runtime/build.gradle
+++ b/navigation/runtime/build.gradle
@@ -13,8 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-apply plugin: 'com.android.library'
-apply plugin: 'maven'
+
+import android.support.LibraryVersions
+import android.support.SupportLibraryExtension
+
+apply plugin: android.support.FlatfootAndroidLibraryPlugin
android {
compileSdkVersion tools.current_sdk
@@ -65,7 +68,6 @@
}
createAndroidCheckstyle(project)
-version = "0.5.0-alpha1"
android.libraryVariants.all { variant ->
def name = variant.buildType.name
@@ -76,3 +78,12 @@
destinationDir new File(project.buildDir, "libJar")
}
}
+
+version = LibraryVersions.NAVIGATION.toString()
+supportLibrary {
+ name 'Android Navigation Runtime'
+ publish true
+ inceptionYear '2017'
+ description "Android Navigation-Runtime"
+ url SupportLibraryExtension.ARCHITECTURE_URL
+}
\ No newline at end of file