Skip to content

Commit

Permalink
implement publishing in tools gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyahenson committed Feb 13, 2024
1 parent a47adb4 commit d00c4a5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ allprojects {
}
}
dependencies {
implementation 'com.github.joypixels:emoji-toolkit-android:v8.0.11'
implementation 'com.github.joypixels:emoji-toolkit-android:v8.0.12'
}
```
and in your manifest add:
Expand Down
18 changes: 18 additions & 0 deletions tools/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,24 @@ android {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
publishing {
singleVariant("release") {
withSourcesJar()
}
}
}
publishing {
publications {
register<MavenPublication>("release") {
groupId = "com.joypixels"
artifactId = "emoji-toolkit-android"
version = "8.0.12"

afterEvaluate {
from(components["release"])
}
}
}
}

dependencies {
Expand Down

0 comments on commit d00c4a5

Please sign in to comment.