@autorest/java 4.1.26 → 4.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/androidgen/package.json +3 -3
- package/androidgen/target/azure-autorest-androidgen-jar-with-dependencies.jar +0 -0
- package/fluentgen/package.json +2 -2
- package/fluentgen/target/azure-autorest-fluentgen-jar-with-dependencies.jar +0 -0
- package/javagen/package.json +2 -2
- package/javagen/target/azure-autorest-javagen-jar-with-dependencies.jar +0 -0
- package/package.json +4 -4
- package/typespec-extension/package.json +21 -21
- package/typespec-extension/readme.md +1 -1
- package/typespec-tests/package.json +12 -12
- package/typespec-tests/readme.md +1 -1
package/androidgen/package.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"description": "The Android extension for classic generators in AutoRest.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"autorest": "autorest",
|
|
7
|
-
"start": "java -jar target/azure-autorest-androidgen-jar-with-dependencies.jar",
|
|
8
|
-
"debug": "java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-androidgen-jar-with-dependencies.jar",
|
|
7
|
+
"start": "java --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -jar target/azure-autorest-androidgen-jar-with-dependencies.jar",
|
|
8
|
+
"debug": "java --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-androidgen-jar-with-dependencies.jar",
|
|
9
9
|
"build": "mvn package -Dlocal"
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
@@ -24,4 +24,4 @@
|
|
|
24
24
|
"url": "https://github.com/Azure/autorest/issues"
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/Azure/autorest.java/blob/main/README.md"
|
|
27
|
-
}
|
|
27
|
+
}
|
|
Binary file
|
package/fluentgen/package.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"description": "The Java extension for classic generators in AutoRest.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"autorest": "autorest",
|
|
7
|
-
"start": "java -jar target/azure-autorest-fluentgen-jar-with-dependencies.jar",
|
|
8
|
-
"debug": "java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-fluentgen-jar-with-dependencies.jar",
|
|
7
|
+
"start": "java --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -jar target/azure-autorest-fluentgen-jar-with-dependencies.jar",
|
|
8
|
+
"debug": "java --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-fluentgen-jar-with-dependencies.jar",
|
|
9
9
|
"build": "mvn package -P local"
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
Binary file
|
package/javagen/package.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"description": "The Java extension for classic generators in AutoRest.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"autorest": "autorest",
|
|
7
|
-
"start": "java -jar target/azure-autorest-javagen-jar-with-dependencies.jar",
|
|
8
|
-
"debug": "java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-javagen-jar-with-dependencies.jar",
|
|
7
|
+
"start": "java --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -jar target/azure-autorest-javagen-jar-with-dependencies.jar",
|
|
8
|
+
"debug": "java --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-javagen-jar-with-dependencies.jar",
|
|
9
9
|
"build": "mvn package -Dlocal"
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autorest/java",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.27",
|
|
4
4
|
"description": "The Java extension for classic generators in AutoRest.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"autorest": "autorest",
|
|
7
|
-
"start": "java -jar javagen/target/azure-autorest-javagen-jar-with-dependencies.jar",
|
|
8
|
-
"debug": "java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar javagen/target/azure-autorest-javagen-jar-with-dependencies.jar",
|
|
7
|
+
"start": "java --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -jar javagen/target/azure-autorest-javagen-jar-with-dependencies.jar",
|
|
8
|
+
"debug": "java --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar javagen/target/azure-autorest-javagen-jar-with-dependencies.jar",
|
|
9
9
|
"build": "mvn package -P local",
|
|
10
10
|
"generate": "./generate",
|
|
11
11
|
"testserver-run": "autorest-testserver run",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"*/target/*-jar-with-dependencies.jar"
|
|
40
40
|
],
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"autorest": "^3.
|
|
42
|
+
"autorest": "^3.7.1",
|
|
43
43
|
"@microsoft.azure/autorest.testserver": "3.3.48"
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-java",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.4",
|
|
4
4
|
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"TypeSpec"
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"target/emitter.jar"
|
|
46
46
|
],
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@typespec/compiler": ">=0.
|
|
49
|
-
"@typespec/http": ">=0.
|
|
50
|
-
"@typespec/rest": ">=0.
|
|
51
|
-
"@typespec/openapi": ">=0.
|
|
52
|
-
"@typespec/versioning": ">=0.
|
|
53
|
-
"@azure-tools/typespec-azure-core": ">=0.
|
|
54
|
-
"@azure-tools/typespec-client-generator-core": ">=0.
|
|
48
|
+
"@typespec/compiler": ">=0.52.0 <1.0.0",
|
|
49
|
+
"@typespec/http": ">=0.52.0 <1.0.0",
|
|
50
|
+
"@typespec/rest": ">=0.52.0 <1.0.0",
|
|
51
|
+
"@typespec/openapi": ">=0.52.0 <1.0.0",
|
|
52
|
+
"@typespec/versioning": ">=0.52.0 <1.0.0",
|
|
53
|
+
"@azure-tools/typespec-azure-core": ">=0.38.0 <1.0.0",
|
|
54
|
+
"@azure-tools/typespec-client-generator-core": ">=0.39.0 <1.0.0"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@autorest/codemodel": "~4.20.0",
|
|
@@ -59,25 +59,25 @@
|
|
|
59
59
|
"js-yaml": "~4.1.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"prettier": "~3.
|
|
62
|
+
"prettier": "~3.2.5",
|
|
63
63
|
"@types/lodash": "~4.14.202",
|
|
64
64
|
"@types/js-yaml": "~4.0.9",
|
|
65
65
|
"@types/mocha": "~10.0.6",
|
|
66
|
-
"@types/node": "~20.
|
|
67
|
-
"c8": "~
|
|
68
|
-
"eslint": "~8.
|
|
66
|
+
"@types/node": "~20.11.16",
|
|
67
|
+
"c8": "~9.1.0",
|
|
68
|
+
"eslint": "~8.56.0",
|
|
69
69
|
"mocha": "~10.2.0",
|
|
70
70
|
"rimraf": "~5.0.5",
|
|
71
71
|
"typescript": "~5.3.3",
|
|
72
|
-
"@typescript-eslint/parser": "~6.
|
|
73
|
-
"@typescript-eslint/eslint-plugin": "~6.
|
|
72
|
+
"@typescript-eslint/parser": "~6.21.0",
|
|
73
|
+
"@typescript-eslint/eslint-plugin": "~6.21.0",
|
|
74
74
|
"eslint-plugin-deprecation": "~2.0.0",
|
|
75
|
-
"@azure-tools/typespec-azure-core": "0.
|
|
76
|
-
"@azure-tools/typespec-client-generator-core": "0.
|
|
77
|
-
"@typespec/compiler": "0.
|
|
78
|
-
"@typespec/http": "0.
|
|
79
|
-
"@typespec/openapi": "0.
|
|
80
|
-
"@typespec/rest": "0.
|
|
81
|
-
"@typespec/versioning": "0.
|
|
75
|
+
"@azure-tools/typespec-azure-core": "0.39.0",
|
|
76
|
+
"@azure-tools/typespec-client-generator-core": "0.39.0",
|
|
77
|
+
"@typespec/compiler": "0.53.0",
|
|
78
|
+
"@typespec/http": "0.53.0",
|
|
79
|
+
"@typespec/openapi": "0.53.0",
|
|
80
|
+
"@typespec/rest": "0.53.0",
|
|
81
|
+
"@typespec/versioning": "0.53.0"
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -4,7 +4,7 @@ Install [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node
|
|
|
4
4
|
|
|
5
5
|
Install [Java](https://docs.microsoft.com/java/openjdk/download) 11 or above. (Verify by `java --version`)
|
|
6
6
|
|
|
7
|
-
Install [TypeSpec](https://github.com/microsoft/typespec/) 0.
|
|
7
|
+
Install [TypeSpec](https://github.com/microsoft/typespec/) 0.53.
|
|
8
8
|
|
|
9
9
|
# Initialize TypeSpec Project
|
|
10
10
|
|
|
@@ -9,23 +9,23 @@
|
|
|
9
9
|
"testserver-run": "npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http --coverageFile ./cadl-ranch-coverage-java.json"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@azure-tools/cadl-ranch-specs": "0.
|
|
13
|
-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.
|
|
12
|
+
"@azure-tools/cadl-ranch-specs": "0.29.0",
|
|
13
|
+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.13.4.tgz"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@typespec/prettier-plugin-typespec": "~0.
|
|
16
|
+
"@typespec/prettier-plugin-typespec": "~0.53.0",
|
|
17
|
+
"@azure-tools/typespec-azure-resource-manager": "~0.39.0",
|
|
17
18
|
"prettier-plugin-organize-imports": "3.2.4",
|
|
18
|
-
"prettier": "~3.
|
|
19
|
-
"@azure-tools/typespec-azure-resource-manager": ">=0.37.1 <1.0.0"
|
|
19
|
+
"prettier": "~3.2.5"
|
|
20
20
|
},
|
|
21
21
|
"overrides": {
|
|
22
|
-
"@typespec/compiler": ">=0.
|
|
23
|
-
"@typespec/http": ">=0.
|
|
24
|
-
"@typespec/rest": ">=0.
|
|
25
|
-
"@typespec/versioning": ">=0.
|
|
26
|
-
"@typespec/openapi": ">=0.
|
|
27
|
-
"@azure-tools/typespec-azure-core": ">=0.
|
|
28
|
-
"@azure-tools/typespec-client-generator-core": ">=0.
|
|
22
|
+
"@typespec/compiler": ">=0.52.0 <1.0.0",
|
|
23
|
+
"@typespec/http": ">=0.52.0 <1.0.0",
|
|
24
|
+
"@typespec/rest": ">=0.52.0 <1.0.0",
|
|
25
|
+
"@typespec/versioning": ">=0.52.0 <1.0.0",
|
|
26
|
+
"@typespec/openapi": ">=0.52.0 <1.0.0",
|
|
27
|
+
"@azure-tools/typespec-azure-core": ">=0.38.0 <1.0.0",
|
|
28
|
+
"@azure-tools/typespec-client-generator-core": ">=0.38.0 <1.0.0"
|
|
29
29
|
},
|
|
30
30
|
"private": true
|
|
31
31
|
}
|
package/typespec-tests/readme.md
CHANGED
|
@@ -48,7 +48,7 @@ Generated code will be at `./typespec-tests/tsp-output/` folder for inspect.
|
|
|
48
48
|
|
|
49
49
|
With this option, a `code-model.yaml` file is kept in `./typespec-tests/tsp-output/` folder after `tsp compile <target.tsp>`.
|
|
50
50
|
|
|
51
|
-
`Main.java` under `./typespec-extension` would load this `code-model.yaml` file as default, and run the Java code to generate the code.
|
|
51
|
+
`Main.java` under `./typespec-extension` would load this `code-model.yaml` file as default, and run the Java code to generate the code (`google-java-format` used in the module requires adding `--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED` to VM options).
|
|
52
52
|
At this stage, one can modify or debug the Java code (`./typespec-extension/src/main/java/`) in IDE. The code generated in `./typespec-tests/tsp-output/` would reflect the modified Java code.
|
|
53
53
|
|
|
54
54
|
Notice: there maybe some difference of other option between `tspconfig.yaml` and `EmitterOptions.java`. Remember to temporary modify `EmitterOptions.java` to reflect the option in `tspconfig.yaml` when running `Main.java` this way. (e.g. set `streamStyleSerialization` to `true`)
|