Skip to content

default-scala: align with Serverless environment version 4#152

Merged
andrewnester merged 1 commit into
databricks:mainfrom
nachille-sketch:serverless-jar-template-env-v4-fixes
May 18, 2026
Merged

default-scala: align with Serverless environment version 4#152
andrewnester merged 1 commit into
databricks:mainfrom
nachille-sketch:serverless-jar-template-env-v4-fixes

Conversation

@nachille-sketch
Copy link
Copy Markdown
Contributor

@nachille-sketch nachille-sketch commented Apr 28, 2026

Two single-line changes to align default-scala with serverless environment version 4. Without these, the template generates a project that targets a different runtime version than what the bundle deploys to.

Changes

1. dbr_version: 17.0 → 17.3 (library/template_variables.tmpl)

The variable feeds an sbt revision specifier of "{{dbr_version}}.+", which becomes "17.0.+" today. sbt resolves this to the latest 17.0.x databricks-connect client only — customers never pick up the 17.3.x client that ships on the current Serverless control plane (env v4).

2. environment_version: "4-scala-preview""4" (resources/{{.project_name}}.job.yml.tmpl)

default-scala is the only bundle in this repo still on the transitional 4-scala-preview value. Every other template (lakeflow_pipelines_python, dbt_sql, lakeflow_pipelines_sql, the ingestion monitoring notebooks, pydabs) uses plain "4", which is the canonical env v4 identifier now that Scala/Java JAR support has landed.

@nachille-sketch nachille-sketch force-pushed the serverless-jar-template-env-v4-fixes branch from 37df968 to ee5de53 Compare April 28, 2026 12:47
@nachille-sketch nachille-sketch changed the title default-scala: align template with Serverless environment v4 default-scala: bump dbr_version 17.0 -> 17.3 Apr 28, 2026
The variable feeds an sbt revision specifier of "{{dbr_version}}.+", which becomes
"17.0.+" today. sbt resolves this to the latest 17.0.x client only — customers never
pick up the 17.3.x client that ships on the current Serverless control plane (env
version 4). Bumping to 17.3 lets sbt resolve "17.3.+" and pull the current point
release.
@nachille-sketch nachille-sketch force-pushed the serverless-jar-template-env-v4-fixes branch from ee5de53 to 9ab0318 Compare April 28, 2026 13:12
@nachille-sketch nachille-sketch changed the title default-scala: bump dbr_version 17.0 -> 17.3 default-scala: align with Serverless environment version 4 Apr 28, 2026
andrewnester added a commit to databricks/cli that referenced this pull request May 18, 2026
## Changes
Sync cli code with changes in
databricks/bundle-examples#152

## Why
<!-- Why are these changes needed? Provide the context that the reviewer
might be missing.
For example, were there any decisions behind the change that are not
reflected in the code itself? -->

## Tests
<!-- How have you tested the changes? -->

<!-- If your PR needs to be included in the release notes for next
release,
add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->

---------

Co-authored-by: Andrew Nester <andrew.nester.dev@gmail.com>
@andrewnester andrewnester enabled auto-merge (squash) May 18, 2026 14:01
@andrewnester andrewnester merged commit e9b1a63 into databricks:main May 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants