Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema Package Overrides cause implementation dependecies and build failure #749

Closed
Tracked by #598
stack72 opened this issue Jul 19, 2022 · 1 comment
Closed
Tracked by #598
Assignees
Labels
area/codegen area/providers kind/bug Some behavior is incorrect or out of spec resolution/duplicate This issue is a duplicate of another issue

Comments

@stack72
Copy link
Contributor

stack72 commented Jul 19, 2022

The package overrides for kubernetes - pulumi/pulumi-kubernetes#2055 are showing as implementation dependencies in the build.gradle file in pulumi-java-gen 5.0.0

dependencies {
    implementation("admissionregistration.k8s.io/v1:admissionregistration.v1")
    implementation("admissionregistration.k8s.io/v1beta1:admissionregistration.v1beta1")
    implementation("apiextensions.k8s.io/v1:apiextensions.v1")
    implementation("apiextensions.k8s.io/v1beta1:apiextensions.v1beta1")
    implementation("apiregistration.k8s.io/v1:apiregistration.v1")
    implementation("apiregistration.k8s.io/v1beta1:apiregistration.v1beta1")
    implementation("apps/v1:apps.v1")
    implementation("apps/v1beta1:apps.v1beta1")
    implementation("apps/v1beta2:apps.v1beta2")
    implementation("auditregistration.k8s.io/v1alpha1:auditregistration.v1alpha1")
    implementation("authentication.k8s.io/v1:authentication.v1")
    implementation("authentication.k8s.io/v1beta1:authentication.v1beta1")
    implementation("authorization.k8s.io/v1:authorization.v1")

This is causing build failures as:

make java_sdk
/Users/stack72/code/go/src/github.com/pulumi/pulumi-kubernetes/bin/pulumi-java-gen generate --schema provider/cmd/pulumi-resource-kubernetes/schema.json --out sdk/java --build gradle-nexus
cd sdk/java/ && \
		echo "module fake_java_module // Exclude this directory from Go tools\n\ngo 1.17" > go.mod && \
		gradle --console=plain build
> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find admissionregistration.k8s.io/v1:admissionregistration.v1:.
     Required by:
         project :
   > Could not find admissionregistration.k8s.io/v1beta1:admissionregistration.v1beta1:.
     Required by:
         project :
   > Could not find apiextensions.k8s.io/v1:apiextensions.v1:.
     Required by:
         project :
   > Could not find apiextensions.k8s.io/v1beta1:apiextensions.v1beta1:.
     Required by:
         project :

You can find the WIP here - https://github.com/pulumi/pulumi-kubernetes/blob/auto-publish-javasdk/sdk/java/build.gradle

@stack72 stack72 added the needs-triage Needs attention from the triage team label Jul 19, 2022
@t0yv0
Copy link
Member

t0yv0 commented Jul 19, 2022

#739 root cause I think.

@dixler dixler added kind/bug Some behavior is incorrect or out of spec area/providers area/codegen and removed needs-triage Needs attention from the triage team labels Jul 19, 2022
@t0yv0 t0yv0 added the resolution/duplicate This issue is a duplicate of another issue label Jul 19, 2022
@t0yv0 t0yv0 closed this as completed Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/codegen area/providers kind/bug Some behavior is incorrect or out of spec resolution/duplicate This issue is a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants