generated from pulumi/pulumi-provider-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the need for cmd/pulumi-gen-pulumiservice (#240)
We don't need to maintain our own gen code, we can use the pulumi binary for that. This makes it important that we use the right version of the pulumi binary, so we use the Makefile to ensure the version of pulumi used matches the version of pulumi we depend on in `provider/go.mod`. We use a similar pattern in other native providers. I'm tagging @pierskarsenbarg and @komalali since they were the suggested reviewers. If I should tag someone else here, please let me know.
- Loading branch information
Showing
131 changed files
with
315 additions
and
2,769 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
// *** WARNING: this file was generated. *** | ||
// *** Do not edit by hand unless you're certain you know what you are doing! *** | ||
plugins { | ||
id("java-library") | ||
id("maven-publish") | ||
} | ||
|
||
var gprUser = project.findProperty("gpr.user") ?: System.getenv("GPR_USER") | ||
var gprToken = project.findProperty("gpr.token") ?: System.getenv("GPR_TOKEN") | ||
|
||
java { | ||
toolchain { | ||
languageVersion = JavaLanguageVersion.of(11) | ||
} | ||
} | ||
|
||
compileJava { | ||
options.fork = true | ||
options.forkOptions.jvmArgs.addAll(["-Xmx4g"]) | ||
} | ||
|
||
repositories { | ||
maven { // The google mirror is less flaky than mavenCentral() | ||
url("https://maven-central.storage-download.googleapis.com/maven2/") | ||
} | ||
mavenCentral() | ||
mavenLocal() | ||
if (gprUser) { | ||
repositories { | ||
maven { | ||
url = uri("https://maven.pkg.github.com/pulumi/pulumi-java") | ||
credentials { | ||
username = gprUser | ||
password = gprToken | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
var pulumiJavaSdkVersion = System.getenv("PULUMI_JAVA_SDK_VERSION") ?: "0.0.1" | ||
|
||
dependencies { | ||
implementation "com.pulumi:pulumi:$pulumiJavaSdkVersion" | ||
implementation("com.google.code.findbugs:jsr305:3.0.2") | ||
api("com.google.guava:guava:30.1-jre") // FIXME: do we really want to expose this dep? | ||
api("com.google.code.gson:gson:2.8.6") // make sure we don't clash with grpc deps | ||
|
||
implementation("com.google.protobuf:protobuf-java:3.12.0") // make sure we don't clash with grpc deps | ||
implementation("com.google.protobuf:protobuf-java-util:3.12.0") // make sure we don't clash with grpc deps | ||
|
||
def junitVersion = "5.7.2" | ||
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}") | ||
testImplementation("org.junit.jupiter:junit-jupiter-params:${junitVersion}") | ||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}") | ||
testImplementation("org.assertj:assertj-core:3.20.2") | ||
testImplementation("org.mockito:mockito-core:3.12.4") | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
testLogging { | ||
showStandardStreams = true | ||
exceptionFormat = 'full' | ||
|
||
// set options for log level LIFECYCLE | ||
events = ['failed'] | ||
|
||
info { | ||
events = ['failed', 'skipped'] | ||
} | ||
|
||
debug { | ||
events = ['started', 'skipped', 'failed'] | ||
} | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
groupId = 'com.pulumi' | ||
artifactId = 'pulumiservice' | ||
version = System.getenv("SDK_VERSION") ?: "0.0.0-unset" | ||
from components.java | ||
} | ||
} | ||
// from https://docs.github.com/en/actions/publishing-packages/publishing-java-packages-with-gradle | ||
repositories { | ||
maven { | ||
name = "GitHubPackages" | ||
url = "https://maven.pkg.github.com/pulumi/pulumi-pulumiservice" | ||
credentials { | ||
username = System.getenv("GITHUB_ACTOR") | ||
password = System.getenv("GITHUB_TOKEN") | ||
} | ||
} | ||
} | ||
} | ||
|
||
javadoc { | ||
if (JavaVersion.current().isJava9Compatible()) { | ||
options.addBooleanOption('html5', true) | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// *** WARNING: this file was generated. *** | ||
// *** Do not edit by hand unless you're certain you know what you are doing! *** | ||
|
||
pluginManagement { | ||
repositories { | ||
maven { // The google mirror is less flaky than mavenCentral() | ||
url("https://maven-central.storage-download.googleapis.com/maven2/") | ||
} | ||
gradlePluginPortal() | ||
} | ||
} | ||
|
||
rootProject.name = "com.pulumi.pulumiservice" | ||
include("lib") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.