Skip to content

Commit

Permalink
Merge pull request #73 from paketo-buildpacks/updates
Browse files Browse the repository at this point in the history
Buildpack metadata updates
  • Loading branch information
Daniel Mikusa authored Jun 2, 2021
2 parents c82a7f9 + 2d80d14 commit 3ed9046
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
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/gradle"
name = "Paketo Gradle Buildpack"
version = "{{.version}}"
homepage = "https://github.com/paketo-buildpacks/gradle"
description = "A Cloud Native Buildpack that builds Gradle-based applications from source"
keywords = ["java", "gradle", "build-systems"]

[[buildpack.licenses]]
type = "Apache-2.0"
uri = "https://github.com/paketo-buildpacks/gradle/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 @@ -4,8 +4,13 @@ set -euo pipefail

GOOS="linux" go build -ldflags='-s -w' -tags osusergo -o bin/main github.com/paketo-buildpacks/gradle/cmd/main

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

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

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

0 comments on commit 3ed9046

Please sign in to comment.