Skip to content

Commit

Permalink
fix publication bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasily Horodetskyi committed Jun 11, 2024
1 parent f811bd2 commit b700824
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .idea/gradle.xml

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

6 changes: 6 additions & 0 deletions .idea/vcs.xml

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

6 changes: 3 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ android {
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
}
buildFeatures {
compose = true
Expand Down
36 changes: 33 additions & 3 deletions familyrootview/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
alias(libs.plugins.androidLibrary)
alias(libs.plugins.jetbrainsKotlinAndroid)
id("maven-publish")
}

android {
Expand All @@ -24,11 +25,11 @@ android {
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
}

composeOptions {
Expand All @@ -38,6 +39,35 @@ android {
buildFeatures {
compose = true
}

publishing {
multipleVariants {
allVariants()
withJavadocJar()
withSourcesJar()
}
}
}

afterEvaluate {
publishing {
publications {
create<MavenPublication>("mavenRelease") {
groupId = "com.github.maestrovsmaster"
artifactId = "FamilyRootView"
version = "1.0"

from(components["release"])
}
/*create<MavenPublication>("mavenDebug") {
groupId = "com.jetwidgets"
artifactId = "jetwidgets"
version = "1.0"
from(components["debug"])
}*/
}
}
}

dependencies {
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ dependencyResolutionManagement {
rootProject.name = "FamilyRootView"
include(":app")
include(":familyrootview")


0 comments on commit b700824

Please sign in to comment.