7.0.0 java library build large file size

I am building using a gitlab builder:

stages:
  - build

build-job:
  stage: build
  image: foundationdb/build
  script:
    - git clone --depth 1 --branch 7.0.0 https://github.com/apple/foundationdb.git
    - mkdir build
    - cd build
    - source /opt/rh/devtoolset-8/enable && source /opt/rh/rh-python38/enable && cmake -G Ninja ../foundationdb
    - ninja -j2
    - cpack -G DEB
    - rm -rf packages/bin
    - rm -rf packages/*versioned*
    - rm -rf packages/*.tar.gz
  artifacts:
    name: target
    when: always
    expire_in: 1 days
    paths:
      - build/packages

I am able to build both 7.0.0 and 6.3.23 properly, but the jar for 7.0.0 has a 20 meg lib inside it instead of 200kb.

Is this intended for 7.0.0 so that the client libs do not have to be installed and a jar is enough for a client, or did I mess something up?

I will be building the official 7.0.0 release this week. I’ll look closer. This seems odd to me too, but I need to confirm. There were some java changes recently, and that may have had a legitimate effect on the library.

1 Like