Skip to content
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

Upgrade Gradle 6.7 to 7.6 #218

Merged
merged 17 commits into from
Mar 5, 2023
Merged

Upgrade Gradle 6.7 to 7.6 #218

merged 17 commits into from
Mar 5, 2023

Commits on Mar 5, 2023

  1. Configuration menu
    Copy the full SHA
    8c2ff01 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ea61395 View commit details
    Browse the repository at this point in the history
  3. jcenter to mavenCentral

    The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 8.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/7.3.3/userguide/upgrading_version_6.html#jcenter_
    deprecation
            at repos_bkzuyxz1b6jyz1bsforcw3adg$_run_closure1.doCall(P:\projects\workspace\net.twisterrob.inventory\gradle\repos.gradle:5)
    TWiStErRob committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    fc29cdf View commit details
    Browse the repository at this point in the history
  4. The KotlinDslPluginOptions.experimentalWarning property has been depr…

    …ecated. This is scheduled to be removed in Gradle 8.0. Flag has no effect since `kotlin-dsl` no longer relies on experimental features.
    
            at Build_gradle$4.execute(build.gradle.kts:37)
            (Run with --stacktrace to get the full stack trace of this deprecation warning.)
    TWiStErRob committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    78d7fd3 View commit details
    Browse the repository at this point in the history
  5. Upgrade convention plugin. This removed sourceCompatibility hacks, so…

    … necessary to define language levels. Tests were hacked to higher, but it simpler to just downgrade the sources to Java 1.7.
    TWiStErRob committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    6be9ffd View commit details
    Browse the repository at this point in the history
  6. Downgrade flexbox to be able to build:

    Warning: class [META-INF/versions/9/module-info.class] unexpectedly contains class [module-info]
    Warning: there were 1 classes in incorrectly named files.
             You should make sure all file names correspond to their class names.
             The directory hierarchies must correspond to the package hierarchies.
             (http://proguard.sourceforge.net/manual/troubleshooting.html#unexpectedclass)
             If you don't mind the mentioned classes not being written out,
             you could try your luck using the '-ignorewarnings' option.
    TWiStErRob committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    e8d4de3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2c0ff0f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    79839cf View commit details
    Browse the repository at this point in the history
  9. Hack around takari-jar

    TWiStErRob committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    4d33460 View commit details
    Browse the repository at this point in the history
  10. * Where:

    Build file 'P:\projects\workspace\net.twisterrob.inventory\android\build.gradle' line: 110
    
    * What went wrong:
    A problem occurred evaluating root project 'Inventory'.
    > A problem occurred configuring project ':android'.
       > It is too late to set baselinePath
         It has already been read to configure this project.
         Consider either moving this call to be during evaluation,
         or using the variant API.
    TWiStErRob committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    a47fe9a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    9317602 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a66ecfa View commit details
    Browse the repository at this point in the history
  13. Remove workaround for CI

    TWiStErRob committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    a5429ed View commit details
    Browse the repository at this point in the history
  14. Bump to Java 11

    TWiStErRob committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    c2f403b View commit details
    Browse the repository at this point in the history
  15. Remove unused hack

    TWiStErRob committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    1dc1418 View commit details
    Browse the repository at this point in the history
  16. Upgrade ProGuard to handle newer class files

    Execution failed for task ':android:minifyReleaseWithProguard'.
    > java.io.IOException: Can't read [libs\twister-lib-java\lib\general\build\.transforms\...\transformed\jetified-general-1.0-SNAPSHOT.jar(;;;;;;;**.class)]
     (Can't process class [net/twisterrob/java/annotations/SimpleDateFormatString$Checker.class] (Unsupported version number [55.0] (maximum 54.0, Java 10)))
    TWiStErRob committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    a48e71e View commit details
    Browse the repository at this point in the history
  17. Patch libraries to build ProGuard compatible Java bytecode.

    :android:minifyReleaseWithProguard failed with:
    Warning: net.twisterrob.java.utils.StringTools: can't find referenced class java.lang.invoke.StringConcatFactory
    
    for many java.io/java.text/java.utils classes.
    TWiStErRob committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    e1d8acb View commit details
    Browse the repository at this point in the history