mirror of
https://github.com/s4u/setup-maven-action.git
synced 2026-02-15 00:00:12 +08:00
Compare commits
87 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1c4f3ff3dc | |||
| e435effde6 | |||
| e97b30e967 | |||
| ae19451abc | |||
| 6d44c18d67 | |||
| 9f3d803b4e | |||
| 023b47f3ae | |||
| 5257c30aee | |||
| 88b5bc7548 | |||
| 6c5362973d | |||
| f8353fecf3 | |||
| 9337884575 | |||
| c6cceea941 | |||
| fa2c7e4517 | |||
| 78d72295d8 | |||
| 5727e29093 | |||
| 57ca7f1a81 | |||
| 41e894b5c6 | |||
| c1ef1c9458 | |||
| fe0723070c | |||
| f416ae1666 | |||
| 428a7bd6a8 | |||
| 7b66d0ca2e | |||
| 2dce5ee2b1 | |||
| e912d59387 | |||
| 721df57437 | |||
| 21adf11259 | |||
| 94605e0cdf | |||
| ff947fe3e9 | |||
| 35afc95be0 | |||
| 4f918ce4df | |||
| e3f10494a8 | |||
| 7cf09e2e6e | |||
| deb771502d | |||
| e5734e3ce7 | |||
| fc8e36b653 | |||
| 8c7ad20804 | |||
| 4e0b434104 | |||
| bb348407a1 | |||
| b185da4934 | |||
| 4fdbe2a6a7 | |||
| 6f549063f4 | |||
| 615b14550f | |||
| 835f1da688 | |||
| cab2e3d716 | |||
| a993197694 | |||
| 44901dc0f8 | |||
| 63e4cd9ad1 | |||
| f0414a8351 | |||
| 81f0483288 | |||
| af6b8e170c | |||
| 22a06a2fe3 | |||
| d36f1fc23e | |||
| b53dd2825a | |||
| 56cc41b90d | |||
| e3c826f8cc | |||
| 4c63d7d932 | |||
| 4585690afd | |||
| 22fe1553d7 | |||
| 18ef4b759e | |||
| 58b2cc938d | |||
| 004043f81b | |||
| d9764096ef | |||
| d60941527d | |||
| 8668fb9de8 | |||
| ec82f26b88 | |||
| 1907361ea9 | |||
| d4245fa41a | |||
| 35a231e628 | |||
| bee771f042 | |||
| 5344d1092e | |||
| cd150da647 | |||
| f2a772b79b | |||
| b82597c31c | |||
| 2a61fa7362 | |||
| 47c2778e48 | |||
| 18ed4916ce | |||
| a2f82a8171 | |||
| f0c6d72092 | |||
| fccb401913 | |||
| 440eda18c7 | |||
| 44b3adc17b | |||
| 8d6de218c6 | |||
| 421a3d288e | |||
| 00510bfd43 | |||
| 8693beee3c | |||
| 9589d5648d |
30
.github/workflows/auto-approve.yml
vendored
30
.github/workflows/auto-approve.yml
vendored
@ -5,30 +5,6 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
auto-approve:
|
auto-approve:
|
||||||
runs-on: ubuntu-latest
|
uses: s4u/.github/.github/workflows/auto-approve.yml@master
|
||||||
steps:
|
secrets:
|
||||||
|
TECH_TOKEN: ${{ secrets.TECH_TOKEN }}
|
||||||
- name: Dependabot metadata
|
|
||||||
if: github.actor == 'dependabot[bot]'
|
|
||||||
id: dependabot-metadata
|
|
||||||
uses: dependabot/fetch-metadata@v1.1.1
|
|
||||||
with:
|
|
||||||
github-token: "${{ secrets.TECH_TOKEN }}"
|
|
||||||
|
|
||||||
- name: Enable auto-merge for Dependabot PRs
|
|
||||||
if: >
|
|
||||||
github.actor == 'dependabot[bot]'
|
|
||||||
&& steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major'
|
|
||||||
run: gh pr merge --auto --rebase "$PR_URL"
|
|
||||||
env:
|
|
||||||
PR_URL: ${{github.event.pull_request.html_url}}
|
|
||||||
GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }}
|
|
||||||
|
|
||||||
- name: Approve a PR
|
|
||||||
if: >
|
|
||||||
github.actor == 'dependabot[bot]'
|
|
||||||
|| github.actor == 'slawekjaranowski'
|
|
||||||
run: gh pr review --approve "$PR_URL"
|
|
||||||
env:
|
|
||||||
PR_URL: ${{github.event.pull_request.html_url}}
|
|
||||||
GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }}
|
|
||||||
|
|||||||
12
.github/workflows/release-drafter.yml
vendored
12
.github/workflows/release-drafter.yml
vendored
@ -9,14 +9,4 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
update_release_draft:
|
update_release_draft:
|
||||||
name: Update Release Draft
|
name: Update Release Draft
|
||||||
runs-on: ubuntu-latest
|
uses: s4u/.github/.github/workflows/release-drafter.yml@master
|
||||||
concurrency: release-drafter
|
|
||||||
|
|
||||||
if: >
|
|
||||||
github.repository_owner == 's4u'
|
|
||||||
&& !startsWith(github.event.head_commit.message , '[maven-release-plugin]')
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: release-drafter/release-drafter@v5.15.0
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|||||||
51
.github/workflows/test.yml
vendored
51
.github/workflows/test.yml
vendored
@ -11,10 +11,6 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '22 23 * * 5'
|
- cron: '22 23 * * 5'
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: test-action-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
@ -22,14 +18,14 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ]
|
os: [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ]
|
||||||
java: [ '8', '11', '17' ]
|
java: [ '8', '11', '17', '21' ]
|
||||||
maven: [ '3.5.4', '3.6.3', '3.8.3' ]
|
maven: [ '3.8.8', '3.9.6' ]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
@ -40,23 +36,50 @@ jobs:
|
|||||||
- run: mvn -V validate -Drequire.java=${{ matrix.java }} -Drequire.maven=${{ matrix.maven }}
|
- run: mvn -V validate -Drequire.java=${{ matrix.java }} -Drequire.maven=${{ matrix.maven }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
test-deault:
|
test-default:
|
||||||
name: Test with defaults
|
name: Test with defaults
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: ./
|
||||||
|
|
||||||
|
- run: mvn -V validate -Drequire.java=17 -Drequire.maven=3.9.6
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
# regressions tests
|
||||||
|
test-issue-68:
|
||||||
|
name: Test for issue 68
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
java-version: 8
|
settings-servers: |
|
||||||
|
[{
|
||||||
|
"id": "ossrh",
|
||||||
|
"username": "${{ vars.TEST_68_1 }}",
|
||||||
|
"password": "${{ vars.TEST_68_2 }}"
|
||||||
|
}]
|
||||||
|
|
||||||
- run: mvn -V validate -Drequire.java=8 -Drequire.maven=3.8.3
|
- run: cat ~/.m2/settings.xml
|
||||||
shell: bash
|
- run: |
|
||||||
|
grep "<id>ossrh</id>" ~/.m2/settings.xml
|
||||||
|
grep "<username>username-68</username>" ~/.m2/settings.xml
|
||||||
|
grep "<password>password-68</password>" ~/.m2/settings.xml
|
||||||
|
|
||||||
test-ok:
|
test-ok:
|
||||||
name: Test OK
|
name: Test OK
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [ test, test-deault ]
|
needs: [ test, test-default, test-issue-68 ]
|
||||||
|
if: always()
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: echo OK
|
- run: 'true'
|
||||||
|
if: join(needs.*.result, ',') == 'success,success,success'
|
||||||
|
|
||||||
|
- run: 'false'
|
||||||
|
if: join(needs.*.result, ',') != 'success,success,success'
|
||||||
|
|||||||
68
README.md
68
README.md
@ -9,34 +9,37 @@ This is composite action which help to prepare GitHub Actions environment for Ma
|
|||||||
- [stCarolas/setup-maven](https://github.com/marketplace/actions/setup-maven)
|
- [stCarolas/setup-maven](https://github.com/marketplace/actions/setup-maven)
|
||||||
- [s4u/maven-settings-action](https://github.com/marketplace/actions/maven-settings-action)
|
- [s4u/maven-settings-action](https://github.com/marketplace/actions/maven-settings-action)
|
||||||
|
|
||||||
# Contributions
|
:exclamation: You **should not** include above actions in your configuration - in other case those will be **called twice**. :exclamation:
|
||||||
|
|
||||||
- Contributions are welcome!
|
For default values you only need:
|
||||||
- Give :star: - if you want to encourage me to work on a project
|
|
||||||
- Don't hesitate to create issues for new features you dream of or if you suspect some bug
|
|
||||||
|
|
||||||
# Project versioning
|
```yml
|
||||||
|
steps:
|
||||||
|
|
||||||
This project uses [Semantic Versioning](https://semver.org/).
|
- name: Setup Maven Action
|
||||||
We recommended to use the latest and specific release version.
|
uses: s4u/setup-maven-action@< version >
|
||||||
|
|
||||||
In order to keep your project dependencies up to date you can watch this repository *(Releases only)*
|
|
||||||
or use automatic tools like [Dependabot](https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates).
|
|
||||||
|
|
||||||
|
- run: mvn -V ...
|
||||||
|
```
|
||||||
|
|
||||||
# Params mapping for sub actions
|
# Params mapping for sub actions
|
||||||
|
|
||||||
## checkout
|
## checkout
|
||||||
|
|
||||||
| params | destination |
|
| params | destination | default |
|
||||||
| -------------------------- |------------------ |
|
|------------------------------|---------------------|--------------------------|
|
||||||
| checkout-fetch-depth | fetch-depth |
|
| checkout-fetch-depth | fetch-depth | |
|
||||||
|
| checkout-path | path | |
|
||||||
|
| checkout-ref | ref | |
|
||||||
|
| checkout-repository | repository | ${{ github.repository }} |
|
||||||
|
| checkout-token | token | ${{ github.token }} |
|
||||||
|
| checkout-persist-credentials | persist-credentials | false |
|
||||||
|
|
||||||
## setup-java
|
## setup-java
|
||||||
|
|
||||||
| params | destination | default |
|
| params | destination | default |
|
||||||
| ----------------- |------------- |-------- |
|
|-------------------|--------------|---------|
|
||||||
| java-version | java-version | |
|
| java-version | java-version | 17 |
|
||||||
| java-distribution | distribution | temurin |
|
| java-distribution | distribution | temurin |
|
||||||
|
|
||||||
## cache
|
## cache
|
||||||
@ -55,23 +58,24 @@ A cache action is configured as:
|
|||||||
|
|
||||||
So we can use for action:
|
So we can use for action:
|
||||||
|
|
||||||
| params | description |
|
| params | description |
|
||||||
| ----------------- |--------------------------------------------------------- |
|
|----------------|----------------------------------------------------------|
|
||||||
| cache-path | default cache path for Maven with value ~/.m2/repository |
|
| cache-enabled | enable cache. Default true |
|
||||||
| cache-path-add | additional value for cache path |
|
| cache-path | default cache path for Maven with value ~/.m2/repository |
|
||||||
| cache-prefix | prefix value for `key` and `restore-keys` cache params |
|
| cache-path-add | additional value for cache path |
|
||||||
|
| cache-prefix | prefix value for `key` and `restore-keys` cache params |
|
||||||
|
|
||||||
|
|
||||||
## setup-maven
|
## setup-maven
|
||||||
|
|
||||||
| params | destination | default |
|
| params | destination | default |
|
||||||
| ------------- |-------------- |-------- |
|
|---------------|---------------|---------|
|
||||||
| maven-version | maven-version | 3.8.3 |
|
| maven-version | maven-version | 3.9.6 |
|
||||||
|
|
||||||
## maven-settings-action
|
## maven-settings-action
|
||||||
|
|
||||||
| params | destination |
|
| params | destination |
|
||||||
| -------------------------- |------------------ |
|
|----------------------------|-------------------|
|
||||||
| settings-servers | servers |
|
| settings-servers | servers |
|
||||||
| settings-mirrors | mirrors |
|
| settings-mirrors | mirrors |
|
||||||
| settings-properties | properties |
|
| settings-properties | properties |
|
||||||
@ -87,7 +91,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
maven: [ '3.5.4', '3.6.3', '3.8.2' ]
|
maven: [ '3.8.8', '3.9.6' ]
|
||||||
|
|
||||||
name: Maven ${{ matrix.maven }} sample
|
name: Maven ${{ matrix.maven }} sample
|
||||||
|
|
||||||
@ -102,6 +106,20 @@ jobs:
|
|||||||
- run: mvn -V ...
|
- run: mvn -V ...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Contributions
|
||||||
|
|
||||||
|
- Contributions are welcome!
|
||||||
|
- Give :star: - if you want to encourage me to work on a project
|
||||||
|
- Don't hesitate to create issues for new features you dream of or if you suspect some bug
|
||||||
|
|
||||||
|
# Project versioning
|
||||||
|
|
||||||
|
This project uses [Semantic Versioning](https://semver.org/).
|
||||||
|
We recommended using the latest and specific release version.
|
||||||
|
|
||||||
|
In order to keep your project dependencies up to date you can watch this repository *(Releases only)*
|
||||||
|
or use automatic tools like [Dependabot](https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates).
|
||||||
|
|
||||||
# License
|
# License
|
||||||
|
|
||||||
The scripts and documentation in this project are released under the [MIT License](LICENSE)
|
The scripts and documentation in this project are released under the [MIT License](LICENSE)
|
||||||
|
|||||||
53
action.yml
53
action.yml
@ -12,10 +12,34 @@ inputs:
|
|||||||
description: 'Number of commits to fetch'
|
description: 'Number of commits to fetch'
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
|
checkout-path:
|
||||||
|
description: 'Relative path under $GITHUB_WORKSPACE to place the repository'
|
||||||
|
required: false
|
||||||
|
|
||||||
|
checkout-persist-credentials:
|
||||||
|
description: 'Whether to configure the token or SSH key with the local git config'
|
||||||
|
default: 'false'
|
||||||
|
required: false
|
||||||
|
|
||||||
|
checkout-ref:
|
||||||
|
description: 'The branch, tag, or SHA of the repository to clone'
|
||||||
|
required: false
|
||||||
|
|
||||||
|
checkout-repository:
|
||||||
|
description: 'The repository to checkout if not the repository that triggered the action. For use when building GitHub Apps'
|
||||||
|
required: false
|
||||||
|
default: ${{ github.repository }}
|
||||||
|
|
||||||
|
checkout-token:
|
||||||
|
description: 'Token to use for checkout if checking out a repository out of scope for GITHUB_TOKEN'
|
||||||
|
required: false
|
||||||
|
default: ${{ github.token }}
|
||||||
|
|
||||||
# java jdk params
|
# java jdk params
|
||||||
|
|
||||||
java-version:
|
java-version:
|
||||||
description: 'The Java version to set up'
|
description: 'The Java version to set up'
|
||||||
|
default: '17'
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
java-distribution:
|
java-distribution:
|
||||||
@ -24,6 +48,11 @@ inputs:
|
|||||||
required: false
|
required: false
|
||||||
|
|
||||||
# cache
|
# cache
|
||||||
|
cache-enabled:
|
||||||
|
description: 'Enable cache'
|
||||||
|
default: 'true'
|
||||||
|
required: false
|
||||||
|
|
||||||
cache-prefix:
|
cache-prefix:
|
||||||
description: 'Cache key prefix'
|
description: 'Cache key prefix'
|
||||||
required: false
|
required: false
|
||||||
@ -40,7 +69,7 @@ inputs:
|
|||||||
# maven version
|
# maven version
|
||||||
maven-version:
|
maven-version:
|
||||||
description: 'The Maven version to set up'
|
description: 'The Maven version to set up'
|
||||||
default: '3.8.3'
|
default: '3.9.6'
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
# maven settings.xml
|
# maven settings.xml
|
||||||
@ -65,17 +94,23 @@ runs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
||||||
|
path: '${{ inputs.checkout-path }}'
|
||||||
|
persist-credentials: '${{ inputs.checkout-persist-credentials }}'
|
||||||
|
ref: '${{ inputs.checkout-ref }}'
|
||||||
|
repository: '${{ inputs.checkout-repository }}'
|
||||||
|
token: '${{ inputs.checkout-token }}'
|
||||||
|
|
||||||
- uses: actions/setup-java@v2.3.1
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
overwrite-settings: false
|
overwrite-settings: false
|
||||||
java-version: '${{ inputs.java-version }}'
|
java-version: '${{ inputs.java-version }}'
|
||||||
distribution: '${{ inputs.java-distribution }}'
|
distribution: '${{ inputs.java-distribution }}'
|
||||||
|
|
||||||
- uses: actions/cache@v2.1.6
|
- uses: actions/cache@v4
|
||||||
|
if: inputs.cache-enabled == 'true'
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
${{ inputs.cache-path }}
|
${{ inputs.cache-path }}
|
||||||
@ -83,11 +118,17 @@ runs:
|
|||||||
key: ${{ inputs.cache-prefix }}${{ runner.os }}-jdk${{ inputs.java-version }}-${{ inputs.java-distribution }}-maven${{ inputs.maven-version }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ inputs.cache-prefix }}${{ runner.os }}-jdk${{ inputs.java-version }}-${{ inputs.java-distribution }}-maven${{ inputs.maven-version }}-${{ hashFiles('**/pom.xml') }}
|
||||||
restore-keys: ${{ inputs.cache-prefix }}${{ runner.os }}-jdk${{ inputs.java-version }}-${{ inputs.java-distribution }}-maven${{ inputs.maven-version }}-
|
restore-keys: ${{ inputs.cache-prefix }}${{ runner.os }}-jdk${{ inputs.java-version }}-${{ inputs.java-distribution }}-maven${{ inputs.maven-version }}-
|
||||||
|
|
||||||
- uses: stCarolas/setup-maven@v4.2
|
- name: Installed Maven version
|
||||||
|
run: echo "version=$(mvn -q -v)" >> $GITHUB_OUTPUT
|
||||||
|
shell: bash
|
||||||
|
id: current-maven
|
||||||
|
|
||||||
|
- uses: stCarolas/setup-maven@v5
|
||||||
|
if: inputs.maven-version != steps.current-maven.outputs.version
|
||||||
with:
|
with:
|
||||||
maven-version: '${{ inputs.maven-version }}'
|
maven-version: '${{ inputs.maven-version }}'
|
||||||
|
|
||||||
- uses: s4u/maven-settings-action@v2.4.1
|
- uses: s4u/maven-settings-action@v3.0.0
|
||||||
with:
|
with:
|
||||||
servers: '${{ inputs.settings-servers}}'
|
servers: '${{ inputs.settings-servers}}'
|
||||||
mirrors: '${{ inputs.settings-mirrors}}'
|
mirrors: '${{ inputs.settings-mirrors}}'
|
||||||
|
|||||||
34
pom.xml
34
pom.xml
@ -36,7 +36,6 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<require.maven/>
|
<require.maven/>
|
||||||
<require.java/>
|
<require.java/>
|
||||||
<_require.java/>
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
@ -44,11 +43,10 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-enforcer-plugin</artifactId>
|
<artifactId>maven-enforcer-plugin</artifactId>
|
||||||
<version>3.0.0-M3</version>
|
<version>3.2.1</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>display-info</goal>
|
|
||||||
<goal>enforce</goal>
|
<goal>enforce</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<phase>validate</phase>
|
<phase>validate</phase>
|
||||||
@ -57,7 +55,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<rules>
|
<rules>
|
||||||
<requireJavaVersion>
|
<requireJavaVersion>
|
||||||
<version>${_require.java}</version>
|
<version>${require.java}</version>
|
||||||
</requireJavaVersion>
|
</requireJavaVersion>
|
||||||
<requireMavenVersion>
|
<requireMavenVersion>
|
||||||
<version>[${require.maven}]</version>
|
<version>[${require.maven}]</version>
|
||||||
@ -67,32 +65,4 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<profiles>
|
|
||||||
<profile>
|
|
||||||
<id>java8-version-label</id>
|
|
||||||
<activation>
|
|
||||||
<property>
|
|
||||||
<name>require.java</name>
|
|
||||||
<value>8</value>
|
|
||||||
</property>
|
|
||||||
</activation>
|
|
||||||
<properties>
|
|
||||||
<_require.java>1.8</_require.java>
|
|
||||||
</properties>
|
|
||||||
</profile>
|
|
||||||
|
|
||||||
<profile>
|
|
||||||
<id>non-java8-version-label</id>
|
|
||||||
<activation>
|
|
||||||
<property>
|
|
||||||
<name>require.java</name>
|
|
||||||
<value>!8</value>
|
|
||||||
</property>
|
|
||||||
</activation>
|
|
||||||
<properties>
|
|
||||||
<_require.java>${require.java}</_require.java>
|
|
||||||
</properties>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
Reference in New Issue
Block a user