-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump version to 0.1.0 official. * Create CHANGELOG.md * Create RELEASING.md * Update build scripts for `maven-publish` and `signing` * Update README.md for separate runtime/generator usage.
- Loading branch information
1 parent
06a2221
commit 296c05a
Showing
9 changed files
with
207 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [0.1.0] - 2022-12-05 | ||
|
||
Initial Release |
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,44 @@ | ||
# Releasing | ||
|
||
1. Update `version` in `gradle.properties` to the release version. | ||
|
||
2. Update the `CHANGELOG.md`. | ||
|
||
3. Update the `README.md` to reflect the new release version number. | ||
|
||
4. Commit | ||
|
||
``` | ||
$ git commit -am "Prepare version X.Y.Z" | ||
``` | ||
|
||
5. Tag | ||
|
||
``` | ||
$ git tag -am "Version X.Y.Z" X.Y.Z | ||
``` | ||
|
||
6. Push! | ||
|
||
``` | ||
$ git push && git push --tags | ||
``` | ||
|
||
7. Build (generator) | ||
|
||
``` | ||
$ ./gradlew build | ||
``` | ||
|
||
8. Create GitHub Release | ||
1. Visit the [New Releases](https://github.com/collectiveidea/twirp-kmm/releases/new) page. | ||
2. Supply release version and changelog | ||
3. Upload `generator/build/libs/twirp-kmm-generator-X.Y.Z.jar` artifact. | ||
|
||
9. Publish (runtime) | ||
|
||
``` | ||
$ ./gradlew publish | ||
``` | ||
|
||
10. Visit [Sonatype Nexus](https://s01.oss.sonatype.org) and promote the artifact. |
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,7 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} |
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,37 @@ | ||
import org.gradle.api.publish.maven.MavenPublication | ||
|
||
fun MavenPublication.configureTwirpKmmPOM(pomDescription: String) { | ||
val pomName = artifactId | ||
|
||
pom { | ||
name.set(pomName) | ||
description.set(pomDescription) | ||
|
||
licenses { | ||
license { | ||
name.set("MIT") | ||
url.set("https://opensource.org/licenses/MIT") | ||
} | ||
} | ||
|
||
url.set("https://github.com/collectiveidea/twirp-kmm") | ||
|
||
issueManagement { | ||
system.set("Github") | ||
url.set("https://github.com/collectiveidea/twirp-kmm/issues") | ||
} | ||
|
||
scm { | ||
connection.set("https://github.com/collectiveidea/twirp-kmm.git") | ||
url.set("https://github.com/collectiveidea/twirp-kmm") | ||
} | ||
|
||
developers { | ||
developer { | ||
id.set("collectiveidea") | ||
name.set("Collective Idea") | ||
url.set("https://github.com/collectiveidea") | ||
} | ||
} | ||
} | ||
} |
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