# Copyright 2020 Arnaud Lefebvre # Distributed under the terms of the GNU General Public License v2 require github [ user="elastic" project="apm-agent-java" tag="v${PV}" ] SUMMARY="Elastic APM Java Agent" DESCRIPTION=" Elastic APM automatically measures the performance of your application and tracks errors. " LICENCES="Apache-2.0" SLOT="0" PLATFORMS="~amd64" BUGS_TO="arnaud.lefebvre@clever-cloud.com" DEPENDENCIES=" build: dev-java/maven virtual/jdk:=[>=9] run: virtual/jre:=[>=9] " src_compile () { # mvn needs to fetch dependencies esandbox disable_net edo mvn package --projects apm-agent-common,${PN},${PN}-cli -DskipTests=true -Dmaven.javadoc.skip=true -Dmaven.compiler.target=8 esandbox enable_net } src_test () { # mvn needs to fetch dependencies esandbox disable_net edo mvn test --projects apm-agent-common,${PN} esandbox enable_net } src_install () { insinto /usr/share/"${PN}" newins apm-agent-common/target/apm-agent-common-${PV}.jar apm-agent-common.jar newins "${PN}"/target/${PNV}.jar ${PN}.jar newins "${PN}-cli"/target/${PN}-cli-${PV}.jar ${PN}-cli.jar }