Skip to content

Commit

Permalink
🔨 Prepare for jitpack io publish
Browse files Browse the repository at this point in the history
  • Loading branch information
fahimfarhan committed Jan 21, 2025
1 parent a97c5d1 commit 2dacd6b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
14 changes: 14 additions & 0 deletions InkPageIndicator/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
id("maven-publish")
}

android {
Expand Down Expand Up @@ -32,6 +33,19 @@ android {
}
}

publishing {
publications {
create<MavenPublication>("release") {
afterEvaluate { // Ensures the Android component is properly evaluated
from(components["release"])
}
groupId = "com.github.sharetrip" // Replace with your group ID
artifactId = "InkPageIndicator" // Replace with your artifact ID
version = "v0.0.4" // Replace with your version
}
}
}

dependencies {

implementation(libs.androidx.core.ktx)
Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.nonTransitiveRClass=true
org.gradle.configuration-cache=true
org.gradle.caching=true
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Oct 07 11:01:28 BDT 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
5 changes: 5 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
jdk:
- openjdk17
before_install:
- sdk install java 21.0.2-open
- sdk use java 21.0.2-open

0 comments on commit 2dacd6b

Please sign in to comment.