Skip to content

Commit

Permalink
toast build gradle change
Browse files Browse the repository at this point in the history
  • Loading branch information
manikandanvgts committed Oct 12, 2023
1 parent 4dd21bb commit 347c005
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .idea/gradle.xml

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

7 changes: 7 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ android {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
publishing {
singleVariant("release") {
withSourcesJar()
withJavadocJar()
}
}
}

dependencies {
Expand All @@ -59,6 +65,7 @@ dependencies {
implementation("androidx.compose.ui:ui-graphics")
implementation("androidx.compose.ui:ui-tooling-preview")
implementation("androidx.compose.material3:material3")
implementation(project(mapOf("path" to ":toast")))
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
Expand Down
2 changes: 1 addition & 1 deletion jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
jdk:
-openjdk11
- openjdk17
24 changes: 16 additions & 8 deletions toast/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
publishing {
singleVariant("release") {
withSourcesJar()
withJavadocJar()
}
}

}

dependencies {
Expand All @@ -40,16 +47,17 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}

afterEvaluate {
publishing {
publications{
maven(MavenPublication){
from components.release
publishing {
publications {
release(MavenPublication) {
groupId = 'com.github.manikandanvgts'
artifactId = 'sampleandoridpulgin'
version = '1.0.4'

groupId = 'com.github.manikandanvgts'
artifactId = 'sampleandoridpulgin'
version '1.0.3'
afterEvaluate {
from components.release
}
}
}
}

0 comments on commit 347c005

Please sign in to comment.