From 3fffb531227bc5090ea71a4309e453d447b67f42 Mon Sep 17 00:00:00 2001 From: Moslem Khanbeiki Date: Sat, 30 Nov 2024 16:07:28 +0330 Subject: [PATCH] sync to jitpack --- hamrahads/build.gradle.kts | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/hamrahads/build.gradle.kts b/hamrahads/build.gradle.kts index 0fff48b..81234b8 100644 --- a/hamrahads/build.gradle.kts +++ b/hamrahads/build.gradle.kts @@ -4,6 +4,7 @@ plugins { alias(libs.plugins.kotlin.parcelize) alias(libs.plugins.kotlin.kapt.plugin) alias(libs.plugins.kotlin.serialization.plugin) + id("maven-publish") } android { @@ -27,11 +28,23 @@ android { } } compileOptions { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 } kotlinOptions { - jvmTarget = "1.8" + jvmTarget = "11" + } +} +afterEvaluate { + publishing { + publications { + create("release") { + from(components["release"]) + groupId = "com.github.ayantech" + artifactId = "AyanAds" + version = "0.1.5" + } + } } }