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

[packages] replace maven plugin with maven-publish plugin #16080

Merged
merged 5 commits into from
Jan 28, 2022

Conversation

Kudo
Copy link
Contributor

@Kudo Kudo commented Jan 26, 2022

Why

the maven plugin is deprecated in gradle 7 and the maven-publish plugin is the replacement.

fix #12774

How

  • replace maven plugin with maven-publish plugin and update its configurations.
  • we still need androidSourcesJar and artifact(androidSourcesJar) to generate sourcesJar
  • original uploadArchives would be replaced to publish

Test Plan

  • diff the generated artifacts before and after the change in $HOME/.m2/reposotiry
  • test from react-native 0.67 project (gradle 7)
  • test from react-native 0.66 project (gradle 6)

Checklist

  • Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md).
  • This diff will work correctly for expo build (eg: updated @expo/xdl).
  • This diff will work correctly for expo prebuild & EAS Build (eg: updated a module plugin).

@expo-bot expo-bot added bot: suggestions ExpoBot has some suggestions bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Jan 26, 2022
@Kudo Kudo force-pushed the @kudo/update-maven-plugin branch 2 times, most recently from 9e080cd to 043cc9d Compare January 27, 2022 13:42
@Kudo Kudo marked this pull request as ready for review January 27, 2022 14:46
@Kudo Kudo merged commit 97ff912 into main Jan 28, 2022
@Kudo Kudo deleted the @kudo/update-maven-plugin branch January 28, 2022 09:21
@Kudo Kudo mentioned this pull request Jan 28, 2022
10 tasks
Kudo added a commit that referenced this pull request Jan 28, 2022
the `maven` plugin is deprecated in gradle 7 and the `maven-publish` plugin is the replacement.

fix #12774

- replace `maven` plugin with `maven-publish` plugin and update its configurations.
- we still need `androidSourcesJar` and `artifact(androidSourcesJar)` to generate sourcesJar
- original `uploadArchives` would be replaced to `publish`

- diff the generated artifacts before and after the change in `$HOME/.m2/reposotiry`
- test from react-native 0.67 project (gradle 7)
- test from react-native 0.66 project (gradle 6)
Kudo added a commit that referenced this pull request Feb 17, 2022
# Why

try to bump react-native version for sdk 45

# How

- [x] upgrade package.json version to `react-native@0.67.2`
- [x] apply changes from [upgrade helper](https://react-native-community.github.io/upgrade-helper/?from=0.66.4&to=0.67.2)
- [x] since 0.67 upgrade to gradle 7 and remove `maven` plugin. ~this pr also migrate packages to use `maven-publish` plugin~ landed in separated pr #16080
- [x] [bare-expo][android] maven plugin from third-party: `react-native-appearance`. ~consider it's archived and deprecated, how to deal with this.~ since we are going to drop sdk 42, i've removed this dependency.
- [x] [bare-expo][android] maven plugin from third-party: `react-native-shared-element`. IjzerenHein/react-native-shared-element#90
- [x] [dev-launcher][android] having a `DevLauncherDevSupportManager.kt` for 0.67 and passing null to the new `SurfaceDelegateFactory`. simply to fix the build error first.
- [x] [dev-menu][android] it will crash from missing libjsc.so in hermes mode. ~workaround to use jsc mode first~. fix pr: #16099

# Test Plan

- bare-expo launch
prakashbask pushed a commit to prakashbask/expo that referenced this pull request Mar 16, 2022
# Why

try to bump react-native version for sdk 45

# How

- [x] upgrade package.json version to `react-native@0.67.2`
- [x] apply changes from [upgrade helper](https://react-native-community.github.io/upgrade-helper/?from=0.66.4&to=0.67.2)
- [x] since 0.67 upgrade to gradle 7 and remove `maven` plugin. ~this pr also migrate packages to use `maven-publish` plugin~ landed in separated pr expo#16080
- [x] [bare-expo][android] maven plugin from third-party: `react-native-appearance`. ~consider it's archived and deprecated, how to deal with this.~ since we are going to drop sdk 42, i've removed this dependency.
- [x] [bare-expo][android] maven plugin from third-party: `react-native-shared-element`. IjzerenHein/react-native-shared-element#90
- [x] [dev-launcher][android] having a `DevLauncherDevSupportManager.kt` for 0.67 and passing null to the new `SurfaceDelegateFactory`. simply to fix the build error first.
- [x] [dev-menu][android] it will crash from missing libjsc.so in hermes mode. ~workaround to use jsc mode first~. fix pr: expo#16099

# Test Plan

- bare-expo launch
prakashbask pushed a commit to prakashbask/expo that referenced this pull request Mar 16, 2022
# Why

the `maven` plugin is deprecated in gradle 7 and the `maven-publish` plugin is the replacement.

fix expo#12774

# How

- replace `maven` plugin with `maven-publish` plugin and update its configurations.
- we still need `androidSourcesJar` and `artifact(androidSourcesJar)` to generate sourcesJar
- original `uploadArchives` would be replaced to `publish`

# Test Plan

- diff the generated artifacts before and after the change in `$HOME/.m2/reposotiry`
- test from react-native 0.67 project (gradle 7)
- test from react-native 0.66 project (gradle 6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin with id ‘maven’ not found.
5 participants