Skip to content

🦺 Validation of project's version #580

Open
@LVMVRQUXL

Description

@LVMVRQUXL

📝 Description

The project's version being used in several scripts and Gradle tasks, we would like to validate it during the project's configuration with Gradle.

The project's version should match the following regular expression: ^\d+\.\d+\.\d+(?:-SNAPSHOT)?$.
Here are examples of valid and invalid project's versions:

// Valid
1.0.0
1.0.0-SNAPSHOT

// Invalid
1
1.
1.0
1.0.
1.0.0-

✅ Checklist

  • Validate project's version in the configuration step using Gradle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions