Repository navigation
Make the sample compile against Main - #10
Merged
Merged
Conversation
The sample object extends Main, fills the hooks, and overrides grokBotKeysDirectoryName. Dependencies match the library pins, and includeBuild of the repo root substitutes the checkout. CI compiles the sample and does not run it. Co-authored-by: Leonid Dubinsky <dub@podval.org>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The sample is the in-repo consumer, and it did not compile: it still constructed
Builderagainst library0.2.0, Besom0.3.2, and GCP7.26.0, withclassroomTeachersGroupundefined. README Setup pointed atdomain-infra/src/main/scala/tld/domain/infra/besom/Main.scala, which is not in the tree.tld.domain.infra.Mainnow extendsorg.podval.tools.besom.Mainand does not definemain(Main.mainisPulumi.run).application.mainClassis that object. Template values staydomain.tldanddomain-infra. The service and role lists from the old sample are the three hooks. There is oneDnsZoneand noclassroomTeachersGroup.grokBotKeysDirectoryNameis overridden toDomain, so a run is not how you discover thatdomain.tldmisses the default match.Sample comments, not a new README chapter: subclass
Mainand fill the hooks; the consumer brings its own Besom jars because the library's arecompileOnly; version literals stay inline (Besomrejects avalinCustomResourceOptions);WithResourcesforces childOutputs; a hand-built resource has to passgcpResourceOptions()orcloudflareResourceOptions(); CognoMath sets-Xss8mbecause eight zones overflowResult.runM. This sample has one zone and does not set the flag. The sample does not passBucket's storage class parameter.Dependencies match this repo's pins:
besom-core_3:0.5.2,besom-gcp_3:9.0.0-core.0.5,besom-cloudflare_3:6.20.0-core.0.5, andorg.podval.tools:org.podval.tools.pulumi:0.6.0.settings.gradlefollows the infra shape (conventions plugin0.4.0from Maven,gradle.parent == nullaround the conventionsincludeBuild) andincludeBuilds the repo root (../..), which substitutes that coordinate.gradle.propertiessetsscalaVersion=3.10.0. The rootsettings.gradledoes not include the sample.CI compiles the sample with
./gradlew -p domain-infra/besom compileScalaand does not run it. README changes are the Setup section only: the main-class link, thedomain-infra/srcpath, and the four dependency bullets. Domains, the bootstrapgcloudsteps, the import commands, the GCP 6→7 section, and the0.6.0changelog entry are untouched. No edits undersrc/main/scala.Verified locally on JDK 25:
./gradlew buildand./gradlew -p domain-infra/besom compileScala.dependencyInsightshowsorg.podval.tools:org.podval.tools.pulumi:0.6.0 -> project :pulumi.