Skip to content

Commit

Permalink
updated publication gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
lumstep committed Jan 25, 2024
1 parent 972e456 commit fc0ac5b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ android {
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
buildFeatures {
compose = true
Expand All @@ -52,7 +52,7 @@ dependencies {
implementation("androidx.core:core-ktx:1.12.0")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0")
implementation("androidx.activity:activity-compose:1.8.2")
implementation(platform("androidx.compose:compose-bom:2023.10.01"))
implementation(platform("androidx.compose:compose-bom:2024.01.00"))
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.ui:ui-graphics")
implementation("androidx.compose.ui:ui-tooling-preview")
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "8.2.1" apply false
id("com.android.application") version "8.2.2" apply false
id("org.jetbrains.kotlin.android") version "1.9.22" apply false
}
29 changes: 16 additions & 13 deletions flashlighter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,28 @@ android {
}
}

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
create<MavenPublication>("release") {
// Applies the component for the release build variant.
from(components["release"])
publishing {
publications {
// Creates a Maven publication called "release".
create<MavenPublication>("release") {
// You can then customize attributes of the publication as shown below.
groupId = "com.lumstep"
artifactId = "flashlighter"
version = "1.0.0"
artifact("${layout.projectDirectory}/build/outputs/aar/flashlighter-release.aar")
}
}

// You can then customize attributes of the publication as shown below.
groupId = "com.lumstep"
artifactId = "flashlighter"
version = "1.0.0"
}
repositories {
maven {
name = "GithubPackages"
url = uri("https://maven.pkg.github.com/lumstep/flashlighter")
}
}
}

dependencies {
implementation(platform("androidx.compose:compose-bom:2023.10.01"))
implementation(platform("androidx.compose:compose-bom:2024.01.00"))
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.ui:ui-graphics")
implementation("androidx.compose.foundation:foundation")
Expand Down

0 comments on commit fc0ac5b

Please sign in to comment.