From 483b6c685f3fe84f47887b0b1cb6b25bb64b4a76 Mon Sep 17 00:00:00 2001 From: Vishal Gupta Date: Thu, 25 Jul 2024 22:17:25 +0530 Subject: [PATCH] add publish plugin and details --- README.md | 13 ++++++++++--- compose-game/build.gradle | 15 +++++++++++++++ jitpack.yml | 4 ++++ 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 jitpack.yml diff --git a/README.md b/README.md index 279cda7..adfb9b4 100644 --- a/README.md +++ b/README.md @@ -14,11 +14,18 @@ Feel free to experiment and add your own features. ## Installation -Add the dependency to your `build.gradle.kts` file: +Add the jitpack repository to your root gradle file and the dependency to your `build.gradle` file: + +```groovy +allprojects { + repositories { + ... + maven { url "https://jitpack.io" } + } +} -```kotlin dependencies { - implementation("io.github.vgupta98:compose_game:1.0.0") + implementation 'io.github.vgupta98.compose-game:compose-game:1.0.0' } ``` diff --git a/compose-game/build.gradle b/compose-game/build.gradle index 02d81f8..1fa98d0 100644 --- a/compose-game/build.gradle +++ b/compose-game/build.gradle @@ -1,6 +1,7 @@ plugins { alias(libs.plugins.android.library) alias(libs.plugins.jetbrains.kotlin.android) + id 'maven-publish' } android { @@ -49,4 +50,18 @@ dependencies { testImplementation libs.junit androidTestImplementation libs.androidx.junit androidTestImplementation libs.androidx.espresso.core +} + +afterEvaluate { + publishing { + publications { + maven(MavenPublication) { + from components.release + + groupId = 'io.github.vgupta98.compose-game' + artifactId = 'compose-game' + version = '1.0.0' + } + } + } } \ No newline at end of file diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 0000000..bcf1f6f --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,4 @@ +jdk: + - openjdk17 +before_install: + - ./scripts/prepareJitpackEnvironment.sh \ No newline at end of file