diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 6db33b0..4df075c 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -6,7 +6,7 @@ - + diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 1deeffc..eaacd50 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -47,6 +47,12 @@ android { excludes += "/META-INF/{AL2.0,LGPL2.1}" } } + publishing { + singleVariant("release") { + withSourcesJar() + withJavadocJar() + } + } } dependencies { @@ -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") diff --git a/jitpack.yml b/jitpack.yml index 6b6fc7d..1e41e00 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -1,2 +1,2 @@ jdk: - -openjdk11 \ No newline at end of file + - openjdk17 \ No newline at end of file diff --git a/toast/build.gradle b/toast/build.gradle index e56c122..4d13b12 100644 --- a/toast/build.gradle +++ b/toast/build.gradle @@ -28,6 +28,13 @@ android { kotlinOptions { jvmTarget = '1.8' } + publishing { + singleVariant("release") { + withSourcesJar() + withJavadocJar() + } + } + } dependencies { @@ -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 } } } } +