-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump kotlin and ksp to 1.7.20 * clean up publishing configuration and docs * update to kotlin 1.8.10 * Prepare for release 6.2.1 * remove MaxPermSize * Prepare next development version. * Fix wording
- Loading branch information
Showing
12 changed files
with
97 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,31 @@ | ||
Releasing | ||
Publishing a new Main release to Maven | ||
======== | ||
|
||
1. Change the version in `gradle.properties` to a non-SNAPSHOT version. | ||
4. `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new version) | ||
5. `git tag -a X.Y.X -m "Version X.Y.Z"` (where X.Y.Z is the new version) | ||
6. `./gradlew clean assemble sourcesJar androidSourcesJar javadocsJar androidJavadocsJar uploadArchives --no-daemon --no-parallel` | ||
7. Update the `gradle.properties` to the next SNAPSHOT version. | ||
8. `git commit -am "Prepare next development version."` | ||
9. `git push && git push --tags` | ||
10. Visit [Sonatype Nexus](https://oss.sonatype.org/) and promote the artifact. | ||
11. Go to https://github.com/airbnb/DeepLinkDispatch/releases and create the release (via pushed tag) | ||
1. Change the version in `gradle.properties` to a non-SNAPSHOT version based on Major.Minor.Patch naming scheme | ||
2. `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new version) | ||
3. `git tag -a X.Y.X -m "Version X.Y.Z"` (where X.Y.Z is the new version) | ||
4. Add your sonatype login information under gradle properties mavenCentralUsername and mavenCentralPassword in your local user gradle.properties file | ||
5. Make sure you have a gpg signing key configured (https://vanniktech.github.io/gradle-maven-publish-plugin/central/#secrets) | ||
6. Run `./gradlew publishAllPublicationsToMavenCentral` to build the artifacts and publish them to maven | ||
7. Update the `gradle.properties` to the next SNAPSHOT version. | ||
8. `git commit -am "Prepare next development version."` | ||
9. `git push && git push --tags` | ||
10. Merge to master and create a new release through the Github web UI with release notes | ||
|
||
Publishing a release to an internal repository | ||
======== | ||
|
||
To publish an internal release to an Artifactory repository: | ||
|
||
1. Set credential values for ARTIFACTORY_USERNAME and ARTIFACTORY_PASSWORD in your local gradle.properties | ||
2. Set values for ARTIFACTORY_RELEASE_URL (and optionally ARTIFACTORY_SNAPSHOT_URL if you are publishing a snapshot) | ||
3. /gradlew publishAllPublicationsToAirbnbArtifactoryRepository -PdoNotSignRelease=true | ||
4. "-PdoNotSignRelease=true" is optional, but we don't need to sign artifactory releases and this allows everyone to publish without setting up a gpg key | ||
|
||
If you need to publish to a different repository, look at the configuration in 'publishing.gradle' | ||
to see how to configure additional repositories. | ||
|
||
Maven Local Installation | ||
======================= | ||
|
||
If testing changes locally, you can install to mavenLocal via `./gradlew publishToMavenLocal` |
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
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
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
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,29 @@ | ||
// Sets up publishing of release artifacts. | ||
// Note: Keep this script in sync across all airbnb open source projects. | ||
apply plugin: 'com.vanniktech.maven.publish' | ||
|
||
|
||
// https://vanniktech.github.io/gradle-maven-publish-plugin/other/ | ||
publishing { | ||
repositories { | ||
maven { | ||
// The "name" value creates a task like `publishAllPublicationsTo[Name]Repository | ||
// In this case, publishAllPublicationsToAirbnbArtifactoryRepository | ||
name = 'airbnbArtifactory' | ||
url = version.toString().endsWith("SNAPSHOT") ? findProperty("ARTIFACTORY_SNAPSHOT_URL") : findProperty("ARTIFACTORY_RELEASE_URL") | ||
credentials { | ||
username = getProperty("ARTIFACTORY_USERNAME") | ||
password = getProperty("ARTIFACTORY_PASSWORD") | ||
} | ||
} | ||
} | ||
} | ||
|
||
mavenPublishing { | ||
if (findProperty("doNotSignRelease").toString().toBoolean()) { | ||
println("Skipping release signing") | ||
} else { | ||
println("Signing release with gpg") | ||
signAllPublications() | ||
} | ||
} |