mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-22 13:05:09 +00:00
remove maven build
This commit is contained in:
parent
70a9682c80
commit
9cced3dfe8
27
.github/scripts/release-gradle.sh
vendored
27
.github/scripts/release-gradle.sh
vendored
@ -1,27 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
POM_VERSION=$(gradle properties -q | grep "version:" | awk '{print $2}')
|
|
||||||
RELEASE_DIR="build/github_release"
|
|
||||||
|
|
||||||
mkdir "${RELEASE_DIR}"
|
|
||||||
|
|
||||||
ln -s "../libs/plantuml-${POM_VERSION}.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}.jar"
|
|
||||||
ln -s "../libs/plantuml-${POM_VERSION}-javadoc.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}-javadoc.jar"
|
|
||||||
ln -s "../libs/plantuml-${POM_VERSION}-sources.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}-sources.jar"
|
|
||||||
ln -s "../libs/plantuml-pdf-${POM_VERSION}.jar" "${RELEASE_DIR}/plantuml-pdf-${POM_VERSION}.jar"
|
|
||||||
|
|
||||||
if [[ -e "build/publications/maven/module.json.asc" ]]; then
|
|
||||||
# signatures are optional so that forked repos can release snapshots without needing a gpg signing key
|
|
||||||
ln -s "../libs/plantuml-${POM_VERSION}.jar.asc" "${RELEASE_DIR}/plantuml-${POM_VERSION}.jar.asc"
|
|
||||||
ln -s "../libs/plantuml-${POM_VERSION}-javadoc.jar.asc" "${RELEASE_DIR}/plantuml-${POM_VERSION}-javadoc.jar.asc"
|
|
||||||
ln -s "../libs/plantuml-${POM_VERSION}-sources.jar.asc" "${RELEASE_DIR}/plantuml-${POM_VERSION}-sources.jar.asc"
|
|
||||||
ln -s "../libs/plantuml-pdf-${POM_VERSION}.jar.asc" "${RELEASE_DIR}/plantuml-pdf-${POM_VERSION}.jar.asc"
|
|
||||||
fi
|
|
||||||
|
|
||||||
gh release create \
|
|
||||||
--target "${GITHUB_SHA}" \
|
|
||||||
--title "${TAG}" \
|
|
||||||
"${TAG}" ${RELEASE_DIR}/*
|
|
||||||
|
|
||||||
echo "::notice title=::Released at ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/releases/tag/${TAG} 🎉"
|
|
19
.github/scripts/release.sh
vendored
19
.github/scripts/release.sh
vendored
@ -1,14 +1,23 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
RELEASE_DIR="target/github_release"
|
POM_VERSION=$(gradle properties -q | grep "version:" | awk '{print $2}')
|
||||||
|
RELEASE_DIR="build/github_release"
|
||||||
|
|
||||||
mkdir "${RELEASE_DIR}"
|
mkdir "${RELEASE_DIR}"
|
||||||
|
|
||||||
ln -s "../plantuml.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}.jar"
|
ln -s "../libs/plantuml-${POM_VERSION}.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}.jar"
|
||||||
ln -s "../plantuml-javadoc.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}-javadoc.jar"
|
ln -s "../libs/plantuml-${POM_VERSION}-javadoc.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}-javadoc.jar"
|
||||||
ln -s "../plantuml-sources.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}-sources.jar"
|
ln -s "../libs/plantuml-${POM_VERSION}-sources.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}-sources.jar"
|
||||||
# we do not release the .pom or .asc signature files here, they will be added in a later PR
|
ln -s "../libs/plantuml-pdf-${POM_VERSION}.jar" "${RELEASE_DIR}/plantuml-pdf-${POM_VERSION}.jar"
|
||||||
|
|
||||||
|
if [[ -e "build/publications/maven/module.json.asc" ]]; then
|
||||||
|
# signatures are optional so that forked repos can release snapshots without needing a gpg signing key
|
||||||
|
ln -s "../libs/plantuml-${POM_VERSION}.jar.asc" "${RELEASE_DIR}/plantuml-${POM_VERSION}.jar.asc"
|
||||||
|
ln -s "../libs/plantuml-${POM_VERSION}-javadoc.jar.asc" "${RELEASE_DIR}/plantuml-${POM_VERSION}-javadoc.jar.asc"
|
||||||
|
ln -s "../libs/plantuml-${POM_VERSION}-sources.jar.asc" "${RELEASE_DIR}/plantuml-${POM_VERSION}-sources.jar.asc"
|
||||||
|
ln -s "../libs/plantuml-pdf-${POM_VERSION}.jar.asc" "${RELEASE_DIR}/plantuml-pdf-${POM_VERSION}.jar.asc"
|
||||||
|
fi
|
||||||
|
|
||||||
gh release create \
|
gh release create \
|
||||||
--target "${GITHUB_SHA}" \
|
--target "${GITHUB_SHA}" \
|
||||||
|
44
.github/scripts/release_snapshot.sh
vendored
44
.github/scripts/release_snapshot.sh
vendored
@ -1,44 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
TAG="snapshot"
|
|
||||||
DATE_TIME_UTC=$(date -u +"%F at %T (UTC)")
|
|
||||||
RELEASE_DIR="target/github_release"
|
|
||||||
|
|
||||||
gh release delete "${TAG}" -y || true
|
|
||||||
|
|
||||||
git tag --force "${TAG}"
|
|
||||||
|
|
||||||
git push --force origin "${TAG}"
|
|
||||||
|
|
||||||
mkdir "${RELEASE_DIR}"
|
|
||||||
|
|
||||||
ln -s "../plantuml.pom" "${RELEASE_DIR}/plantuml-SNAPSHOT.pom"
|
|
||||||
ln -s "../plantuml.jar" "${RELEASE_DIR}/plantuml-SNAPSHOT.jar"
|
|
||||||
ln -s "../plantuml-javadoc.jar" "${RELEASE_DIR}/plantuml-SNAPSHOT-javadoc.jar"
|
|
||||||
ln -s "../plantuml-sources.jar" "${RELEASE_DIR}/plantuml-SNAPSHOT-sources.jar"
|
|
||||||
|
|
||||||
if [[ -e "target/plantuml.pom.asc" ]]; then
|
|
||||||
# signatures are optional so that forked repos can release snapshots without needing a gpg signing key
|
|
||||||
ln -s "../plantuml.pom.asc" "${RELEASE_DIR}/plantuml-SNAPSHOT.pom.asc"
|
|
||||||
ln -s "../plantuml.jar.asc" "${RELEASE_DIR}/plantuml-SNAPSHOT.jar.asc"
|
|
||||||
ln -s "../plantuml-javadoc.jar.asc" "${RELEASE_DIR}/plantuml-SNAPSHOT-javadoc.jar.asc"
|
|
||||||
ln -s "../plantuml-sources.jar.asc" "${RELEASE_DIR}/plantuml-SNAPSHOT-sources.jar.asc"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo -n "${DATE_TIME_UTC}" > "${RELEASE_DIR}/plantuml-SNAPSHOT.timestamp"
|
|
||||||
|
|
||||||
cat <<-EOF >notes.txt
|
|
||||||
This is a pre-release of [the latest development work](https://github.com/plantuml/plantuml/commits/).
|
|
||||||
⚠️ **It is not ready for general use** ⚠️
|
|
||||||
⏱ _Snapshot taken the ${DATE_TIME_UTC}_
|
|
||||||
EOF
|
|
||||||
|
|
||||||
gh release create \
|
|
||||||
--prerelease \
|
|
||||||
--target "${GITHUB_SHA}" \
|
|
||||||
--title "${TAG}" \
|
|
||||||
--notes-file notes.txt \
|
|
||||||
"${TAG}" ${RELEASE_DIR}/*
|
|
||||||
|
|
||||||
echo "::notice title=release snapshot::Snapshot released at ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/releases/tag/${TAG} and taken the ${DATE_TIME_UTC}"
|
|
150
.github/workflows/ci-gradle.yml
vendored
150
.github/workflows/ci-gradle.yml
vendored
@ -1,150 +0,0 @@
|
|||||||
name: CI gradle
|
|
||||||
|
|
||||||
on:
|
|
||||||
create:
|
|
||||||
pull_request:
|
|
||||||
types: [ opened, synchronize, reopened ]
|
|
||||||
paths-ignore:
|
|
||||||
- '*.md'
|
|
||||||
- 'docs/**'
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
paths-ignore:
|
|
||||||
- '*.md'
|
|
||||||
- 'docs/**'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
workflow_config:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
do_release: ${{ steps.config.outputs.do_release }}
|
|
||||||
do_snapshot_release: ${{ steps.config.outputs.do_snapshot_release }}
|
|
||||||
pom_version: ${{ steps.config.outputs.pom_version }}
|
|
||||||
steps:
|
|
||||||
- name: Configure workflow
|
|
||||||
id: config
|
|
||||||
env:
|
|
||||||
ACTOR: ${{ github.actor }}
|
|
||||||
EVENT_ACTION: ${{ github.event.action }}
|
|
||||||
REF_TYPE: ${{ github.event.ref_type }}
|
|
||||||
REF: ${{ github.event.ref }}
|
|
||||||
run: |
|
|
||||||
cat <<-EOF
|
|
||||||
::group::Debug Info
|
|
||||||
GITHUB_EVENT_NAME : '${GITHUB_EVENT_NAME}'
|
|
||||||
EVENT_ACTION : '${EVENT_ACTION}'
|
|
||||||
REF_TYPE : '${REF_TYPE}'
|
|
||||||
REF : '${REF}'
|
|
||||||
ACTOR : '${ACTOR}'
|
|
||||||
GITHUB_REPOSITORY_OWNER : '${GITHUB_REPOSITORY_OWNER}'
|
|
||||||
::endgroup::
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Do a release when a git tag starting with 'v' has been created by a suitable user.
|
|
||||||
# (We match against github.repository_owner as a kludge so that forked repos can release themselves when testing the workflow)
|
|
||||||
|
|
||||||
if [[ "${GITHUB_EVENT_NAME}" == "create" && "${REF_TYPE}" == "tag" && "${REF}" == v* && \
|
|
||||||
( "${ACTOR}" == "arnaudroques" || "${ACTOR}" == "${GITHUB_REPOSITORY_OWNER}" ) \
|
|
||||||
]]; then
|
|
||||||
echo "::notice title=::This run will release '${REF}'"
|
|
||||||
echo "::set-output name=do_release::true"
|
|
||||||
echo "::set-output name=pom_version::${REF#v}" # pom_version is the tag without the 'v' prefix
|
|
||||||
|
|
||||||
elif [[ "${GITHUB_EVENT_NAME}" =~ push|workflow_dispatch && "${REF}" == "refs/heads/master" ]]; then
|
|
||||||
echo "::notice title=::This run will release a snapshot"
|
|
||||||
echo "::set-output name=do_snapshot_release::true"
|
|
||||||
|
|
||||||
else
|
|
||||||
echo "This run will NOT make a release"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We run the tests on many OS / Java combinations but also the Compile step because some users build
|
|
||||||
# their own jars from source, so it is good for CI to check that is working on all combinations.
|
|
||||||
test:
|
|
||||||
needs: workflow_config
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
java_version: [ 8, 11, 17 ]
|
|
||||||
os: [ macos-10.15, macos-11, ubuntu-18.04, ubuntu-20.04, windows-2019, windows-2022 ]
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout the repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Set up java
|
|
||||||
uses: actions/setup-java@v3.0.0
|
|
||||||
with:
|
|
||||||
java-version: ${{ matrix.java_version }}
|
|
||||||
distribution: temurin
|
|
||||||
cache: gradle
|
|
||||||
|
|
||||||
# Compile / Test / Package are separate steps so the reason for any failure is more obvious in GitHub UI
|
|
||||||
- name: Compile
|
|
||||||
run: gradle -q compileJava --no-daemon
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: gradle -q test --no-daemon
|
|
||||||
|
|
||||||
upload:
|
|
||||||
needs: [ workflow_config, test ]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout the repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Set up java
|
|
||||||
uses: actions/setup-java@v3.0.0
|
|
||||||
with:
|
|
||||||
java-version: 17
|
|
||||||
distribution: temurin
|
|
||||||
cache: gradle
|
|
||||||
|
|
||||||
- name: Set version from tag
|
|
||||||
if: env.POM_VERSION
|
|
||||||
env:
|
|
||||||
POM_VERSION: ${{ needs.workflow_config.outputs.pom_version }}
|
|
||||||
run: sed -i "s/version = .*/version = $POM_VERSION/" gradle.properties
|
|
||||||
|
|
||||||
- name: Build artifacts
|
|
||||||
run: |
|
|
||||||
gradle -q clean build \
|
|
||||||
pdfJar \
|
|
||||||
generateMetadataFileForMavenPublication generatePomFileForMavenPublication \
|
|
||||||
-x test
|
|
||||||
|
|
||||||
- name: Sign artifacts
|
|
||||||
if: env.ORG_GRADLE_PROJECT_signingKey
|
|
||||||
env:
|
|
||||||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ARTIFACT_SIGNING_KEY }}
|
|
||||||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ARTIFACT_SIGNING_PASSPHRASE }}
|
|
||||||
run: |
|
|
||||||
gradle -q signMavenPublication signPdfJar
|
|
||||||
|
|
||||||
- name: Upload artifacts
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
# Using github.run_number here to reduce confusion when downloading & comparing artifacts from several builds
|
|
||||||
name: ${{ github.run_number }}-artifacts
|
|
||||||
path: |
|
|
||||||
build/libs/*
|
|
||||||
build/publications/maven/*
|
|
||||||
|
|
||||||
- name: Create snapshot release
|
|
||||||
if: needs.workflow_config.outputs.do_snapshot_release == 'true'
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
|
||||||
run: .github/scripts/release-gradle-snapshot.sh
|
|
||||||
|
|
||||||
- name: Create release in GitHub
|
|
||||||
if: needs.workflow_config.outputs.do_release == 'true'
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
|
||||||
TAG: ${{ github.event.ref }}
|
|
||||||
run: .github/scripts/release-gradle.sh
|
|
140
.github/workflows/ci.yml
vendored
140
.github/workflows/ci.yml
vendored
@ -1,18 +1,18 @@
|
|||||||
name: CI
|
name: CI gradle
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# create:
|
create:
|
||||||
# pull_request:
|
pull_request:
|
||||||
# types: [ opened, synchronize, reopened ]
|
types: [ opened, synchronize, reopened ]
|
||||||
# paths-ignore:
|
paths-ignore:
|
||||||
# - '*.md'
|
- '*.md'
|
||||||
# - 'docs/**'
|
- 'docs/**'
|
||||||
# push:
|
push:
|
||||||
# branches:
|
branches:
|
||||||
# - master
|
- master
|
||||||
# paths-ignore:
|
paths-ignore:
|
||||||
# - '*.md'
|
- '*.md'
|
||||||
# - 'docs/**'
|
- 'docs/**'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
@ -66,20 +66,14 @@ jobs:
|
|||||||
|
|
||||||
# We run the tests on many OS / Java combinations but also the Compile step because some users build
|
# We run the tests on many OS / Java combinations but also the Compile step because some users build
|
||||||
# their own jars from source, so it is good for CI to check that is working on all combinations.
|
# their own jars from source, so it is good for CI to check that is working on all combinations.
|
||||||
build:
|
test:
|
||||||
needs: workflow_config
|
needs: workflow_config
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
java_version: [ 8, 11, 17 ]
|
java_version: [ 8, 11, 17 ]
|
||||||
os: [ macos-10.15, macos-11, ubuntu-18.04, ubuntu-20.04, windows-2019, windows-2022 ]
|
os: [ macos-10.15, macos-11, ubuntu-18.04, ubuntu-20.04, windows-2019, windows-2022 ]
|
||||||
include:
|
|
||||||
- release_from_this_build: true
|
|
||||||
os: ubuntu-20.04
|
|
||||||
java_version: 8
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
env:
|
|
||||||
SIGN_ARTIFACTS: ${{ secrets.ARTIFACT_SIGNING_KEY != '' }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout the repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -89,92 +83,68 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java_version }}
|
java-version: ${{ matrix.java_version }}
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
cache: maven
|
cache: gradle
|
||||||
|
|
||||||
# Downloading all the dependencies is very log spammy, so we do this in its own step.
|
|
||||||
- name: Prime maven cache
|
|
||||||
run: mvn --batch-mode dependency:go-offline
|
|
||||||
|
|
||||||
# POM version is usually a -SNAPSHOT at this point, if this is a release then we use the version derived from the tag
|
|
||||||
- name: Set POM version
|
|
||||||
if: needs.workflow_config.outputs.do_release == 'true'
|
|
||||||
env:
|
|
||||||
POM_VERSION: ${{ needs.workflow_config.outputs.pom_version }}
|
|
||||||
run: mvn --batch-mode versions:set "-DnewVersion=${POM_VERSION}"
|
|
||||||
|
|
||||||
# Compile / Test / Package are separate steps so the reason for any failure is more obvious in GitHub UI
|
# Compile / Test / Package are separate steps so the reason for any failure is more obvious in GitHub UI
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: mvn --batch-mode compile
|
run: gradle -q compileJava --no-daemon
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: mvn --batch-mode test
|
run: gradle -q test --no-daemon
|
||||||
|
|
||||||
# The repeated "matrix.release_from_this_build" checks are messy, but I have not found a simple way to avoid them
|
upload:
|
||||||
# See https://github.com/actions/runner/issues/662
|
needs: [ workflow_config, test ]
|
||||||
|
|
||||||
- name: Setup gpg
|
|
||||||
if: matrix.release_from_this_build && env.ARTIFACT_SIGNING_KEY
|
|
||||||
id: gpg
|
|
||||||
env:
|
|
||||||
ARTIFACT_SIGNING_KEY: ${{ secrets.ARTIFACT_SIGNING_KEY }}
|
|
||||||
run: |
|
|
||||||
echo "Importing key ..."
|
|
||||||
echo "${ARTIFACT_SIGNING_KEY}" | gpg --batch --import --import-options import-show
|
|
||||||
|
|
||||||
echo "Getting key id ..."
|
|
||||||
key_id="$(echo "${ARTIFACT_SIGNING_KEY}" | gpg --batch --show-keys --with-colons | awk -F: '$1 == "sec" { print $5 }')"
|
|
||||||
echo "::set-output name=key_id::${key_id}"
|
|
||||||
|
|
||||||
- name: Create artifacts
|
|
||||||
if: matrix.release_from_this_build
|
|
||||||
env:
|
|
||||||
GPG_KEYNAME: ${{ steps.gpg.outputs.key_id }}
|
|
||||||
GPG_PASSPHRASE: ${{ secrets.ARTIFACT_SIGNING_PASSPHRASE }}
|
|
||||||
run: |
|
|
||||||
[[ "${SIGN_ARTIFACTS}" == "true" ]] || cp pom.xml target/plantuml.pom
|
|
||||||
|
|
||||||
mvn --batch-mode \
|
|
||||||
"-DfinalName=plantuml" \
|
|
||||||
"-Dgpg.keyname=${GPG_KEYNAME}" \
|
|
||||||
"-Dgpg.passphrase=${GPG_PASSPHRASE}" \
|
|
||||||
"-Dmaven.test.skip=true" \
|
|
||||||
verify
|
|
||||||
|
|
||||||
- name: Upload artifacts
|
|
||||||
if: matrix.release_from_this_build
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
# Using github.run_number here to reduce confusion when downloading & comparing artifacts from several builds
|
|
||||||
name: ${{ github.run_number }}-artifacts
|
|
||||||
path: |
|
|
||||||
target/*.asc
|
|
||||||
target/*.jar
|
|
||||||
target/*.pom
|
|
||||||
|
|
||||||
release:
|
|
||||||
needs: [ workflow_config, build ]
|
|
||||||
if: needs.workflow_config.outputs.do_release == 'true' || needs.workflow_config.outputs.do_snapshot_release == 'true'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout the repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Download artifacts
|
- name: Set up java
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/setup-java@v3.0.0
|
||||||
with:
|
with:
|
||||||
|
java-version: 17
|
||||||
|
distribution: temurin
|
||||||
|
cache: gradle
|
||||||
|
|
||||||
|
- name: Set version from tag
|
||||||
|
if: env.POM_VERSION
|
||||||
|
env:
|
||||||
|
POM_VERSION: ${{ needs.workflow_config.outputs.pom_version }}
|
||||||
|
run: sed -i "s/version = .*/version = $POM_VERSION/" gradle.properties
|
||||||
|
|
||||||
|
- name: Build artifacts
|
||||||
|
run: |
|
||||||
|
gradle -q clean build \
|
||||||
|
pdfJar \
|
||||||
|
generateMetadataFileForMavenPublication generatePomFileForMavenPublication \
|
||||||
|
-x test
|
||||||
|
|
||||||
|
- name: Sign artifacts
|
||||||
|
if: env.ORG_GRADLE_PROJECT_signingKey
|
||||||
|
env:
|
||||||
|
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ARTIFACT_SIGNING_KEY }}
|
||||||
|
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ARTIFACT_SIGNING_PASSPHRASE }}
|
||||||
|
run: |
|
||||||
|
gradle -q signMavenPublication signPdfJar
|
||||||
|
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
# Using github.run_number here to reduce confusion when downloading & comparing artifacts from several builds
|
||||||
name: ${{ github.run_number }}-artifacts
|
name: ${{ github.run_number }}-artifacts
|
||||||
path: target
|
path: |
|
||||||
|
build/libs/*
|
||||||
|
build/publications/maven/*
|
||||||
|
|
||||||
- name: Create snapshot release
|
- name: Create snapshot release
|
||||||
if: needs.workflow_config.outputs.do_snapshot_release == 'true'
|
if: needs.workflow_config.outputs.do_snapshot_release == 'true'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
run: .github/scripts/release_snapshot.sh
|
run: .github/scripts/release-gradle-snapshot.sh
|
||||||
|
|
||||||
- name: Create release in GitHub
|
- name: Create release in GitHub
|
||||||
if: needs.workflow_config.outputs.do_release == 'true'
|
if: needs.workflow_config.outputs.do_release == 'true'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
POM_VERSION: ${{ needs.workflow_config.outputs.pom_version }}
|
|
||||||
TAG: ${{ github.event.ref }}
|
TAG: ${{ github.event.ref }}
|
||||||
run: .github/scripts/release.sh
|
run: .github/scripts/release-gradle.sh
|
||||||
|
329
pom.xml
329
pom.xml
@ -1,329 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!--
|
|
||||||
========================================================================
|
|
||||||
PlantUML : a free UML diagram generator
|
|
||||||
========================================================================
|
|
||||||
(C) Copyright 2009, Arnaud Roques
|
|
||||||
|
|
||||||
Project Info: http://plantuml.sourceforge.net
|
|
||||||
|
|
||||||
This file is part of PlantUML.
|
|
||||||
|
|
||||||
PlantUML is free software; you can redistribute it and/or modify it
|
|
||||||
under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
PlantUML distributed in the hope that it will be useful, but
|
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
|
||||||
License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public
|
|
||||||
License along with this library; if not, write to the Free Software
|
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
||||||
USA.
|
|
||||||
|
|
||||||
[Java is a trademark or registered trademark of Sun Microsystems, Inc.
|
|
||||||
in the United States and other countries.]
|
|
||||||
|
|
||||||
Script Author: Julien Eluard
|
|
||||||
|
|
||||||
-->
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>net.sourceforge.plantuml</groupId>
|
|
||||||
<artifactId>plantuml</artifactId>
|
|
||||||
<version>1.2022.1-SNAPSHOT</version>
|
|
||||||
<packaging>jar</packaging>
|
|
||||||
<name>PlantUML</name>
|
|
||||||
<description>
|
|
||||||
PlantUML is a component that allows to quickly write :
|
|
||||||
* sequence diagram,
|
|
||||||
* use case diagram,
|
|
||||||
* class diagram,
|
|
||||||
* activity diagram,
|
|
||||||
* component diagram,
|
|
||||||
* state diagram
|
|
||||||
* object diagram
|
|
||||||
</description>
|
|
||||||
<url>https://plantuml.com</url>
|
|
||||||
<parent>
|
|
||||||
<!-- TODO remove oss-parent https://central.sonatype.org/publish/publish-maven/#deprecated-oss-parent -->
|
|
||||||
<groupId>org.sonatype.oss</groupId>
|
|
||||||
<artifactId>oss-parent</artifactId>
|
|
||||||
<version>7</version>
|
|
||||||
</parent>
|
|
||||||
<properties>
|
|
||||||
<finalName>${project.artifactId}-${project.version}</finalName>
|
|
||||||
<main.class>net.sourceforge.plantuml.Run</main.class>
|
|
||||||
</properties>
|
|
||||||
<dependencyManagement>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.junit</groupId>
|
|
||||||
<artifactId>junit-bom</artifactId>
|
|
||||||
<version>5.8.2</version>
|
|
||||||
<type>pom</type>
|
|
||||||
<scope>import</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</dependencyManagement>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.ant</groupId>
|
|
||||||
<artifactId>ant</artifactId>
|
|
||||||
<version>1.10.12</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.assertj</groupId>
|
|
||||||
<artifactId>assertj-core</artifactId>
|
|
||||||
<version>3.22.0</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.junit.jupiter</groupId>
|
|
||||||
<artifactId>junit-jupiter</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.scilab.forge</groupId>
|
|
||||||
<artifactId>jlatexmath</artifactId>
|
|
||||||
<version>1.0.7</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<licenses>
|
|
||||||
<license>
|
|
||||||
<name>The GNU General Public License</name>
|
|
||||||
<url>http://www.gnu.org/licenses/gpl.txt</url>
|
|
||||||
<distribution>repo</distribution>
|
|
||||||
</license>
|
|
||||||
</licenses>
|
|
||||||
<scm>
|
|
||||||
<connection>scm:svn:svn://svn.code.sf.net/p/plantuml/code/trunk</connection>
|
|
||||||
<developerConnection>scm:svn:https://svn.code.sf.net/p/plantuml/code/trunk</developerConnection>
|
|
||||||
<url>svn://svn.code.sf.net/p/plantuml/code/trunk</url>
|
|
||||||
</scm>
|
|
||||||
<issueManagement>
|
|
||||||
<system>Sourceforge</system>
|
|
||||||
<url>http://sourceforge.net/tracker/?group_id=259736</url>
|
|
||||||
</issueManagement>
|
|
||||||
<developers>
|
|
||||||
<developer>
|
|
||||||
<id>arnaud.roques</id>
|
|
||||||
<name>Arnaud Roques</name>
|
|
||||||
<email>plantuml@gmail.com</email>
|
|
||||||
</developer>
|
|
||||||
</developers>
|
|
||||||
<build>
|
|
||||||
<finalName>${finalName}</finalName>
|
|
||||||
<sourceDirectory>${project.basedir}/src</sourceDirectory>
|
|
||||||
<testSourceDirectory>${project.basedir}/test</testSourceDirectory>
|
|
||||||
<resources>
|
|
||||||
<resource>
|
|
||||||
<directory>${project.basedir}/src</directory>
|
|
||||||
<includes>
|
|
||||||
<include>net/sourceforge/plantuml/version/*.png</include>
|
|
||||||
<include>net/sourceforge/plantuml/openiconic/data/*.txt</include>
|
|
||||||
<include>net/sourceforge/plantuml/openiconic/data/*.svg</include>
|
|
||||||
<include>net/sourceforge/plantuml/emoji/data/*.txt</include>
|
|
||||||
<include>net/sourceforge/plantuml/emoji/data/*.svg</include>
|
|
||||||
<include>net/sourceforge/plantuml/fun/*.png</include>
|
|
||||||
<include>sprites/archimate/*.png</include>
|
|
||||||
<include>net/sourceforge/plantuml/dedication/*.png</include>
|
|
||||||
<include>net/sourceforge/plantuml/math/*.js</include>
|
|
||||||
<include>net/sourceforge/plantuml/windowsdot/*.dat</include>
|
|
||||||
<include>net/sourceforge/plantuml/utils/*.txt</include>
|
|
||||||
</includes>
|
|
||||||
</resource>
|
|
||||||
<resource>
|
|
||||||
<directory>${project.basedir}</directory>
|
|
||||||
<includes>
|
|
||||||
<include>stdlib/**/*.repx</include>
|
|
||||||
<include>skin/**/*.skin</include>
|
|
||||||
<include>themes/**/*.puml</include>
|
|
||||||
<include>svg/**/*.css</include>
|
|
||||||
<include>svg/**/*.js</include>
|
|
||||||
</includes>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<version>3.9.0</version>
|
|
||||||
<configuration>
|
|
||||||
<debug>true</debug>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-dependency-plugin</artifactId>
|
|
||||||
<version>3.2.0</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-source-plugin</artifactId>
|
|
||||||
<version>3.2.1</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>attach-sources</id>
|
|
||||||
<goals>
|
|
||||||
<goal>jar</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
|
||||||
<version>3.3.1</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>attach-javadocs</id>
|
|
||||||
<goals>
|
|
||||||
<goal>jar</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<additionalJOptions>
|
|
||||||
<additionalJOption>-Xmaxwarns</additionalJOption>
|
|
||||||
<additionalJOption>1</additionalJOption>
|
|
||||||
</additionalJOptions>
|
|
||||||
<doclint>none</doclint>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
|
||||||
<version>3.2.2</version>
|
|
||||||
<configuration>
|
|
||||||
<archive>
|
|
||||||
<manifestFile>manifest.txt</manifestFile>
|
|
||||||
<manifest>
|
|
||||||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
|
||||||
</manifest>
|
|
||||||
</archive>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
|
||||||
<version>3.0.0-M5</version>
|
|
||||||
<configuration>
|
|
||||||
<environmentVariables>
|
|
||||||
<PLANTUML_SECURITY_PROFILE>UNSECURE</PLANTUML_SECURITY_PROFILE>
|
|
||||||
</environmentVariables>
|
|
||||||
<systemPropertyVariables>
|
|
||||||
<java.awt.headless>true</java.awt.headless>
|
|
||||||
</systemPropertyVariables>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-release-plugin</artifactId>
|
|
||||||
<version>2.5.3</version>
|
|
||||||
<configuration>
|
|
||||||
<mavenExecutorId>forked-path</mavenExecutorId>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>versions-maven-plugin</artifactId>
|
|
||||||
<version>2.9.0</version>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
<profiles>
|
|
||||||
<profile>
|
|
||||||
<!-- set the release flag only for jdk which do support it, plantuml should keep running with java8. -->
|
|
||||||
<id>javac-release-flag</id>
|
|
||||||
<activation>
|
|
||||||
<jdk>[9,)</jdk>
|
|
||||||
</activation>
|
|
||||||
<properties>
|
|
||||||
<maven.compiler.release>8</maven.compiler.release>
|
|
||||||
</properties>
|
|
||||||
</profile>
|
|
||||||
<profile>
|
|
||||||
<id>javac-source-flag</id>
|
|
||||||
<activation>
|
|
||||||
<activeByDefault>true</activeByDefault>
|
|
||||||
</activation>
|
|
||||||
<properties>
|
|
||||||
<!-- maven-compiler-plugin source default with 3.9.0 is still 1.7, so set it for java8. -->
|
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
|
||||||
</properties>
|
|
||||||
</profile>
|
|
||||||
<profile>
|
|
||||||
<id>pdf</id>
|
|
||||||
<activation>
|
|
||||||
<activeByDefault>false</activeByDefault>
|
|
||||||
</activation>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
|
||||||
<version>3.3.0</version>
|
|
||||||
<configuration>
|
|
||||||
<descriptorRefs>
|
|
||||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
|
||||||
</descriptorRefs>
|
|
||||||
<archive>
|
|
||||||
<manifest>
|
|
||||||
<mainClass>${main.class}</mainClass>
|
|
||||||
</manifest>
|
|
||||||
</archive>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>make-assembly</id>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>single</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.xmlgraphics</groupId>
|
|
||||||
<artifactId>fop</artifactId>
|
|
||||||
<version>2.7</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.xmlgraphics</groupId>
|
|
||||||
<artifactId>batik-all</artifactId>
|
|
||||||
<version>1.14</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</profile>
|
|
||||||
|
|
||||||
<profile>
|
|
||||||
<id>sign-artifacts</id>
|
|
||||||
<activation>
|
|
||||||
<property>
|
|
||||||
<name>env.SIGN_ARTIFACTS</name>
|
|
||||||
<value>true</value>
|
|
||||||
</property>
|
|
||||||
</activation>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-gpg-plugin</artifactId>
|
|
||||||
<version>3.0.1</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>sign-artifacts</id>
|
|
||||||
<phase>verify</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>sign</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
|
||||||
</project>
|
|
Loading…
Reference in New Issue
Block a user