fdk-java icon indicating copy to clipboard operation
fdk-java copied to clipboard

Gradle Support

Open zootalures opened this issue 7 years ago • 4 comments

Fn Build for FDK currently only works with Maven - intention is to support gradle one way or another too.

  • Boilerplate
  • Build (Code & Container)

zootalures avatar Nov 03 '17 13:11 zootalures

The Dockerfile variant in the examples is, IMNSHO, something which can be improved upon. Immensely.

olasundell avatar Mar 13 '18 09:03 olasundell

Agreed - it's based on what we use/generate for maven.

FWIW - for the language builds in the CLI we're not trying to solve all problems/build conventions here but just trying to get a working convention that is suitable for new and casual users.

For Builds I think power uses are much more likely to tread their own path (e.g. your CI builds the docker image however you want, Fn cli /SDK just publishes the function.

(fn is not supposed to be an all-singing, all-dancing build system, but has a simple build system built in which is suitable for many use cases, and the option to extend by either bringing your own Dockerfile (fn runs docker build for you) or letting you do the docker builds externally (fn just consumes the docker image coordinates) )

zootalures avatar Mar 13 '18 13:03 zootalures

If you have something specific you would like to add/change please contribute! (thanks)

zootalures avatar Mar 13 '18 13:03 zootalures

FWIW we chose maven as the initial build tool as we think it's what about 60-70% of users use in server-side java - but totally recognise that supporting gradle will help a large fraction of the rest of users, it's just a time/priority thing.

zootalures avatar Mar 13 '18 13:03 zootalures