Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

Buildpack metadata updates #42

Merged
merged 1 commit into from
Jun 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion buildpack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.

api = "0.5"
api = "0.6"

[buildpack]
id = "paketo-buildpacks/jmx"
name = "Paketo JMX Buildpack"
version = "{{.version}}"
homepage = "https://github.com/paketo-buildpacks/jmx"
description = "A Cloud Native Buildpack that configures JMX for JVM applications"
keywords = ["java", "jmx", "metrics", "management"]

[[buildpack.licenses]]
type = "Apache-2.0"
uri = "https://github.com/paketo-buildpacks/jmx/blob/main/LICENSE"

[[stacks]]
id = "io.buildpacks.stacks.bionic"
Expand Down
9 changes: 7 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ set -euo pipefail
GOOS="linux" go build -ldflags='-s -w' -o bin/helper github.com/paketo-buildpacks/jmx/cmd/helper
GOOS="linux" go build -ldflags='-s -w' -o bin/main github.com/paketo-buildpacks/jmx/cmd/main

strip bin/helper bin/main
upx -q -9 bin/helper bin/main
if [ "${STRIP:-false}" != "false" ]; then
strip bin/helper bin/main
fi

if [ "${COMPRESS:-false}" != "false" ]; then
upx -q -9 bin/helper bin/main
fi

ln -fs main bin/build
ln -fs main bin/detect