Skip to content

Commit

Permalink
chore: plublish to wire-maven (#6)
Browse files Browse the repository at this point in the history
* chore: plublish to wire-maven

* docs: add publishing instructions
  • Loading branch information
tmspzz committed Mar 10, 2022
1 parent af9c5be commit fa6889e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions README.md
Expand Up @@ -29,3 +29,23 @@ ios() {
```
4. The dependency will be exposed as `carthage.AFNetworking` by default.

## Publishing to [wire-maven](https://github.com/wireapp/wire-maven)

To publish the plugin for internal consumption (e.g. in [kalium](https://github.com/wireapp/wire-maven)),
checkout [wire-maven](https://github.com/wireapp/wire-maven) side by side with this repository:

```
.
├─ carthage-gradle-pluging/
├─ wire-maven/
```

then:

- create a new branch in wire-maven with pattern `chore/carthage-gradle-plugin/vX.Y.Z`
- run the `publish` task in `carthage-gradle-plugin` to generate the plugin's `.jar`
- commit with message following the pattern `chore: add carthage-gradle-plugin vX.Y.Z`
- create a pull request in wire-maven

Once the resulting pull request is merged in wire-maven a new version will be avalable for consumption.
4 changes: 2 additions & 2 deletions build.gradle.kts
Expand Up @@ -48,7 +48,7 @@ gradlePlugin {
object PluginCoordinates {

const val GROUP = "com.wire"
const val ARTIFACT = "carthage-plugin"
const val ARTIFACT = "carthage-gradle-plugin"
const val VERSION = "0.0.1"

const val ID = "$GROUP.$ARTIFACT"
Expand All @@ -58,7 +58,7 @@ object PluginCoordinates {
publishing {
repositories {
maven {
url = uri("../local-maven/")
url = uri("../wire-maven/releases")
}
}
}

0 comments on commit fa6889e

Please sign in to comment.