From bf99cb36c658a6477f85afcde4107dfe68471d1f Mon Sep 17 00:00:00 2001 From: "SHAHBAZ-DEV\\Admin" Date: Wed, 29 Nov 2023 23:37:14 +0500 Subject: [PATCH] Changing --- .idea/misc.xml | 1 - app/build.gradle.kts | 8 +++++--- inspirationlibrary/build.gradle.kts | 21 +++++++++++++++++++-- settings.gradle.kts | 1 + 4 files changed, 25 insertions(+), 6 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 40c82cb..3b798c2 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 64c93d1..f819332 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -1,6 +1,7 @@ plugins { id("com.android.application") id("org.jetbrains.kotlin.android") + } android { @@ -30,11 +31,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 @@ -66,4 +67,5 @@ dependencies { androidTestImplementation("androidx.compose.ui:ui-test-junit4") debugImplementation("androidx.compose.ui:ui-tooling") debugImplementation("androidx.compose.ui:ui-test-manifest") + } \ No newline at end of file diff --git a/inspirationlibrary/build.gradle.kts b/inspirationlibrary/build.gradle.kts index f618c76..0764685 100644 --- a/inspirationlibrary/build.gradle.kts +++ b/inspirationlibrary/build.gradle.kts @@ -7,7 +7,7 @@ plugins { id("com.gradle.plugin-publish") version "1.1.0" } -extra["PUBLISH_GROUP_ID"] = "io.github.shahbaz213" +extra["PUBLISH_GROUP_ID"] = "com.github.shahbaz213" extra["PUBLISH_VERSION"] = "1.0" extra["PUBLISH_ARTIFACT_ID"] = "inspirationlibrary" extra["PUBLISH_DESCRIPTION"] = "An android gradle plugin for localization" @@ -37,7 +37,7 @@ gradlePlugin { vcsUrl.set(extra["PUBLISH_URL"] as String) plugins { create("InspirationAppPlugin") { - id = "io.github.shahbaz213.inspirationlibrary" + id = "com.github.shahbaz213.inspirationlibrary" implementationClass = "com.app.inspirationlibrary.plugin.inspirationlibrary" displayName = "LokaleNow Android Plugin" description = "Android gradle plugin for app's localization" @@ -45,6 +45,23 @@ gradlePlugin { } } } + +//afterEvaluate { +// publishing { +// publications { +// // Creates a Maven publication called "release". +// create("release") { +// // Applies the component for the release build variant. +// from(components["release"]) +// // You can then customize attributes of the publication as shown below. +// groupId = "com.github.shahbaz213" +// artifactId = "inspirationlibrary" +// version = "1.0" +// } +// } +// } +//} + dependencies { implementation("com.android.tools.build:gradle:7.4.0-rc03") diff --git a/settings.gradle.kts b/settings.gradle.kts index 092703a..357a885 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -11,6 +11,7 @@ dependencyResolutionManagement { google() mavenCentral() mavenLocal() + gradlePluginPortal() } }