Skip to content

Commit 13544cc

Browse files
spec fixes for java sdk (#228)
1 parent 11a1c7c commit 13544cc

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/workflows/preview_sdks.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,31 @@ jobs:
3232
cd fern/.preview/fern-typescript-node-sdk
3333
yarn install
3434
yarn build
35+
36+
preview-java:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Checkout repo
40+
uses: actions/checkout@v4
41+
42+
- name: Setup Java
43+
uses: actions/setup-java@v1
44+
with:
45+
java-version: "11"
46+
architecture: x64
47+
48+
- name: Download Fern
49+
run: npm install -g fern-api
50+
51+
- name: Generate Preview
52+
env:
53+
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
54+
run: |
55+
fern generate --group java-sdk --preview --log-level debug
56+
57+
- name: Build
58+
env:
59+
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
60+
run: |
61+
cd fern/.preview/fern-java-sdk
62+
./gradlew assemble

fern/generators.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,21 @@ groups:
3535
- intercom
3636
- api
3737
smart-casing: true
38+
39+
java-sdk:
40+
generators:
41+
- name: fernapi/fern-java-sdk
42+
version: 2.25.0
43+
# output:
44+
# location: maven
45+
# coordinate: com.square:square-java
46+
# username: ${MAVEN_USERNAME}
47+
# password: ${MAVEN_PASSWORD}
48+
github:
49+
repository: fern-demo/intercom-java-sdk
50+
branch: gettin-tests-to-work
51+
mode: push
52+
config:
53+
enable-inline-types: true
54+
client-class-name: Intercom
55+
inline-path-parameters: true

0 commit comments

Comments
 (0)