From 53e9d32c6f91ee2734fa9da4f7792bc08e6369c4 Mon Sep 17 00:00:00 2001 From: Santiago Mattiauda Date: Wed, 24 Apr 2024 09:06:00 -0300 Subject: [PATCH] [improvement] publish config --- gradle.properties | 6 +++--- settings.gradle | 1 + watcher/build.gradle.kts | 16 ++++++++-------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/gradle.properties b/gradle.properties index ba55d37..48a726b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -34,6 +34,6 @@ android.defaults.buildfeatures.buildconfig=true android.nonFinalResIds=false # Lib -group_id=io.github.santimattius -artifact_id=deeplink-watcher -lib_version=0.0.1 \ No newline at end of file +group_id=com.github.santimattius +artifact_id=android-deeplink-watcher +lib_version=1.0.0 \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index ceb14ce..7fcb3f1 100644 --- a/settings.gradle +++ b/settings.gradle @@ -3,6 +3,7 @@ pluginManagement { google() mavenCentral() gradlePluginPortal() + maven { url "https://jitpack.io" } } } dependencyResolutionManagement { diff --git a/watcher/build.gradle.kts b/watcher/build.gradle.kts index d79525f..d92ac4b 100644 --- a/watcher/build.gradle.kts +++ b/watcher/build.gradle.kts @@ -48,21 +48,21 @@ android { } } -publishing { - publications { - register("release") { - groupId = extraString("group_id") - artifactId = extraString("artifact_id") - version = extraString("lib_version") - afterEvaluate { +afterEvaluate { + publishing { + publications { + // Creates a Maven publication called "release". + register("release") { from(components["release"]) + groupId = extraString("group_id") + artifactId = extraString("artifact_id") + version = extraString("lib_version") } } } } - dependencies { implementation(kotlin("reflect"))