Skip to content

[release/11.0.1xx] [Build.Tasks] Use SDK-defined Java version requirements - #13743

Merged
jonathanpeppers merged 1 commit into
release/11.0.1xxfrom
backport/pr-13133-to-release/11.0.1xx
Nov 24, 2026
Merged

jonathanpeppers merged 1 commit into
release/11.0.1xxfrom
backport/pr-13133-to-release/11.0.1xx

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Backport of #13133 to release/11.0.1xx

/cc @jonathanpeppers

The .NET for Android SDK configures a supported JDK range, currently `21.0` through `25.0.99`.  `Xamarin.Android.Tasks.ValidateJavaVersion` instead lowered the minimum to JDK 11 whenever the Android API level was 31 or later.  This allowed explicitly selected JDK 11/17 installations despite the SDK's configured minimum.

Honor `$(MinimumSupportedJavaVersion)` and `$(LatestSupportedJavaVersion)` directly, without hardcoding versions in the validator.  Remove the unused legacy validator and its framework/build-tools heuristics, along with the modern validator's unused `TargetPlatformVersion` input.  Preserve the corresponding input on `<ResolveAndroidTooling/>`.

Migrate the two Java-validation fixtures to the modern task.  Cover JDK 11/17 rejection, JDK 21/25 acceptance, JDK 26 rejection, exact range boundaries, release-file detection, and separate `java`/`javac` process validation.  Keep fake release files inside each fake JDK and use absolute fake Java executable paths so reruns do not contaminate other tests.

Remove only the obsolete English XA0031/XA0032 resources, retaining XA0031_NET and all localized files.  Document the SDK-defined minimum and preserve XA0032's historical documentation link.  This is an independent correctness/legacy-cleanup change; it does not include SDK-state, nested-build, cache, or concurrency refactors.  No associated issue.

Co-authored-by: Copilot App <[email protected]>
@jonathanpeppers
jonathanpeppers merged commit 50ab097 into release/11.0.1xx Nov 24, 2026
44 checks passed
@jonathanpeppers
jonathanpeppers deleted the backport/pr-13133-to-release/11.0.1xx branch November 24, 2026 14:21
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.

1 participant