Skip to content

Latest commit

 

History

History
38 lines (35 loc) · 1.61 KB

README.md

File metadata and controls

38 lines (35 loc) · 1.61 KB

Gogoproto Java Packaging

Generate Java package for the Gogoproto protobuf (importing gogoproto/gogo.proto). Gofast doesn't support Java yet.

Usage

  • Directly link to Sonatype and Maven
    • Maven:
      <dependency>
        <groupId>com.github.saikocat</groupId>
        <artifactId>gogoproto-java</artifactId>
        <version>1.0.1</version>
      </dependency>
      
    • Gradle:
      implementation group: 'com.github.saikocat', name: 'gogoproto-java', version: '1.0.1'
      
  • Using Jitpack as resolver, and add com.github.saikocat:gogoproto-java:1.0.1-jitpack as a dependency. Full instructions

Reason for yet another gogoproto-java

  • As of the time of writing, there are 4 projects on Maven Central. 1 has extra bundles of non-protobuf related jars, 1 required appending additional repo url , 2 is using outdated protobuf runtime dependency. Can't find the scm to make a PR.
  • Outdated protobuf runtime dependency (<3.8.0) causes compilation error so we bumped up the dependency for protobuf runtime.
error: cannot find symbol
      UnusedPrivateParameter unused) {
      ^
  symbol:   class UnusedPrivateParameter
  location: class MyType
  • Work on using Jitpack and Maven Central without appending additional repo url.