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
224 changes: 0 additions & 224 deletions .github/workflows/release.yml

This file was deleted.

13 changes: 0 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,8 @@ file [H3Core.java](./src/main/java/com/uber/h3core/H3Core.java), and support
for the Linux x64 and Darwin x64 platforms.

## Unreleased Changes
## Added
- `polygonToCellsExperimental` functions from H3 v4.2.0. (#163)
- `gridRing` function from H3 v4.3.0. (#169)

## Fixed
- Corrected order of `polygonToCellsExperimental` arguments. (#166)
- Fixed build on ARM Linux. (#162)

## Changed
- Converted build system to Gradle and automated deploys. Added separate build steps for mac OS on M1 (ARM) and x64. (#167, #168)
- Upgraded the core library to v4.2.1. (#165)

## [4.1.2] - 2024-11-01
Note: This release is not available in Maven Central.

## Fixed
- Fixed a memory leak in `polygonToCells` and optimize JNI calls. (#150)
- Use `Files.createTempFile` so temporary file permissions are more restrictive. (#141)
Expand Down
30 changes: 15 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ plugins {
id 'io.github.gradle-nexus.publish-plugin' version '1.3.0'
}

group = 'io.github.isaacbrodsky'
group = 'com.uber'
version = '4.1.3-SNAPSHOT'
description = 'Java bindings for H3, a hierarchical hexagonal geospatial indexing system.'

java {
Expand Down Expand Up @@ -123,7 +124,7 @@ publishing {
from components.java
pom {
name = 'h3'
url = 'https://github.com/isaacbrodsky/h3-java'
url = 'https://github.com/uber/h3-java'
description = project.description
licenses {
license {
Expand All @@ -132,20 +133,22 @@ publishing {
distribution = 'repo'
}
}
// organization {
// name = 'Uber Open Source'
// url = 'https://github.com/uber/'
// }
organization {
name = 'Uber Open Source'
url = 'https://github.com/uber/'
}
scm {
connection = 'scm:git:git://github.com/isaacbrodsky/h3-java.git'
developerConnection = 'scm:git:ssh://git@github.com/isaacbrodsky/h3-java.git'
url = 'http://github.com/isaacbrodsky/h3-java/tree/master'
connection = 'scm:git:git://github.com/uber/h3-java.git'
developerConnection = 'scm:git:ssh://git@github.com/uber/h3-java.git'
url = 'http://github.com/uber/h3-java/tree/master'
}
developers {
developer {
id = 'isaacbrodsky'
name = 'Isaac Brodsky'
email = 'isaac@isaacbrodsky.com'
organization = 'Uber Technologies, Inc.'
organizationUrl = 'https://github.com/uber/'
}
}
}
Expand Down Expand Up @@ -178,15 +181,12 @@ signing {
nexusPublishing {
repositories {
sonatype {
// Performance optimization, not needed:
// stagingProfileId.set(System.getenv("OSSRH_STAGING_PROFILE_ID"))
stagingProfileId.set(System.getenv("OSSRH_STAGING_PROFILE_ID"))
username.set(System.getenv("OSSRH_USERNAME"))
password.set(System.getenv("OSSRH_PASSWORD"))
// For newer Sonatype accounts (after Feb 2021) use "s01.oss.sonatype.org":
// nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
// snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}
10 changes: 3 additions & 7 deletions docs/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

The H3-Java library is published to Maven Central via OSSRH.

The release is triggered via GitHub Actions, when a tag of the form `v1.2.3` is pushed, or via workflow dispatch. The release workflow handles all parts of the release.

## Old instructions for manual releasing

You must be a member of the `com.uber` group to release the library via OSSRH. You must have a [signing key](http://central.sonatype.org/pages/working-with-pgp-signatures.html) setup, and you must have your OSSRH username and password in the appropriate [Maven settings file](http://central.sonatype.org/pages/apache-maven.html).

Release builds pull artifacts from Github Actions. This is needed so that the deployed artifact contains all supported operating system/architecture combinations. (In particular, Mac OS artifacts must be built natively.) In order to release, there must be a completed build of the Git commit to release on Github. The build must be less than 30 days old, as artifacts are only kept for that time.
Expand All @@ -17,14 +13,14 @@ Release builds pull artifacts from Github Actions. This is needed so that the de
5. If this looks good, close and release the build in [Sonatype Nexus Manager](https://oss.sonatype.org/).
6. Update `CHANGELOG.md` to have an Unreleased section, and commit. The release is now done and development can resume from this point.

### Troubleshooting
## Troubleshooting

#### Dependencies for `pull-from-github.sh`
### Dependencies for `pull-from-github.sh`

* You should install the [Github CLI](https://cli.github.com) and authenticate with it first. You may need to use a personal access token (classic) with workflows scope.
* `jq`

#### gpg: signing failed: Inappropriate ioctl for device
### gpg: signing failed: Inappropriate ioctl for device

Per [StackOverflow](https://stackoverflow.com/questions/57591432/gpg-signing-failed-inappropriate-ioctl-for-device-on-macos-with-maven), run the following before `mvn release:perform`:

Expand Down
3 changes: 0 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@
# Blocked on https://github.com/nbaztec/coveralls-jacoco-gradle-plugin/issues/66
org.gradle.configuration-cache=false

# No spaces on the following line, needed by release.tml
version=4.3.0

Loading