Skip to content

Conversation

@lubomsky
Copy link

No description provided.

Add UpdatePlaywrightVersion.java execution to update playwright dependencies in README.md
@lubomsky
Copy link
Author

@lubomsky please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree

);
private static final Pattern MAVEN_PATTERN = Pattern.compile(
"(<dependency>\\s*<groupId>com.microsoft.playwright</groupId>\\s*<artifactId>playwright</artifactId>\\s*)<version>\\d+\\.\\d+\\.\\d+</version>(\\s*</dependency>)"
);
Copy link
Member

Choose a reason for hiding this comment

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

Does it much multiline by default (without MULTILINE flag) ?

Copy link
Author

Choose a reason for hiding this comment

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

Yes
Zrzut ekranu 2025-03-14 o 18 03 47

if (!versionMatcher.find()) {
throw new NoSuchElementException("Project version was not found");
}
String version = versionMatcher.group(1);
Copy link
Member

Choose a reason for hiding this comment

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

Version in pom.xml usually refers to the next development version, which hasn't been published yet. Let's set it to major.(minor-1).0 similar to what we did in #1748.

Also would be nice to unify this two places, sot that the versions are patched at the same place with the same deps version.

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we can move it to JS like its done in https://github.com/microsoft/playwright-java/pull/1748/files - then the actual PR should be much smaller.

Copy link
Member

@yury-s yury-s left a comment

Choose a reason for hiding this comment

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

After discussing this offline, we decided to align the readme file with our other language ports and redirect to the main documentation site playwright.dev. We already have infra that keeps the versions in the examples up to date, and it's mote comprehensive than this README. After #1766 there will be no mentions of package versions in the readme.

@yury-s
Copy link
Member

yury-s commented Mar 17, 2025

Closing per the comment above. There is no version in the readme any more.

@yury-s yury-s closed this Mar 17, 2025
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.

3 participants