Skip to content

Commit

Permalink
Merge pull request #17 from kosenda/feature/setting-jitpack
Browse files Browse the repository at this point in the history
JitPack設定
  • Loading branch information
kosenda authored Dec 9, 2023
2 parents de20637 + dd4adfd commit 4dbcb0f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
23 changes: 22 additions & 1 deletion autosizetable/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 All @@ -25,8 +26,28 @@ android {
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidxComposeCompiler.get()
}

publishing {
singleVariant("release") {
withSourcesJar()
}
}
}

dependencies {
implementation(libs.androidx.compose.foundation)
}
}

publishing {
publications {
register<MavenPublication>("release") {
groupId = "ksnd.autosizetable"
artifactId = "autosizetable"
version = libs.versions.autoSizeTable.get()

afterEvaluate {
from(components["release"])
}
}
}
}
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ktlint = "1.0.1"

# I'm using it, so no deletions allowed
androidxComposeCompiler = "1.5.4"
autoSizeTable = "0.0.1"

[libraries]
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activity" }
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ pluginManagement {
google()
mavenCentral()
gradlePluginPortal()
maven { url = uri("https://jitpack.io") }
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}

Expand Down

0 comments on commit 4dbcb0f

Please sign in to comment.