Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-megh-l committed Oct 26, 2023
1 parent 749b757 commit 49bd496
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 11
java-version: 17

- name: Publish to MavenCentral
run: ./gradlew showcase:publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
run: ./gradlew bottombar:publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
Expand Down
5 changes: 3 additions & 2 deletions bottombar/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ plugins {
}

ext {
set("PUBLISH_GROUP_ID", "com.canopas.AnimatedBottomBarCompose")
set("PUBLISH_ARTIFACT_ID", "animatedbottombarcompose")
set("PUBLISH_GROUP_ID", "io.github.canopas")
set("PUBLISH_ARTIFACT_ID", "bottombar")
}

apply{
Expand Down Expand Up @@ -57,6 +57,7 @@ android {
publishing {
singleVariant("release") {
withJavadocJar()
withSourcesJar()
}
}
}
Expand Down
16 changes: 1 addition & 15 deletions scripts/publish-module.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
apply plugin: 'maven-publish'
apply plugin: 'signing'

tasks.register('androidSourcesJar', Jar) {
archiveClassifier.set('sources')
if (project.plugins.findPlugin("com.android.library")) {
from android.sourceSets.main.java.srcDirs
} else {
from sourceSets.main.java.srcDirs
}
}

artifacts {
archives androidSourcesJar
}
group = PUBLISH_GROUP_ID
version = rootProject.ext["publish_version"]

Expand All @@ -33,8 +21,6 @@ afterEvaluate {
artifact("$buildDir/libs/${project.getName()}-${version}.jar")
}

artifact androidSourcesJar

// Mostly self-explanatory metadata
pom {
name = PUBLISH_ARTIFACT_ID
Expand All @@ -58,7 +44,7 @@ afterEvaluate {
scm {
connection = 'scm:git:github.com/canopas/AnimatedBottomBarCompose.git'
developerConnection = 'scm:git:ssh://github.com/canopas/AnimatedBottomBarCompose.git'
url = 'https://github.com/canopas/AnimatedBottomBarCompose.git'
url = 'https://github.com/canopas/AnimatedBottomBarCompose'
}
}
}
Expand Down

0 comments on commit 49bd496

Please sign in to comment.