Skip to content

Commit

Permalink
chore: update pulumi-java to v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
muhlba91 committed Jan 9, 2025
1 parent 5a8bdb8 commit 7649c63
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 72 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PROVIDER := pulumi-resource-${PACK}
VERSION := $(shell pulumictl get version)

JAVA_GEN := pulumi-java-gen
JAVA_GEN_VERSION := v0.20.0
JAVA_GEN_VERSION := v1.0.0

TESTPARALLELISM := 4

Expand Down
2 changes: 1 addition & 1 deletion provider/cmd/pulumi-resource-proxmoxve/schema-embed.json

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions sdk/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ repositories {
dependencies {
implementation("com.google.code.findbugs:jsr305:3.0.2")
implementation("com.google.code.gson:gson:2.8.9")
implementation("com.pulumi:pulumi:0.20.0")
implementation("com.pulumi:pulumi:1.0.0")
}

task sourcesJar(type: Jar) {
Expand All @@ -65,12 +65,14 @@ def genPulumiResources = tasks.register('genPulumiResources') {
def outDir = file("$resourcesDir/$subDir")
outDir.mkdirs()
new File(outDir, "version.txt").text = resolvedVersion
def info = new Object()
info.metaClass.resource = true
info.metaClass.name = "proxmoxve"
info.metaClass.server = "github://api.github.com/muhlba91/pulumi-proxmoxve"
info.metaClass.version = resolvedVersion
def infoJson = new groovy.json.JsonBuilder(info).toPrettyString()
def builder = new groovy.json.JsonBuilder()
builder {
resource true
name "proxmoxve"
server "github://api.github.com/muhlba91/pulumi-proxmoxve"
version resolvedVersion
}
def infoJson = builder.toPrettyString()
new File(outDir, "plugin.json").text = infoJson
}
}
Expand Down Expand Up @@ -151,4 +153,4 @@ if (signingKey) {
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mainPublication
}
}
}
Loading

0 comments on commit 7649c63

Please sign in to comment.