-
Notifications
You must be signed in to change notification settings - Fork 561
JetBrains OpenJDK 11 #4567
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
JetBrains OpenJDK 11 #4567
Changes from 5 commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
88207fd
JetBrains OpenJDK 11
grendello 57530e0
Bump dependencies!
jonpryor 3e6af18
OpenJDK11 support!
jonpryor e6d7542
[r8, manifestmerger] Target JDK 1.8
jonpryor 6601fbc
[java-runtime] Use r8.jar instead of dx
jonpryor b78eed0
[manfestmerger] r8 must be built first
jonpryor 3828571
Merge remote-tracking branch 'origin/master' into jetbrains-openjdk
jonpryor a17f1c6
Fix build break when compiling xaprepare
jonpryor ebf3559
[java-runtime] Add ProjectReference for r8.csproj
jonpryor 01be151
[java-runtimes] Fixity Fix
jonpryor ec9eca0
[scripts] Use r8.jar instead of dx
jonpryor bc7da93
Oops, forgot this s/dx/r8.jar/ replacement
jonpryor 9b02c35
Let's try this again.
jonpryor 0fca1ef
Trailing \ is bad
jonpryor f1af33e
[build] set $JAVA_HOME for mac test phases
jonathanpeppers 181e4f5
Merge branch 'master' of https://github.com/xamarin/xamarin-android i…
jonathanpeppers 1b6acb6
Merge remote-tracking branch 'origin/master' into jetbrains-openjdk
jonpryor c2a95e2
Merge remote-tracking branch 'origin/master' into jetbrains-openjdk
jonpryor 85093ff
Use commandlinetools' avdmanager
jonpryor 79a417a
Bump to xamarin/monodroid/jonp-try-xa-xat-ref@beb7c8fc
jonpryor 1773d1b
Set JavacSourceVersion, JavacTargetVersion
jonpryor 4eb11e8
[build] move Microsoft OpenJDK on Windows
jonathanpeppers 527ac29
Remove `sdkmanager emulator` invocation
jonpryor 6bf1bef
Merge remote-tracking branch 'origin/master' into jetbrains-openjdk
jonpryor cea6614
Merge remote-tracking branch 'origin/master' into jetbrains-openjdk
jonpryor d47bd6b
Fix <CreateMultiDexMainDexClassList/>?
jonpryor 01901fe
Set `$(LatestSupportedJavaVersion)`=11.0.4
jonpryor 6a7dfa3
Fix `make all-tests`
jonpryor 70695d9
Fix Xamarin.Android.Build.Tests.BuildTest.GetDependencyWhenSDKIsMissi…
jonpryor fa8ac9e
Use cmdline-tools lint
jonpryor ed3e037
Add .idsig files to @(FileWrites)
jonathanpeppers 5d62091
[tests] set /p:JavaSdkDirectory for MSBuild tests
jonathanpeppers 4671de1
Revert "[build] move Microsoft OpenJDK on Windows"
jonathanpeppers f4960e8
Set %JAVA_HOME% for Windows Build and Test
jonathanpeppers 841a05e
[test] accept SHA-256 for KeyToolTests
jonathanpeppers c0351dc
Merge branch 'master' of https://github.com/xamarin/xamarin-android i…
jonathanpeppers 101139c
[build] fix %JAVA_HOME% on Windows
jonathanpeppers 026bcf7
Use $(AndroidFrameworkVersion) instead of $(AndroidUseLatestPlatformSdk)
jonathanpeppers e120f20
[REVERT ME] print out %JAVA_HOME% throughout the build
jonathanpeppers 90286ca
[tests] fix incorrect paths to Configuration.props
jonathanpeppers 167d7ee
[REVERT ME] print out more %JAVA_HOME%
jonathanpeppers b2edbc9
[REVERT ME] one more %JAVA_HOME%
jonathanpeppers 323a268
[Xamarin.Android.Build.Tasks]
jonpryor cf29684
Merge remote-tracking branch 'origin/master' into jetbrains-openjdk
jonpryor 3588f6c
Revert "[REVERT ME] print out %JAVA_HOME%"
jonathanpeppers 8f0d900
[tests] retrieve JavaSdkDirectory from Configuration.props
jonathanpeppers 2e22e76
[Xamarin.Android.Build.Tasks] Disable Javadoc use on JDK11
jonpryor 4a32036
[tests] DotNetCLI should set JavaSdkDirectory
jonathanpeppers fe50c6e
[tests] CommonSampleLibrary is not an XA project
jonathanpeppers 112980f
Revert "[tests] CommonSampleLibrary is not an XA project"
jonathanpeppers 47ee214
Merge remote-tracking branch 'upstream/master' into jetbrains-openjdk
jonathanpeppers dd0c885
[tests] CodeBehindTests explicitly set $(TFV)
jonathanpeppers 3258733
[tests] windows appears to need $(AppendTargetFrameworkToIntermediate…
jonathanpeppers 4aa1a84
Merge remote-tracking branch 'upstream/master' into jetbrains-openjdk
jonathanpeppers 90414d3
Revert "Bump to Android SDK Build-tools 29.0.2 (#4749)"
jonathanpeppers e5467ed
Bump to xamarin/xamarin-android-tools/master@967c278b (#4754)
jonpryor ef023a2
[XA.Build.Tasks] ServiceAttribute.ForegroundServiceType is [Flags] (#…
jpobst a121597
[Xamarin.Android.Build.Tasks] Fix use of non-int minSdkVersion
jonpryor a2b827e
<ValidateJavaVersion/> should be able to parse -rc4 in build-tools ve…
jonathanpeppers e73bc3a
[Xamarin.Android.Build.Tasks] Support cmdline-tools
jonpryor 5dd172e
[Xamarin.Android.Build.Tasks] Build-tools r30 requires JDK11
jonpryor 755a452
Merge remote-tracking branch 'origin/master' into jetbrains-openjdk
jonpryor d1a7224
Try setting JI_JAVA_HOME.
jonpryor ebfd349
Don't setup test env for macOS Designer tests?
jonpryor 56f1983
[ci] Export JI_JAVA_HOME on test environments
jonpryor 9a5f3d0
[ci] Run `setup-test-environment.yaml` on macOS+Designer
jonpryor b874aeb
[CI] Allow overriding of xa source dir for test env setup
pjcollins 6e53dd4
Fix setup-test-environment whitespace
pjcollins e6b8346
Bump to xamarin/xamarin-android-tools/jonp-windows-jvm-paths
jonpryor fbca417
Merge remote-tracking branch 'origin/master' into jetbrains-openjdk
jonpryor 9b25904
JI_JAVA_HOME sanitization
jonpryor 44feed1
[ci] Add missing xaSourceDir param to setup-test-environment.yaml
pjcollins 2d07941
Fix merge from fbca4170e4665445070cab62deeb1b37a5364b5a
jonpryor 668eadb
[ci] fix macOS test provisioning location
jonpryor 9b9618c
Export JI_JAVA_HOME when running `make prepare` for Java.Interop
jonpryor 908cf89
Merge remote-tracking branch 'origin/master' into jetbrains-openjdk
jonpryor 2f069fb
Update default JDK to OpenJDK11.
jonpryor 6c0de39
Merge remote-tracking branch 'origin/master' into jetbrains-openjdk
jonpryor b550783
Nuse `nuget restore -Verbosity detailed`
jonpryor 9b11c79
Merge remote-tracking branch 'origin/master' into jetbrains-openjdk
jonpryor 7debfbd
[ci] Fix Designer
jonpryor 5841608
Add release notes
jonpryor 56503a3
More macOS+Designer integration fixes.
jonpryor 9167b81
Increase expected rebuild times.
jonpryor c898c9e
Fix Xamarin.Designer.Android binlog source location
jonpryor db4dbe5
Flushity Flush
jonpryor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
13 changes: 13 additions & 0 deletions
13
build-tools/xaprepare/xaprepare/Steps/Step_InstallJetBrainsOpenJDK.Linux.cs
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| using System; | ||
| using System.Threading.Tasks; | ||
|
|
||
| namespace Xamarin.Android.Prepare | ||
| { | ||
| partial class Step_InstallJetBrainsOpenJDK | ||
| { | ||
| void MoveContents (string sourceDir, string destinationDir) | ||
| { | ||
| Utilities.MoveDirectoryContentsRecursively (sourceDir, destinationDir); | ||
| } | ||
| } | ||
| } |
14 changes: 14 additions & 0 deletions
14
build-tools/xaprepare/xaprepare/Steps/Step_InstallJetBrainsOpenJDK.MacOS.cs
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| using System; | ||
| using System.IO; | ||
|
|
||
| namespace Xamarin.Android.Prepare | ||
| { | ||
| partial class Step_InstallJetBrainsOpenJDK | ||
| { | ||
| void MoveContents (string sourceDir, string destinationDir) | ||
| { | ||
| string realSourceDir = Path.Combine (sourceDir, "Contents", "Home"); | ||
| Utilities.MoveDirectoryContentsRecursively (realSourceDir, destinationDir); | ||
| } | ||
| } | ||
| } |
13 changes: 13 additions & 0 deletions
13
build-tools/xaprepare/xaprepare/Steps/Step_InstallJetBrainsOpenJDK.Unix.cs
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| using System; | ||
| using System.Threading.Tasks; | ||
|
|
||
| namespace Xamarin.Android.Prepare | ||
| { | ||
| partial class Step_InstallJetBrainsOpenJDK | ||
| { | ||
| async Task<bool> Unpack (string fullArchivePath, string destinationDirectory, bool cleanDestinationBeforeUnpacking = false) | ||
| { | ||
| return await Utilities.Unpack (fullArchivePath, destinationDirectory, cleanDestinatioBeforeUnpacking: true); | ||
| } | ||
| } | ||
| } |
43 changes: 43 additions & 0 deletions
43
build-tools/xaprepare/xaprepare/Steps/Step_InstallJetBrainsOpenJDK.Windows.cs
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| using System; | ||
| using System.IO; | ||
| using System.Threading.Tasks; | ||
|
|
||
| namespace Xamarin.Android.Prepare | ||
| { | ||
| partial class Step_InstallJetBrainsOpenJDK | ||
| { | ||
| async Task<bool> Unpack (string fullArchivePath, string destinationDirectory, bool cleanDestinationBeforeUnpacking = false) | ||
| { | ||
| // On Windows we don't have Tar available and the Windows package is a .tar.gz | ||
| // 7zip can unpack tar.gz but it's a two-stage process - first it decompresses the package, then it can be | ||
| // invoked again to extract the actual tar contents. | ||
|
|
||
| if (cleanDestinationBeforeUnpacking) | ||
| Utilities.DeleteDirectorySilent (destinationDirectory); | ||
| Utilities.CreateDirectory (destinationDirectory); | ||
|
|
||
| var sevenZip = new SevenZipRunner (Context.Instance); | ||
| Log.DebugLine ($"Uncompressing {fullArchivePath} to {destinationDirectory}"); | ||
| if (!await sevenZip.Extract (fullArchivePath, destinationDirectory)) { | ||
| Log.DebugLine ($"Failed to decompress {fullArchivePath}"); | ||
| return false; | ||
| } | ||
|
|
||
| string tarPath = Path.Combine (destinationDirectory, Path.GetFileNameWithoutExtension (fullArchivePath)); | ||
| bool ret = await sevenZip.Extract (tarPath, destinationDirectory); | ||
| Utilities.DeleteFileSilent (tarPath); | ||
|
|
||
| if (!ret) { | ||
| Log.DebugLine ($"Failed to extract TAR contents from {tarPath}"); | ||
| return false; | ||
| } | ||
|
|
||
| return true; | ||
| } | ||
|
|
||
| void MoveContents (string sourceDir, string destinationDir) | ||
| { | ||
| Utilities.MoveDirectoryContentsRecursively (sourceDir, destinationDir); | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.