From 7549b3b6e20e2155965533c73e195c74d49d1972 Mon Sep 17 00:00:00 2001 From: Nicholas Chiu Date: Tue, 19 Nov 2024 16:12:50 -0800 Subject: [PATCH] Fixing pom.xml, adding openapi-generator settings --- .github/workflows/openapi.yml | 12 ++++- pom.xml | 91 ++++++++++++++++++++++++++++++----- 2 files changed, 91 insertions(+), 12 deletions(-) diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index 6f73efeab..ab3444f9b 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -23,10 +23,20 @@ jobs: args: >- generate -i https://developers.lilt.com/redocusaurus/plugin-redoc-0.yaml + -p apiPackage=com.lilt.client.api + -p artifactId=lilt-java + -p artifactUrl=https://github.com/lilt/lilt-java + -p developerEmail=nicholas.chiu@lilt.com + -p developerName="Nicholas Chiu" + -p developerOrganization="Lilt" + -p developerOrganizationUrl=https://lilt.com + -p groupId=com.lilt.client -g java + -p licenseName="Lilt Client Library License" + -p licenseUrl=license.md -p modelPackage=com.lilt.client.model - -p apiPackage=com.lilt.client.api -p packageVersion=${{ github.event.client_payload.version }} + --package-name lilt --git-host github.com --git-user-id lilt diff --git a/pom.xml b/pom.xml index f6577ead2..714b60424 100644 --- a/pom.xml +++ b/pom.xml @@ -1,28 +1,70 @@ 4.0.0 + com.lilt.client - lilt-java-client + lilt-java + 0.6.5 jar - lilt-java-client - 3.0.0 - https://github.com/openapitools/openapi-generator - LILT Java + + + Lilt Client Library License + license.md + repo + + + + ${project.groupId}:${project.artifactId} + The Lilt REST API enables programmatic access to the full range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large scale translation memory * The Lexicon, a large scale termbase * Programmatic control of the Lilt CAT environment. Translation memory synchronizationRequests and responses are in JSON format. The REST API only responds to HTTPS (SSL) requests. AuthenticationRequests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using HTTP Basic Auth (https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the username and password. For development, you may also pass the REST API key via the key query parameter. This is less secure than HTTP Basic Auth and is not recommended for production use. Quotas: Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. + https://github.com/lilt/lilt-java + 2015 + + Lilt + http://www.lilt.com + + + + Nicholas Chiu + nicholas.chiu@lilt.com + ${project.organization.name} + ${project.organization.organizationUrl} + + + scm:git:git@github.com:openapitools/openapi-generator.git scm:git:git@github.com:openapitools/openapi-generator.git https://github.com/openapitools/openapi-generator - + github Lilt packages on GitHub https://maven.pkg.github.com/lilt/lilt-java + + org.codehaus.mojo + license-maven-plugin + 2.4.0 + + lilt_client_library_license + file://${project.basedir}/src/license + + + + first + + update-file-header + + process-sources + + + + org.apache.maven.plugins maven-compiler-plugin 3.8.1 @@ -171,6 +213,38 @@ + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.4 + + false + + + + sign-artifacts + verify + + sign + + + bc + + + + + + org.sonatype.central + central-publishing-maven-plugin + 0.6.0 + true + + central + true + true + published + + @@ -235,11 +309,6 @@ commons-lang3 ${commons-lang3-version} - - commons-io - commons-io - 2.5 - org.threeten threetenbp