Skip to content

Commit

Permalink
add publish plugin and details
Browse files Browse the repository at this point in the history
  • Loading branch information
vgupta98 committed Jul 25, 2024
1 parent 134db24 commit 483b6c6
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
```

Expand Down
15 changes: 15 additions & 0 deletions compose-game/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.jetbrains.kotlin.android)
id 'maven-publish'
}

android {
Expand Down Expand Up @@ -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'
}
}
}
}
4 changes: 4 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
jdk:
- openjdk17
before_install:
- ./scripts/prepareJitpackEnvironment.sh

0 comments on commit 483b6c6

Please sign in to comment.