No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build Polishing Dec 10, 2018
buildsystem Support build.gradle.kts Dec 12, 2018
cache Polishing Dec 10, 2018
ci Package Improvements Dec 5, 2018
detect Support build.gradle.kts Dec 12, 2018
runner Polishing Dec 10, 2018
.gitignore Forgot the change to the cache directory Dec 1, 2018
LICENSE Initial Project Structure Sep 17, 2018
NOTICE Initial Project Structure Sep 17, 2018
README.md Support build.gradle.kts Dec 12, 2018
buildpack.toml Gradle 5.0 Dec 2, 2018
go.mod Dependency Updates Dec 11, 2018
go.sum Dependency Updates Dec 11, 2018

README.md

build-system-buildpack

The Cloud Foundry Build System Buildpack is a Cloud Native Buildpack V3 that enables the building of JVM applications from source.

This buildpack is designed to work in collaboration with other buildpacks.

Detection

The detection phase passes if

  • <APPLICATION_ROOT>/build.gradle or <APPLICATION_ROOT>/build.gradle.kts exists

    • Contributes gradle to the build plan
    • Contributes jvm-application to the build plan
    • Contributes openjdk-jdk to the build plan
  • <APPLICATION_ROOT>/pom.xml exists

    • Contributes maven to the build plan
    • Contributes jvm-application to the build plan
    • Contributes openjdk-jdk to the build plan

Build

If the build plan contains

  • gradle

    • Contributes a layer marked cache and links it to $HOME/.gradlew
    • If <APPLICATION_ROOT>/gradlew exists
      • Contributes a layer marked build, cache, and launch by running <APPLICATION_ROOT>/gradlew -x test build
    • If <APPLICATION_ROOT>/gradlew does not exist
      • Contributes Gradle distribution to a layer marked cache with all commands on $PATH
      • Contributes a layer marked build, cache, and launch by running <GRADLE_ROOT>/bin/gradle -x test build
    • Replaces<APPLICATION_ROOT> with a link to compiled application layer
  • maven

    • Contributes a layer marked cache and links it to $HOME/.m2
    • If <APPLICATION_ROOT>/mvnw exists
      • Contributes a layer marked build, cache, and launch by running <APPLICATION_ROOT>/mvnw -Dmaven.test.skip=true package
    • If <APPLICATION_ROOT>/mvnw does not exist
      • Contributes Maven distribution to a layer marked cache with all commands on $PATH
      • Contributes a layer marked build, cache, and launch by running <MAVEN_ROOT>/bin/mvn -Dmaven.test.skip=true package
    • Replaces<APPLICATION_ROOT> with a link to compiled application layer

License

This buildpack is released under version 2.0 of the Apache License.