Skip to content

[Java.Interop] Bump to xamarin/java.interop@1bab47d #7028

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Jun 2, 2022
Merged

[Java.Interop] Bump to xamarin/java.interop@1bab47d #7028

merged 16 commits into from
Jun 2, 2022

Conversation

jpobst
Copy link
Contributor

@jpobst jpobst commented May 23, 2022

Bumps Java.Interop to target net7.0.

Changes: dotnet/java-interop@1f27ab5...1bab47d

The Configuration.Java.Interop.Override.props file is now partially
generated by xaprepare, to avoid having to hard code duplicate version
and path values in it.

The Java.Interop prepare step has been moved out of xaprepare and into
a new MSBuild target that will be ran with the .NET 7 preview SDK that is
installed by xaprepare.

Extra Java.Interop tests have been removed from the "Windows Build and
Smoke Test" job, as these should already be running as part of Java
Interop CI.

The dotnet --list-sdks command was failing on macOS when installing
the latest .NET 7 Preview SDK, and it has been replaced by a step that
runs dotnet --info.

jonpryor pushed a commit to dotnet/java-interop that referenced this pull request May 31, 2022
Context: dotnet/android#6598
Context: dotnet/android#7028

Update `$(TargetFrameworks)` across the various `.csproj` files to
use `$(DotNetTargetFramework)`, as xamarin/xamarin-android does.
Additionally, set `$(DotNetTargetFramework)`=net7.0 (.NET 7).

Similar to commit e7bacc3, Mono cannot be used to build against
.NET 7 reference assemblies:

	/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1232,5):
	error MSB3971: The reference assemblies for ".NETFramework,Version=v7.0" were not found.
	You might be using an older .NET SDK to target .NET 5.0 or higher.
	Update Visual Studio and/or your .NET SDK.

Fix this by updating the **Mac - Mono** CI job to *build* with .NET 7,
while Mono-focused unit tests are still run with Mono.

Note: dotnet/android#7028 will be required in order to bump
Java.Interop within xamarin-android.

Co-authored-by: Peter Collins <[email protected]>
@pjcollins pjcollins changed the title [Java.Interop] Bump to version main@33548c92. [Java.Interop] Bump to xamarin/java.interop@1bab47d May 31, 2022
@pjcollins pjcollins marked this pull request as ready for review May 31, 2022 19:22
@pjcollins pjcollins requested a review from jonathanpeppers May 31, 2022 19:22
<_MSBuildFiles Include="@(_LocalizationLanguages->'$(MSBuildSrcDir)\%(Identity)\Java.Interop.Localization.resources.dll')" />
<_MSBuildFiles Include="@(_LocalizationLanguages->'$(MSBuildSrcDir)\%(Identity)\Java.Interop.Localization.resources.dll')" ExcludeFromAndroidNETSdk="true" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this file not exist now?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this change is not strictly necessary, but I figured it would be best to pull these Java.Interop.Localization.resources.dll files from the same location that we take Java.Interop.Localization.dll and other JI tools from for the .NET SDK (e.g. https://github.com/xamarin/xamarin-android/pull/7028/files#diff-0134c03744a69c35881982fb2140cf780816fe186f0b6fac66477a8416d2fca6R82)

@pjcollins
Copy link
Member

I guess I missed a JI bump when testing here before that PR was merged... We may need #7038 to land before this.

@jonpryor
Copy link
Contributor

jonpryor commented Jun 1, 2022

Commit message:

Bump to xamarin/java.interop/main@1bab47d (#7028)

Changes: https://github.com/xamarin/java.interop/compare/1f27ab552d03aeb74cdc6f8985fcffbfdb9a7ddf...1bab47d6eda682de1e38ed289acb56ebda770c38

  * xamarin/java.interop@1bab47d6: [build] Target `net7.0` (#988)

Bumps Java.Interop to target `net7.0`.

The `Configuration.Java.Interop.Override.props` file is now partially
generated by `xaprepare`, to avoid having to hard code duplicate
version and path values in it.

The Java.Interop `Prepare` step has been moved out of `xaprepare` and
into a new MSBuild target that will be ran with the .NET 7 preview
SDK that is installed by `xaprepare`.

Extra Java.Interop tests have been removed from the
"Windows Build and Smoke Test" job, as these should already be
running as part of Java Interop CI.

The `dotnet --list-sdks` command was failing on macOS when installing
the latest .NET 7 Preview SDK, and it has been replaced by a step
that runs `dotnet --info`.

Co-authored-by: Peter Collins <[email protected]>

@jonpryor jonpryor merged commit e52c131 into main Jun 2, 2022
@jonpryor jonpryor deleted the ji-net7 branch June 2, 2022 00:41
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 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.

5 participants