Skip to content

[Xamarin.Android.Build.Tasks] Generate error when JDK 9 is used - #1249

Merged
jonpryor merged 2 commits into
dotnet:masterfrom
dellis1972:Issue1248
Jan 30, 2018
Merged

jonpryor merged 2 commits into
dotnet:masterfrom
dellis1972:Issue1248

Conversation

@dellis1972

Copy link
Copy Markdown
Contributor

Fixes #1248

JDK 9 doesn't currently provide a robust and reliable user
experience. Until we can provide a reliable experience, we
should "fail early".

We already have a property for $(LatestSupportedJavaVersion)
which currently cannot be overridden. We also currently emit
a warning when the java version is greater than this property.
However with JDK 9 it seems a warning is not enough. So we
should change the warning to an error. We also need to make
$(LatestSupportedJavaVersion) writable so that it can be
overridden from the command line via.

msbuild /p:LatestSupportedJavaVersion=9.0.0 /t:SignAndroidPackage TheApp.csproj

Fixes dotnet#1248

JDK 9 doesn't currently provide a robust and reliable user
experience. Until we can provide a reliable experience, we
should "fail early".

We already have a property for `$(LatestSupportedJavaVersion)`
which currently cannot be overridden. We also currently emit
a warning when the java version is greater than this property.
However with JDK 9 it seems a warning is not enough. So we
should change the warning to an error. We also need to make
`$(LatestSupportedJavaVersion)` writable so that it can be
overridden from the command line via.

	msbuild /p:LatestSupportedJavaVersion=9.0.0 /t:SignAndroidPackage TheApp.csproj
@dellis1972 dellis1972 added this to the d15-6 milestone Jan 30, 2018
@dellis1972
dellis1972 requested a review from jonpryor January 30, 2018 12:43
@jonpryor
jonpryor merged commit 9c9e5e5 into dotnet:master Jan 30, 2018
dellis1972 added a commit that referenced this pull request Jan 30, 2018
Fixes: #1248

JDK 9 doesn't currently provide a robust and reliable user
experience. Until we can provide a reliable experience, we
should "fail early".

We already have a property for `$(LatestSupportedJavaVersion)`
which currently cannot be overridden. We also currently emit
a warning when the java version is greater than this property.
However with JDK 9 it seems a warning is not enough. So we
should change the warning to an error. We also need to make
`$(LatestSupportedJavaVersion)` writable so that it can be
overridden for local testing from the command line via:

	msbuild /p:LatestSupportedJavaVersion=9.0.0 /t:SignAndroidPackage TheApp.csproj
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants