@@ -7,14 +7,10 @@ NODE_MODULE_NAME := @pulumi/command
77NUGET_PKG_NAME := Pulumi.Command
88
99PROVIDER := pulumi-resource-${PACK}
10- CODEGEN := pulumi-gen-${PACK}
1110VERSION ?= $(shell pulumictl get version)
1211PROVIDER_PATH := provider
1312VERSION_PATH := ${PROVIDER_PATH}/pkg/version.Version
1413
15- JAVA_GEN := pulumi-java-gen
16- JAVA_GEN_VERSION := v0.5.0
17-
1814SCHEMA_FILE := provider/cmd/pulumi-resource-command/schema.json
1915GOPATH := $(shell go env GOPATH)
2016
@@ -27,7 +23,6 @@ ensure::
2723 cd examples && go mod tidy
2824
2925codegen ::
30- (cd provider && go build -o $( WORKING_DIR) /bin/${CODEGEN} -ldflags " -X ${PROJECT} /${VERSION_PATH} =${VERSION} " ${PROJECT} /${PROVIDER_PATH} /cmd/$( CODEGEN) )
3126 (cd provider && VERSION=${VERSION} go generate cmd/${PROVIDER} /main.go)
3227
3328provider ::
@@ -42,19 +37,19 @@ test_provider::
4237dotnet_sdk :: DOTNET_VERSION := $(shell pulumictl get version --language dotnet)
4338dotnet_sdk ::
4439 rm -rf sdk/dotnet
45- $( WORKING_DIR ) /bin/ $( CODEGEN ) -version= ${DOTNET_VERSION} dotnet $(SCHEMA_FILE ) $( CURDIR )
40+ pulumi package gen-sdk --language dotnet $(SCHEMA_FILE )
4641 cd ${PACKDIR} /dotnet/&& \
4742 echo " ${DOTNET_VERSION} " > version.txt && \
4843 dotnet build /p:Version=${DOTNET_VERSION}
4944
5045go_sdk ::
5146 rm -rf sdk/go
52- $( WORKING_DIR ) /bin/ $( CODEGEN ) -version= ${VERSION} go $(SCHEMA_FILE ) $( CURDIR )
47+ pulumi package gen-sdk --language go $(SCHEMA_FILE )
5348
5449nodejs_sdk :: VERSION := $(shell pulumictl get version --language javascript)
5550nodejs_sdk ::
5651 rm -rf sdk/nodejs
57- $( WORKING_DIR ) /bin/ $( CODEGEN ) -version= ${VERSION} nodejs $(SCHEMA_FILE ) $( CURDIR )
52+ pulumi package gen-sdk --language nodejs $(SCHEMA_FILE )
5853 cd ${PACKDIR} /nodejs/ && \
5954 yarn install && \
6055 yarn run tsc
@@ -64,7 +59,7 @@ nodejs_sdk::
6459python_sdk :: PYPI_VERSION := $(shell pulumictl get version --language python)
6560python_sdk ::
6661 rm -rf sdk/python
67- $( WORKING_DIR ) /bin/ $( CODEGEN ) -version= ${VERSION} python $(SCHEMA_FILE ) $( CURDIR )
62+ pulumi package gen-sdk --language python $(SCHEMA_FILE )
6863 cp README.md ${PACKDIR} /python/
6964 cd ${PACKDIR} /python/ && \
7065 python3 setup.py clean --all 2> /dev/null && \
@@ -74,11 +69,12 @@ python_sdk::
7469 cd ./bin && python3 setup.py build sdist
7570
7671bin/pulumi-java-gen ::
77- $( shell pulumictl download-binary -n pulumi-language- java -v $( JAVA_GEN_VERSION ) -r pulumi/pulumi-java)
72+ echo pulumi-java-gen is no longer necessary
7873
7974java_sdk :: PACKAGE_VERSION := $(shell pulumictl get version --language generic)
80- java_sdk :: bin/pulumi-java-gen
81- $(WORKING_DIR ) /bin/$(JAVA_GEN ) generate --schema $(SCHEMA_FILE ) --out sdk/java --build gradle-nexus
75+ java_sdk ::
76+ rm -rf sdk/java
77+ pulumi package gen-sdk --language java $(SCHEMA_FILE )
8278 cd sdk/java/ && \
8379 gradle --console=plain build
8480
0 commit comments