Skip to content

Commit

Permalink
Chore : JitPack Setting
Browse files Browse the repository at this point in the history
  • Loading branch information
DongChyeon committed Dec 18, 2024
1 parent 8cd47df commit 2ee0550
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ android {
}
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
Expand All @@ -51,6 +52,7 @@ android {

dependencies {
implementation(project(":calendar"))
coreLibraryDesugaring(libs.desugar.jdk.libs)

implementation(libs.androidx.core.ktx)
implementation(libs.androidx.lifecycle.runtime.ktx)
Expand Down
18 changes: 18 additions & 0 deletions calendar/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.jetbrains.kotlin.android)
`maven-publish`
}

android {
Expand Down Expand Up @@ -60,4 +61,21 @@ dependencies {
androidTestImplementation(libs.androidx.ui.test.junit4)
debugImplementation(libs.androidx.ui.tooling)
debugImplementation(libs.androidx.ui.test.manifest)
}

afterEvaluate {
publishing {
publications {
register<MavenPublication>("release") {
groupId = "com.github.DongChyeon"
artifactId = "PhotoCalendar"
version = "1.0.0"

pom {
name.set("PhotoCalendar")
description.set("This project features a customizable Jetpack Compose calendar that allows you to add background images to specific days.")
}
}
}
}
}
1 change: 0 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@ desugar-jdk-libs = { group = "com.android.tools", name = "desugar_jdk_libs", ver
android-application = { id = "com.android.application", version.ref = "agp" }
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
android-library = { id = "com.android.library", version.ref = "agp" }

2 changes: 2 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jdk:
- openjdk17

0 comments on commit 2ee0550

Please sign in to comment.