Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
93cec2b
begin release workflow
isaacbrodsky May 29, 2025
4512fbf
add release workflow file
isaacbrodsky May 29, 2025
0348fdb
sequence
isaacbrodsky May 29, 2025
d61c9ce
debug output
isaacbrodsky May 29, 2025
1abbcc6
prettier, enable
isaacbrodsky May 29, 2025
67b1e65
change per review
isaacbrodsky May 29, 2025
382d835
changelog
isaacbrodsky May 29, 2025
3f27843
revert mac changes
isaacbrodsky May 29, 2025
c3f9350
change per review
isaacbrodsky Jun 4, 2025
b6b5ab4
Merge branch 'master' into release-workflow
isaacbrodsky Jun 18, 2025
4645e8a
changelog
isaacbrodsky Jun 18, 2025
851ab91
wip: release io.github.isaacbrodsky
isaacbrodsky Jun 23, 2025
41e9766
test on this repo
isaacbrodsky Jun 25, 2025
4d241f9
fix
isaacbrodsky Jun 25, 2025
507bc63
env name
isaacbrodsky Jun 25, 2025
9ac9578
fix url
isaacbrodsky Jun 25, 2025
8fb9000
no close
isaacbrodsky Jun 25, 2025
f6939fc
uncomment
isaacbrodsky Jun 25, 2025
01adf10
not on pr
isaacbrodsky Jun 25, 2025
c00f139
Merge pull request #2 from isaacbrodsky/release-workflow-isaacbrodsky
isaacbrodsky Jun 25, 2025
2c458d1
Release 4.3.0 isaacbrodsky (#171)
isaacbrodsky Jun 25, 2025
6fe4e6f
v4.3.1
isaacbrodsky Jun 25, 2025
b509784
fix
isaacbrodsky Jun 25, 2025
cf52d20
revert to v4.3.0
isaacbrodsky Jun 25, 2025
6507ef3
chore: start next development cycle 4.3.1-SNAPSHOT [skip ci]
Jun 25, 2025
8c1b418
remove top line from changelog
isaacbrodsky Jun 25, 2025
3afddf3
fix changelog
isaacbrodsky Jun 25, 2025
692be56
adjust release instructions
isaacbrodsky Jun 25, 2025
76ab5fc
android 16kb support
isaacbrodsky Jul 15, 2025
8cb2460
back out change
isaacbrodsky Jul 15, 2025
f389062
windows 2022
isaacbrodsky Jul 15, 2025
8ef549b
README
isaacbrodsky Jul 18, 2025
77f4a16
README
isaacbrodsky Jul 18, 2025
f63c441
README
isaacbrodsky Jul 18, 2025
2d75555
Merge pull request #3 from isaacbrodsky/android-16kb
isaacbrodsky Jul 18, 2025
e79beea
Merge branch 'master' into update-isaacbrodsky-fork
isaacbrodsky Oct 10, 2025
9d2f514
attempt to fix h3-java publishing for jar
isaacbrodsky Oct 10, 2025
6e44899
Merge pull request #4 from isaacbrodsky/update-isaacbrodsky-fork
isaacbrodsky Oct 10, 2025
910b207
fix android and java build at same time
isaacbrodsky Oct 10, 2025
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
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,4 @@ jobs:
# git config user.email "[email protected]"
# git commit -am "chore: start next development cycle $NEXT_VERSION [skip ci]"
# git push origin HEAD:master

14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@

# H3-Java

[![tests](https://github.com/uber/h3-java/workflows/tests/badge.svg)](https://github.com/uber/h3-java/actions)
[![Coverage Status](https://coveralls.io/repos/github/uber/h3-java/badge.svg?branch=master)](https://coveralls.io/github/uber/h3-java?branch=master)
[![tests](https://github.com/isaacbrodsky/h3-java/workflows/tests/badge.svg)](https://github.com/isaacbrodsky/h3-java/actions)
[![Coverage Status](https://coveralls.io/repos/github/isaacbrodsky/h3-java/badge.svg?branch=master)](https://coveralls.io/github/isaacbrodsky/h3-java?branch=master)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.uber/h3/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.uber/h3)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.isaacbrodsky/h3/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.isaacbrodsky/h3)
[![H3 Version](https://img.shields.io/badge/h3-v4.3.0-blue.svg)](https://github.com/uber/h3/releases/tag/v4.3.0)

This library provides Java bindings for the [H3 Core Library](https://github.com/uber/h3). For API reference, please see the [H3 Documentation](https://h3geo.org/).
This library provides Java bindings for the [H3 Core Library](https://github.com/uber/h3). For API reference, please see the [H3 Documentation](https://h3geo.org/). It provides the same API as [uber/h3-java](https://github.com/uber/h3-java) from which it is based.

# Usage

Add it to your pom.xml:

```xml
<dependency>
<groupId>com.uber</groupId>
<groupId>io.github.isaacbrodsky</groupId>
<artifactId>h3</artifactId>
<version>4.3.2</version>
</dependency>
Expand All @@ -25,7 +25,7 @@ Add it to your pom.xml:
Or, using Gradle:

```gradle
compile("com.uber:h3:4.3.2")
compile("io.github.isaacbrodsky:h3:4.3.2")
```

Encode a location into a hexagon address:
Expand Down Expand Up @@ -109,5 +109,7 @@ Before we can merge your changes, you must agree to the [Uber Contributor Licens

H3-Java is licensed under the [Apache 2.0 License](./LICENSE).

H3-Java Copyright 2017 Uber Technologies, Inc.

DGGRID
Copyright (c) 2015 Southern Oregon University
32 changes: 21 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ plugins {

}

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

java {
Expand Down Expand Up @@ -73,6 +73,7 @@ compileJava {
// Task to build H3 native code
task buildH3(type: Exec) {
workingDir "${projectDir}"
dependsOn compileJava
if (System.getProperty('os.name').toLowerCase().contains('windows')) {
commandLine 'powershell', '-ExecutionPolicy', 'Bypass', '-File',
'./src/main/c/h3-java/build-h3-windows.ps1', h3GitRemote, h3GitReference
Expand All @@ -81,21 +82,22 @@ task buildH3(type: Exec) {
h3SystemPrune, h3DockcrossTag, h3DockcrossOnly,
h3GithubArtifactsUse, h3GithubArtifactsByRun
}
dependsOn compileJava
outputs.dir("${projectDir}/src/main/resources")
}

// Task to build H3 native code for Android only
task buildH3Android(type: Exec) {
mustRunAfter buildH3
dependsOn compileJava
workingDir "${projectDir}"
commandLine './src/main/c/h3-java/build-h3.sh', h3GitRemote, h3GitReference, 'true',
h3SystemPrune, h3DockcrossTag, 'android-arm android-arm64',
h3GithubArtifactsUse, h3GithubArtifactsByRun
dependsOn compileJava
outputs.dir("${projectDir}/src/main/resources")
}

processResources {
mustRunAfter buildH3Android
dependsOn buildH3
}

Expand Down Expand Up @@ -123,6 +125,7 @@ jacocoTestReport {

jar {
dependsOn buildH3
mustRunAfter buildH3Android
from sourceSets.main.resources
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
Expand All @@ -143,7 +146,7 @@ task compileAndroidJava(type: JavaCompile) {

// Android JAR task - creates JAR with only Android native libraries
task androidJar(type: Jar) {
dependsOn compileAndroidJava
dependsOn compileAndroidJava, buildH3Android
archiveBaseName = 'h3-android'
archiveVersion = project.version

Expand Down Expand Up @@ -253,12 +256,15 @@ mavenPublishing {

sourcesJar {
dependsOn buildH3
mustRunAfter buildH3Android
}



// Android sources JAR
task androidSourcesJar(type: Jar) {
dependsOn buildH3Android

archiveBaseName = 'h3-android'
archiveVersion = project.version
archiveClassifier = 'sources'
Expand All @@ -281,22 +287,26 @@ publishing {
// Generate POM for Android
pom {
name = 'h3'
url = 'https://github.com/isaacbrodsky/h3-java'
description = 'H3 library with Android support - hierarchical hexagonal geospatial indexing system.'
url = 'https://github.com/uber/h3-java'


licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}

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://[email protected]/isaacbrodsky/h3-java.git'
url = 'http://github.com/isaacbrodsky/h3-java/tree/master'
}

developers {
developer {
id = 'isaacbrodsky'
Expand Down
Loading