Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,28 +186,27 @@ jobs:
**Gradle:**
```kotlin
implementation("org.automerge:automerge:${{ needs.validate.outputs.version }}")
```

**Maven:**
```xml
<dependency>
<groupId>org.automerge</groupId>
<artifactId>automerge</artifactId>
<version>${{ needs.validate.outputs.version }}</version>
</dependency>
implementation("org.automerge:automerge-websocket:${{ needs.validate.outputs.version }}")
implementation("org.automerge:automerge-kotlin:${{ needs.validate.outputs.version }}")
// Android (AAR with bundled native libs)
implementation("org.automerge:androidnative:${{ needs.validate.outputs.version }}")
```

## Verification

Artifacts will be available on Maven Central within 10-30 minutes:
- JAR: https://repo1.maven.org/maven2/org/automerge/automerge/${{ needs.validate.outputs.version }}/
- AAR: https://repo1.maven.org/maven2/org/automerge/androidnative/${{ needs.validate.outputs.version }}/
- JAR (core): https://repo1.maven.org/maven2/org/automerge/automerge/${{ needs.validate.outputs.version }}/
- JAR (websocket): https://repo1.maven.org/maven2/org/automerge/automerge-websocket/${{ needs.validate.outputs.version }}/
- JAR (kotlin): https://repo1.maven.org/maven2/org/automerge/automerge-kotlin/${{ needs.validate.outputs.version }}/
- AAR (android): https://repo1.maven.org/maven2/org/automerge/androidnative/${{ needs.validate.outputs.version }}/

## Changes

See [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md) for details.
files: |
lib/build/libs/automerge-*.jar
websocket/build/libs/automerge-websocket-*.jar
automerge-kotlin/build/libs/automerge-kotlin-*.jar
android/build/outputs/aar/android-release.aar
draft: false
prerelease: false
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
## 0.0.9

### Added

* `org.automerge.repo` - an implementation of the `automerge-repo` patterns from
the JavaScript world. This makes it easy to wire up networking and storage to
a reactive view of a document.
* `automerge-websocket` - a package which implements a websocket transport for
`org.automerge.repo`. This is wire compatible with the JavaScript implementation
and so can be used to interoperate with web clients talking to JS sync servers
or run Java sync servers talking to web clients
* `automerge-kotlin` - a small library of convenience functions for use when
working with `org.automerge.repo` from kotlin
* SLF4j integration

### Changed

* Updated to the `0.0.8` version of the Rust library

## 0.0.8

* Update the rust `automerge` library to `0.7.1`. This dramatically improves
Expand Down
2 changes: 1 addition & 1 deletion android-test-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id("com.android.application") version "8.13.0"
}

var projectVersion = "0.0.8"
val projectVersion = version.toString()

android {
namespace = "org.automerge.testapp"
Expand Down
27 changes: 26 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,34 @@ fun readCargoVersion(): String {

val cargoVersion = readCargoVersion()

tasks.register("verifyVersionConsistency") {
description = "Verifies the project version matches -PexpectedVersion=X.Y.Z (used by the release workflow)."
group = "verification"

doLast {
val actual = subprojects.first().version.toString()
if (actual == "unspecified") {
throw GradleException("Version not set in subprojects { } block")
}
val expected = project.findProperty("expectedVersion")?.toString()
if (expected != null && expected != actual) {
throw GradleException(
"""
Version mismatch!
build.gradle.kts: $actual
Expected (from tag): $expected

Update `version` in the root build.gradle.kts `subprojects { }` block to $expected.
""".trimIndent()
)
}
println("Version verified: $actual" + if (expected != null) " matches expected $expected" else "")
}
}

subprojects {
group = "org.automerge"
version = "0.0.8"
version = "0.0.9"

ext.set("cargoVersion", cargoVersion)
ext.set("libVersionSuffix", cargoVersion.replace(".", "_"))
Expand Down
2 changes: 2 additions & 0 deletions websocket/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ plugins {
id("com.diffplug.spotless")
}

base.archivesName.set("automerge-websocket")

java {
withJavadocJar()
withSourcesJar()
Expand Down
Loading