Skip to content

Commit

Permalink
add jitpack settings
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Jul 26, 2023
1 parent 4837474 commit 680049e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
jdk:
- openjdk11
install:
- ./gradlew :tkey:build :tkey:publishToMavenLocal
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pluginManagement {
gradlePluginPortal()
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
}

Expand All @@ -11,6 +12,7 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
}
rootProject.name = "tkey-android-distribution"
Expand Down
11 changes: 10 additions & 1 deletion tkey/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'com.android.library'
id 'maven-publish'
}

apply plugin: 'jacoco'
Expand All @@ -12,7 +13,7 @@ android {
compileSdk 33

defaultConfig {
minSdk 21
minSdk 24
targetSdk 33
versionCode 1
versionName "1.0"
Expand Down Expand Up @@ -79,4 +80,12 @@ afterEvaluate {
javadoc.classpath += files(android.libraryVariants.collect { variant ->
variant.javaCompileProvider.get().classpath.files
})

publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}

0 comments on commit 680049e

Please sign in to comment.