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

Bump AGP 8.0.2, Gradle 8.3, Kotlin 1.8.21, Prod & Test Libs to latest #98

Merged
merged 3 commits into from
Sep 13, 2023

Conversation

abdallaadelessa
Copy link
Contributor

Fix a crash in the sample app

  • ToggleScrollInRecyclerViewActivity

Bump Libs

  • CompileSdk -> 34
  • AGP -> 8.0.2
  • Gradle -> 8.3
  • Kotlin -> 1.8.21
  • Compose -> 1.5.0

Fix android tests

  • MainActivityTest
  • RecyclerViewActivityTest

@abdallaadelessa abdallaadelessa marked this pull request as ready for review September 13, 2023 13:24
@abdallaadelessa abdallaadelessa force-pushed the abdullaessa/bump-versions branch 5 times, most recently from 74bad36 to bf5e578 Compare September 13, 2023 17:27
@@ -41,14 +53,21 @@ jobs:
key: cache-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
cache-gradle-
- name: Delete Maven Settings file
run: rm ~/.m2/settings.xml
Copy link
Contributor Author

@abdallaadelessa abdallaadelessa Sep 13, 2023

Choose a reason for hiding this comment

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

After installing java 17
i faced a problem with the maven publish plugin net.linguica.maven-settings

it seems that we have some servers here ~/.m2/settings.xml but we don’t have ~/.m2/settings-security.xml (with master password) to encrypt the servers passwords

The gradle was crashing here
https://github.com/mark-vieira/gradle-maven-settings-plugin/blob/master/src/main/groovy/net/linguica/gradle/maven/settings/LocalMavenSettingsLoader.java#L89

My workaround is to just delete the ~/.m2/settings.xml before triggering the build 😄

Copy link
Contributor Author

@abdallaadelessa abdallaadelessa Sep 13, 2023

Choose a reason for hiding this comment

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

it might be because of setup-java github action which i am using to install java 17
https://github.com/actions/setup-java/tree/main#maven-options
it seems to generate ~/.m2/settings.xml after installing java 17

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it should be fine for now i think as long as it doesn’t impact development or final publishing

Comment on lines +16 to +18
// Java
const val SOURCE_COMPATIBILITY = 11
const val TARGET_COMPATIBILITY = 11
Copy link
Member

Choose a reason for hiding this comment

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

Can you make sure to declare these updates in the change log: https://github.com/Yelp/bento/blob/master/CHANGELOG.md#-breaking-changes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i updated the commit message to include ! in order to be marked as a breaking change in the change log
https://www.conventionalcommits.org/en/v1.0.0/

gradle/wrapper/gradle-wrapper.properties Show resolved Hide resolved
@martinpdd8 martinpdd8 merged commit abaf9db into Yelp:master Sep 13, 2023
4 checks passed
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.

4 participants