Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌿 Fern Regeneration -- January 21, 2025 #129

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:

- name: Publish to maven
run: |
./gradlew publish
./gradlew publish
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
Expand Down
33 changes: 32 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,62 @@ dependencies {
sourceCompatibility = 1.8
targetCompatibility = 1.8

tasks.withType(Javadoc) {
failOnError false
options.addStringOption('Xdoclint:none', '-quiet')
}

spotless {
java {
palantirJavaFormat()
}
}


java {
withSourcesJar()
withJavadocJar()
}


group = 'com.assemblyai'

version = '4.0.1'

jar {
dependsOn(":generatePomFileForMavenPublication")
archiveBaseName = "assemblyai-java"
}

sourcesJar {
archiveBaseName = "assemblyai-java"
}

javadocJar {
archiveBaseName = "assemblyai-java"
}

test {
useJUnitPlatform()
testLogging {
showStandardStreams = true
}
}

publishing {
publications {
maven(MavenPublication) {
groupId = 'com.assemblyai'
artifactId = 'assemblyai-java'
version = '4.0.0'
version = '4.0.1'
from components.java
pom {
licenses {
license {
name = 'The MIT License (MIT)'
url = 'https://mit-license.org/'
}
}
scm {
connection = 'scm:git:git://github.com/AssemblyAI/assemblyai-java-sdk.git'
developerConnection = 'scm:git:git://github.com/AssemblyAI/assemblyai-java-sdk.git'
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
3 changes: 1 addition & 2 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
rootProject.name = 'assemblyai-java'

include 'sample-app'
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = LemurActionItemsResponse.Builder.class)
public final class LemurActionItemsResponse implements ILemurStringResponse {
public final class LemurActionItemsResponse implements ILemurStringResponse, ILemurBaseResponse {
private final String response;

private final String requestId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = LemurSummaryResponse.Builder.class)
public final class LemurSummaryResponse implements ILemurStringResponse {
public final class LemurSummaryResponse implements ILemurStringResponse, ILemurBaseResponse {
private final String response;

private final String requestId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = LemurTaskResponse.Builder.class)
public final class LemurTaskResponse implements ILemurStringResponse {
public final class LemurTaskResponse implements ILemurStringResponse, ILemurBaseResponse {
private final String response;

private final String requestId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,14 +342,6 @@ public Transcript delete(String transcriptId, RequestOptions requestOptions) {
}
}

/**
* Export your transcript in SRT or VTT format to use with a video player for subtitles and closed captions.
*/
public String getSubtitles(String transcriptId, SubtitleFormat subtitleFormat) {
return getSubtitles(
transcriptId, subtitleFormat, GetSubtitlesParams.builder().build());
}

/**
* Export your transcript in SRT or VTT format to use with a video player for subtitles and closed captions.
*/
Expand Down Expand Up @@ -558,13 +550,6 @@ public ParagraphsResponse getParagraphs(String transcriptId, RequestOptions requ
}
}

/**
* Search through the transcript for keywords. You can search for individual words, numbers, or phrases containing up to five words or numbers.
*/
public WordSearchResponse wordSearch(String transcriptId) {
return wordSearch(transcriptId, WordSearchParams.builder().build());
}

/**
* Search through the transcript for keywords. You can search for individual words, numbers, or phrases containing up to five words or numbers.
*/
Expand Down
Loading