Skip to content

Commit

Permalink
Up to v1.0.1 for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharkaboi committed Sep 12, 2021
1 parent 333957f commit b03d250
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
26 changes: 22 additions & 4 deletions AppUpdateChecker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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"
}
Expand All @@ -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"
}
}

Expand All @@ -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'
}
}
}
}
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ allprojects {
maven {
url "https://plugins.gradle.org/m2/"
}
maven { url "https://jitpack.io" }
}
}

Expand Down

0 comments on commit b03d250

Please sign in to comment.