From b03d250d1dab78b387ef68d655aa46f4f447191b Mon Sep 17 00:00:00 2001 From: Sarath S Date: Sun, 12 Sep 2021 16:06:14 +0530 Subject: [PATCH] Up to v1.0.1 for publish --- AppUpdateChecker/build.gradle | 26 ++++++++++++++++++++++---- build.gradle | 1 + 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/AppUpdateChecker/build.gradle b/AppUpdateChecker/build.gradle index 9cba04e..c8675e3 100644 --- a/AppUpdateChecker/build.gradle +++ b/AppUpdateChecker/build.gradle @@ -3,8 +3,12 @@ plugins { id 'kotlin-android' id 'kotlin-kapt' id 'org.jlleitschuh.gradle.ktlint' + id 'maven-publish' } +group = 'com.github.sharkaboi' +version = '1.0.1' + repositories { google() mavenCentral() @@ -20,7 +24,7 @@ android { minSdkVersion 21 targetSdkVersion 31 versionCode 1 - versionName "1.0.0" + versionName "1.0.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" } @@ -33,12 +37,12 @@ android { } compileOptions { - sourceCompatibility JavaVersion.VERSION_11 - targetCompatibility JavaVersion.VERSION_11 + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { - jvmTarget = "11" + jvmTarget = "1.8" } } @@ -58,4 +62,18 @@ dependencies { ktlint { disabledRules.set(["no-wildcard-imports"]) +} + +afterEvaluate { + publishing { + publications { + // Creates a Maven publication called "release". + release(MavenPublication) { + from components.release + groupId = 'com.github.sharkaboi' + artifactId = 'AppUpdateChecker' + version = '1.0.1' + } + } + } } \ No newline at end of file diff --git a/build.gradle b/build.gradle index 152cb3a..6e00895 100644 --- a/build.gradle +++ b/build.gradle @@ -35,6 +35,7 @@ allprojects { maven { url "https://plugins.gradle.org/m2/" } + maven { url "https://jitpack.io" } } }