-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aaf26d0
commit 05c3087
Showing
5 changed files
with
96 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'signing' | ||
|
||
ext { | ||
GROUP_ID = "io.github.pseudoankit" | ||
VERSION = (System.getenv("RELEASE_TAG_NAME") ?: "SNAPSHOT").replace("v", "") | ||
|
||
SITE_URL = 'https://github.com/pseudoankit/ratingbar-compose' | ||
GIT_URL = 'https://github.com/pseudoankit/ratingbar-compose.git' | ||
|
||
POM_DESCRIPTION = "Compose library to add rating bar" | ||
POM_URL = SITE_URL | ||
} | ||
|
||
signing { | ||
useInMemoryPgpKeys( | ||
System.getenv("OSS_SIGNING_KEY_ID"), | ||
System.getenv("OSS_SIGNING_KEY"), | ||
System.getenv("OSS_SIGNING_PASSWORD"), | ||
) | ||
sign publishing.publications | ||
} | ||
|
||
// If you want to publish your sources as well | ||
task androidSourcesJar(type: Jar) { | ||
archiveClassifier.set('sources') | ||
from android.sourceSets.main.java.srcDirs | ||
from android.sourceSets.main.kotlin.srcDirs | ||
} | ||
|
||
artifacts { | ||
archives androidSourcesJar | ||
} | ||
|
||
afterEvaluate { | ||
publishing { | ||
publications { | ||
release(MavenPublication) { | ||
|
||
groupId GROUP_ID | ||
artifactId ARTIFACT_ID | ||
version VERSION | ||
|
||
from components.release | ||
artifact androidSourcesJar | ||
|
||
pom { | ||
name = ARTIFACT_ID | ||
description = POM_DESCRIPTION | ||
url = POM_URL | ||
licenses { | ||
license { | ||
name = "The Apache Software License, Version 2.0" | ||
url = "https://www.apache.org/licenses/LICENSE-2.0.txt" | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id = 'pseudoankit' | ||
name = 'Ankit Kumar' | ||
email = '[email protected]' | ||
} | ||
} | ||
|
||
scm { | ||
connection = GIT_URL | ||
developerConnection = GIT_URL | ||
url = SITE_URL | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters