Skip to content

Commit c461ceb

Browse files
authored
[Java] Move @azure-tools/typespec-java to typespec-azure repo (#4591)
1 parent 32ff9cc commit c461ceb

292 files changed

Lines changed: 118547 additions & 5 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
3+
changeKind: internal
4+
packages:
5+
- "@azure-tools/typespec-java"
6+
---
7+
8+
[Java] Move `@azure-tools/typespec-java` to typespec-azure repo

.github/policies/issues.triage.generated.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ configuration:
3131
label: emitter:python
3232
- hasLabel:
3333
label: emitter:typescript
34+
- hasLabel:
35+
label: emitter:java
3436
- hasLabel:
3537
label: emitter:client:all
3638
- hasLabel:
@@ -65,6 +67,8 @@ configuration:
6567
label: emitter:python
6668
- labelAdded:
6769
label: emitter:typescript
70+
- labelAdded:
71+
label: emitter:java
6872
- labelAdded:
6973
label: emitter:client:all
7074
- labelAdded:
@@ -100,6 +104,8 @@ configuration:
100104
label: emitter:python
101105
- labelRemoved:
102106
label: emitter:typescript
107+
- labelRemoved:
108+
label: emitter:java
103109
- labelRemoved:
104110
label: emitter:client:all
105111
- labelRemoved:
@@ -126,6 +132,8 @@ configuration:
126132
label: emitter:python
127133
- hasLabel:
128134
label: emitter:typescript
135+
- hasLabel:
136+
label: emitter:java
129137
- hasLabel:
130138
label: emitter:client:all
131139
- hasLabel:

.github/policies/prs.triage.generated.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ configuration:
5353
then:
5454
- addLabel:
5555
label: emitter:typescript
56+
- if:
57+
- includesModifiedFiles:
58+
files:
59+
- packages/typespec-java/**/*
60+
then:
61+
- addLabel:
62+
label: emitter:java
5663
- if:
5764
- includesModifiedFiles:
5865
files:

.github/workflows/ci-java.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "typespec-java / CI"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- release/*
8+
paths:
9+
- "packages/typespec-java/**"
10+
- ".github/workflows/ci-java.yml"
11+
merge_group:
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
build:
18+
name: Build
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
submodules: recursive
24+
- uses: ./.github/actions/setup
25+
- name: Install dependencies
26+
run: pnpm install
27+
- name: Build typespec-java package
28+
run: pnpm turbo run --filter "@azure-tools/typespec-java..." build
29+
lint:
30+
name: Lint
31+
runs-on: ubuntu-latest
32+
needs: build
33+
steps:
34+
- uses: actions/checkout@v4
35+
with:
36+
submodules: recursive
37+
- uses: ./.github/actions/setup
38+
- name: Install dependencies
39+
run: pnpm install
40+
- name: Run linters
41+
working-directory: packages/typespec-java
42+
run: pnpm lint

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,3 +225,10 @@ packages/samples/test/output/azure/templates-contoso/setup.*
225225
# python emitter
226226
packages/typespec-python/tests/generated/**
227227
packages/typespec-python/alpha
228+
229+
# java emitter
230+
packages/typespec-java/src/typespec-extension/generator/**
231+
packages/typespec-java/src/typespec-extension/test
232+
packages/typespec-java/src/typespec-extension/src/*
233+
packages/typespec-java/src/typespec-extension/generator/**
234+
!packages/typespec-java/src/typespec-extension/options.ts

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ Area of the codebase
439439
| `emitter:autorest` | #957300 | Issues for @azure-tools/typespec-autorest emitter |
440440
| `emitter:python` | #957300 | Issues for @azure-tools/typespec-python emitter |
441441
| `emitter:typescript` | #957300 | Issues for @azure-tools/typespec-ts emitter |
442+
| `emitter:java` | #0096c7 | Issues for @azure-tools/typespec-java emitter |
442443
| `emitter:client:all` | #957300 | General client emitter issues that do not involve TCGC or typespec-azure-http-specs |
443444
| `eng` | #65bfff | |
444445
| `ide` | #846da1 | Issues for Azure specific ide features |

cspell.yaml

Lines changed: 92 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,76 +31,166 @@ enableFiletypes:
3131
- tsp
3232
- typespec
3333
words:
34+
- AADDS
35+
- adtest
36+
- alexa
3437
- allof
3538
- apim
39+
- appinsightsappid
3640
- apos
3741
- armcontoso
3842
- armId
43+
- Arqs
44+
- azcore
45+
- azkeys
3946
- azsdk
47+
- azsecrets
4048
- Bazs
49+
- Bcff
50+
- BNOT
4151
- byos
52+
- byval
53+
- centralus
54+
- centraluseuap
4255
- chartjs
56+
- Chenjie
57+
- clazz
4358
- clsx
59+
- Cmek
60+
- commitish
4461
- contosobenchmark
4562
- contosowidgetmanager
46-
- Chenjie
63+
- DALMATION
64+
- dcont
65+
- deduplicator
66+
- devcenter
67+
- Dhttp
68+
- discriminatorenum
69+
- Dlocal
70+
- Dmaven
4771
- DMSS
4872
- Donezo
73+
- DskipTests
74+
- Dspotless
75+
- Dtrim
4976
- dynatrace
77+
- Easm
78+
- endpointlro
79+
- ESRPRELPACMANTEST
5080
- espt
81+
- euap
82+
- exampleapptenantid
83+
- exampleid
84+
- farchived
5185
- fhir
5286
- foos
5387
- français
88+
- Globa
89+
- groupme
90+
- GZRS
5491
- healthdataaiservices
5592
- horiz
5693
- Howtos
5794
- incentivizes
5895
- infile
96+
- ipconfigurations
5997
- kvset
6098
- kwargs
6199
- liftr
62100
- LINUXNEXTVMIMAGE
63101
- LINUXOS
64102
- LINUXVMIMAGE
103+
- llcinitial
104+
- llcresi
105+
- llcupdate
106+
- LNOT
65107
- locationyaml
66108
- logz
67109
- LRO
68110
- lropaging
111+
- lroparameterizedendpoints
69112
- Lucene
113+
- luisappid
70114
- MACVMIMAGE
71115
- mgmt
116+
- mkdirp
72117
- mobo
118+
- msaappid
119+
- msaapptenantid
73120
- msazure
74121
- msdata
122+
- mycert
123+
- mycompany
75124
- mylocation
125+
- mysignalrservice
126+
- ndash
127+
- noflatten
128+
- nonstringenum
129+
- northcentralus
130+
- notypedheadersmethods
76131
- nsps
77132
- nupkg
78133
- odata
134+
- okhttp
135+
- olcmtest
136+
- olcmtestcontainer
79137
- Onco
80138
- oncophenotype
139+
- Pageble
81140
- PAYG
141+
- petstoreopgrp
82142
- popd
143+
- println
83144
- prismjs
145+
- propery
84146
- psscriptanalyzer
147+
- Ptest
85148
- pushd
149+
- pypi
86150
- pystac
87151
- pytest
88152
- qnas
153+
- RAGRS
154+
- RAGZRS
89155
- regionality
90-
- responseasbool
91156
- reinjected
92157
- Reranker
158+
- requiredfieldsascotrargstransformation
159+
- requirexmsflattened
160+
- responseasbool
93161
- rpaasoneboxacr
94162
- rpass
163+
- Rscc
164+
- Rscd
165+
- Rsce
166+
- Rscl
167+
- Rsct
168+
- sampleclientid
169+
- scont
170+
- Serv
95171
- SERVICERP
96172
- seti
173+
- signalr
174+
- Skus
175+
- southcentralus
97176
- stac
98177
- strconv
178+
- streamstyleserializationctorargs
179+
- subid
180+
- subscriptionidapiversion
181+
- supportsnetworkacls
99182
- tcgc
183+
- testcmk
184+
- tofile
100185
- tsmv
186+
- uknorth
187+
- uksouth
188+
- ukwest
101189
- userrp
102190
- vnet
191+
- westcentralus
103192
- WINDOWSVMIMAGE
193+
- Xcognitive
104194
- azcore
105195
- azkeys
106196
- azsecrets

eng/config/labels.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ export const AreaLabels = defineLabels({
3535
color: "957300",
3636
description: "Issues for @azure-tools/typespec-ts emitter",
3737
},
38+
"emitter:java": {
39+
color: "0096c7",
40+
description: "Issues for @azure-tools/typespec-java emitter",
41+
},
3842
"emitter:client:all": {
3943
color: "957300",
4044
description:
@@ -68,6 +72,7 @@ export const AreaPaths: Record<keyof typeof AreaLabels, string[]> = {
6872
"emitter:autorest": ["packages/typespec-autorest/"],
6973
"emitter:python": ["packages/typespec-python/"],
7074
"emitter:typescript": ["packages/typespec-ts/"],
75+
"emitter:java": ["packages/typespec-java/"],
7176
"lib:tcgc": ["packages/typespec-client-generator-core/"],
7277
"lib:azure-http-specs": ["packages/azure-http-specs/"],
7378
ide: [],

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default defineConfig(
1414
"**/website/build/**/*",
1515
"**/.astro/**/*",
1616
"core/**/*", // The TypeSpec core submodule has its own ESLint config - don't lint it from here to avoid OOM
17+
"packages/typespec-java/**/*", // Has its own ESLint config
1718
"**/venv/**/*", // Ignore python virtual env
1819
"**/.vscode-test-web/**/*", // Ignore VSCode test web project
1920
// TODO: enable

mise.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
[tools]
22
python = "3.12"
33
uv = "latest"
4+
java = "microsoft-11"
5+
maven = "3.9.16"

0 commit comments

Comments
 (0)