-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
802a86c
commit bcffb9f
Showing
583 changed files
with
131,838 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Specify files that shouldn't be modified by Fern |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: ci | ||
|
||
on: [push] | ||
|
||
jobs: | ||
compile: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Java | ||
id: setup-jre | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: "11" | ||
architecture: x64 | ||
|
||
- name: Compile | ||
run: ./gradlew compileJava | ||
|
||
test: | ||
needs: [ compile ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Java | ||
id: setup-jre | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: "11" | ||
architecture: x64 | ||
|
||
- name: Test | ||
run: ./gradlew test | ||
publish: | ||
needs: [ compile, test ] | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Java | ||
id: setup-jre | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: "11" | ||
architecture: x64 | ||
|
||
- name: Publish to maven | ||
run: | | ||
./gradlew publish | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | ||
MAVEN_PUBLISH_REGISTRY_URL: "https://s01.oss.sonatype.org/content/repositories/releases/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
*.class | ||
.project | ||
.gradle | ||
? | ||
.classpath | ||
.checkstyle | ||
.settings | ||
.node | ||
build | ||
|
||
# IntelliJ | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
out/ | ||
|
||
# Eclipse/IntelliJ APT | ||
generated_src/ | ||
generated_testSrc/ | ||
generated/ | ||
|
||
bin | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
plugins { | ||
id 'java-library' | ||
id 'maven-publish' | ||
id 'com.diffplug.spotless' version '6.11.0' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { | ||
url 'https://s01.oss.sonatype.org/content/repositories/releases/' | ||
} | ||
} | ||
|
||
dependencies { | ||
api 'com.squareup.okhttp3:okhttp:4.12.0' | ||
api 'com.fasterxml.jackson.core:jackson-databind:2.17.2' | ||
api 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.2' | ||
api 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2' | ||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2' | ||
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.2' | ||
} | ||
|
||
|
||
sourceCompatibility = 1.8 | ||
targetCompatibility = 1.8 | ||
|
||
spotless { | ||
java { | ||
palantirJavaFormat() | ||
} | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
withJavadocJar() | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
testLogging { | ||
showStandardStreams = true | ||
} | ||
} | ||
publishing { | ||
publications { | ||
maven(MavenPublication) { | ||
groupId = 'dev.vapi' | ||
artifactId = 'vapi-java-sdk' | ||
version = '0.0.0-alpha3' | ||
from components.java | ||
pom { | ||
scm { | ||
connection = 'scm:git:git://github.com/fern-demo/vapi-java-sdk.git' | ||
developerConnection = 'scm:git:git://github.com/fern-demo/vapi-java-sdk.git' | ||
url = 'https://github.com/fern-demo/vapi-java-sdk' | ||
} | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
url "$System.env.MAVEN_PUBLISH_REGISTRY_URL" | ||
credentials { | ||
username "$System.env.MAVEN_USERNAME" | ||
password "$System.env.MAVEN_PASSWORD" | ||
} | ||
} | ||
} | ||
} | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.