Skip to content

Commit

Permalink
Add HTTP client generator for Java (#4185)
Browse files Browse the repository at this point in the history
  • Loading branch information
srnagar authored Aug 16, 2024
1 parent 71c221d commit bf7866a
Show file tree
Hide file tree
Showing 504 changed files with 80,050 additions and 33 deletions.
26 changes: 26 additions & 0 deletions cspell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ dictionaries:
- typescript
words:
- Adoptium
- alzimmer
- amqp
- AQID
- atrule
- atteo
- autorest
- azsdk
- azsdkengsys
Expand All @@ -22,6 +25,7 @@ words:
- cadlplayground
- clsx
- cobertura
- codehaus
- codeql
- Contoso
- CORGE
Expand All @@ -31,29 +35,39 @@ words:
- dbaeumer
- Dcodegen
- debouncer
- Declipse
- Dedupes
- destructures
- devdiv
- Diagnoser
- Dlog
- dogfood
- Dorg
- Dosgi
- Dskip
- eastus
- ecmarkup
- EMBEDME
- esbenp
- esbuild
- espt
- ESRP
- fluentui
- genproto
- globby
- graalvm
- Gson
- imple
- Infima
- inlines
- inmemory
- instanceid
- interner
- intrinsics
- itor
- Jacoco
- jdwp
- jobject
- jsyaml
- keyer
- lifecyle
Expand All @@ -62,7 +76,9 @@ words:
- LINUXVMIMAGE
- lzutf
- MACVMIMAGE
- mgmt
- mocharc
- mqtt
- msbuild
- MSRC
- multis
Expand All @@ -73,9 +89,11 @@ words:
- noopener
- noreferrer
- nostdlib
- noverify
- npmjs
- nupkg
- oapi
- ODATA
- OIDC
- oneds
- oneof
Expand All @@ -92,15 +110,21 @@ words:
- protoc
- psscriptanalyzer
- pwsh
- reactivex
- recase
- regen
- respecify
- rpaas
- rushx
- safeint
- segmentof
- serde
- sfixed
- sint
- snakeyaml
- srnagar
- statment
- sses
- ssvs
- strs
- syncpack
Expand All @@ -120,6 +144,7 @@ words:
- Uncapitalize
- uncollapsed
- undifferentiable
- Ungroup
- uninstantiated
- unioned
- unparented
Expand All @@ -139,6 +164,7 @@ words:
- WINDOWSVMIMAGE
- xiaofei
- xlarge
- xors
- xplat
ignorePaths:
- "**/node_modules/**"
Expand Down
2 changes: 1 addition & 1 deletion packages/http-client-java/eng/scripts/Generate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ Invoke "npm run build:emitter"

$testDir = Join-Path $repoRoot 'test'

Invoke "npx tsp compile $testDir/literal.tsp --trace @typespec/http-client-java --emit @typespec/http-client-java --option @typespec/http-client-java.emitter-output-dir=$testDir --option @typespec/http-client-java.save-inputs=true"
Invoke "npx tsp compile $testDir/literal.tsp --trace @typespec/http-client-java --emit @typespec/http-client-java --option @typespec/http-client-java.emitter-output-dir=$testDir/tsp-output --option @typespec/http-client-java.save-inputs=true"
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.microsoft.typespec</groupId>
<artifactId>typespec-java-generator</artifactId>
<version>1.0.0-beta.1</version>
</parent>

<groupId>com.microsoft.typespec</groupId>
<artifactId>http-client-generator-core</artifactId>
<packaging>jar</packaging>

<name>http-client-generator-core</name>
<url>http://maven.apache.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core</artifactId>
<version>1.51.0</version>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-json</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-xml</artifactId>
<version>1.1.0</version>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.36</version>
</dependency>

<dependency>
<groupId>com.github.javaparser</groupId>
<artifactId>javaparser-core</artifactId>
<version>3.25.10</version>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.10.14</version>
</dependency>
<dependency>
<groupId>org.eclipse.lsp4j</groupId>
<artifactId>org.eclipse.lsp4j</artifactId>
<version>0.21.1</version>
</dependency>
<dependency>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt.core</artifactId>
<version>3.33.0</version>
</dependency>
<dependency>
<groupId>org.atteo</groupId>
<artifactId>evo-inflector</artifactId>
<version>1.3</version>
</dependency>
</dependencies>
</project>
Loading

0 comments on commit bf7866a

Please sign in to comment.