Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains Cabal Setup.hs
hooks to set the CLASSPATH
to use
when compiling inline code. The CLASSPATH
environment variable specifies
where to find JVM package dependencies, such as third party packages
downloaded from Maven Central.
You can set the CLASSPATH
manually, or extract one from an external build
system configuration. Currently supported build systems:
Synopsis
- gradleHooks :: UserHooks -> UserHooks
- prependClasspathWithGradle :: Args -> b -> IO HookedBuildInfo
- gradleBuild :: PackageDescription -> LocalBuildInfo -> UserHooks -> BuildFlags -> IO ()
- addJarsToClasspath :: [FilePath] -> UserHooks -> UserHooks
Documentation
gradleHooks :: UserHooks -> UserHooks Source #
Adds the prependClasspathWithGradle
and gradleBuild
hooks.
Also adds the jar produced by gradle to the data-files.
prependClasspathWithGradle :: Args -> b -> IO HookedBuildInfo Source #
Prepends the CLASSPATH
with the classpath from a Gradle build
configuration.
gradleBuild :: PackageDescription -> LocalBuildInfo -> UserHooks -> BuildFlags -> IO () Source #
Call gradle build
as part of the Cabal build. Useful to e.g. build
auxiliary Java source code and to create packages.