Skip to content

Feature/no red5 parent - #203

Open
jantekb wants to merge 1 commit into
masterfrom
feature/no-red5-parent
Open

Feature/no red5 parent#203
jantekb wants to merge 1 commit into
masterfrom
feature/no-red5-parent

Conversation

@jantekb

@jantekb jantekb commented Jun 8, 2026

Copy link
Copy Markdown
Contributor
  • Detaching from old red5 parent pom
  • Upgraded github action versions
  • Support branch-specific snapshots

@jantekb
jantekb force-pushed the feature/no-red5-parent branch 2 times, most recently from bd7a604 to e8850c8 Compare June 8, 2026 12:36
@jantekb
jantekb requested a review from burak-58 June 8, 2026 12:37
@jantekb
jantekb force-pushed the feature/no-red5-parent branch from e8850c8 to a412a42 Compare June 8, 2026 13:05
@jantekb jantekb linked an issue Jun 10, 2026 that may be closed by this pull request
@jantekb
jantekb force-pushed the feature/no-red5-parent branch from a412a42 to c31eb43 Compare June 10, 2026 11:48
Comment thread pom.xml
<groupId>io.antmedia</groupId>
<artifactId>parent</artifactId>
<version>4.0.0-SNAPSHOT</version>
<version>${revision}</version>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is required for dynamic versioning, as recommended by CI friendly maven versioning https://maven.apache.org/guides/mini/guide-maven-ci-friendly.html

Comment thread pom.xml Outdated
<configuration>
<release>${java.version}</release>
<verbose>false</verbose>
<fork>false</fork>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Was true previously, slowing things down unnecessarily

Comment thread pom.xml Outdated
<version>${maven-compiler-plugin.version}</version>
<configuration>
<release>${java.version}</release>
<verbose>false</verbose>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Was verbose before, flooding CI with low-value log lines. Can be turned on if required anytime, but 99% of the cases it is unnecessary

Comment thread pom.xml Outdated
</distributionManagement>
<properties>
<!-- Override revision with -Drevision=... in CI builds -->
<revision>4.0.0-SNAPSHOT</revision>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This can be easily overridden as needed during CI builds

with:
fetch-depth: 0

- name: Set up JDK 17

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is faster and easier to start off from a base image that already has Java in it

cache: 'maven'
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
uses: actions/checkout@v6

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Keeping action versions up to date

uses: actions/checkout@v6

- run: sudo apt-get update -qq
- run: sudo apt-get install ffmpeg -qq -y

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

These are unnecessary, unused in this context, so removed it

key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-

- name: Resolve Maven revision

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

For tag pushes (refs/tags/ams-v*): Extracts the version from the tag name (e.g., ams-v1.2.3 → 1.2.3)

For branch pushes: Appends a branch qualifier to the base version with -SNAPSHOT suffix (e.g., 1.2.3-feature-name-SNAPSHOT)

Strips common prefixes like feature/ or bugfix/
Normalizes the branch name to lowercase and replaces invalid characters with hyphens
Falls back to using the first 8 characters of the commit hash if the branch name is empty
For pull requests: Similar to branches, but uses pr-{PR_NUMBER} as the qualifier (e.g., 1.2.3-pr-42-SNAPSHOT)

The resolved revision is then passed to the Maven deploy command via the -Drevision parameter, allowing different version numbers to be generated automatically based on the build context without modifying the pom.xml file.

@jantekb
jantekb force-pushed the feature/no-red5-parent branch from 6898427 to cd6200e Compare July 13, 2026 09:09
@jantekb
jantekb force-pushed the feature/no-red5-parent branch from cd6200e to 20eb533 Compare July 13, 2026 09:11
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.

Detach from red5 parent pom

1 participant