Full name:
com.vertispan.j2cl:j2cl-maven-plugin:0.21.0:build
Description:
Attributes:
compile+runtime
.prepare-package
.Name | Type | Since | Description |
---|---|---|---|
<bootstrapClasspath> |
String |
- |
(no description) Default value is: com.vertispan.j2cl:javac-bootstrap-classpath:0.11.0-9336533b6 .Alias is: javacBootstrapClasspathJar . |
<bootstrapJsZip> |
String |
- |
(no description) Default value is: com.vertispan.j2cl:bootstrap:zip:jszip:0.11.0-9336533b6 . |
<gwt3BuildCacheDir> |
File |
- |
Specifies the path to the build cache. This defaults to a directory
in target , but for easier reuse and faster builds
between projects, it can make sense to set this globally to a
shared directory.Default value is: ${project.build.directory}/gwt3BuildCache .User property is: gwt3.cache.dir . |
<initialScriptFilename> |
String |
- |
The path within webappDirectory to write the
JavaScript file generated by this goal.Default value is: ${project.artifactId}/${project.artifactId}.js . |
<internalAnnotationsJar> |
String |
- |
(no description) Default value is: com.vertispan.j2cl:gwt-internal-annotations:0.11.0-9336533b6 . |
<jreJar> |
String |
- |
(no description) Default value is: com.vertispan.j2cl:jre:0.11.0-9336533b6 . |
<jreJsZip> |
String |
- |
(no description) Default value is: com.vertispan.j2cl:jre:zip:jszip:0.11.0-9336533b6 . |
<jsinteropAnnotationsJar> |
String |
- |
(no description) Default value is: com.google.jsinterop:jsinterop-annotations:2.0.0 . |
<junitAnnotations> |
String |
- |
(no description) Default value is: com.vertispan.j2cl:junit-annotations:0.11.0-9336533b6 . |
<localBuildCache> |
File |
- |
(no description) Default value is: ${project.build.directory}/j2cl-maven-plugin-local-cache . |
<testJsZip> |
String |
- |
(no description) Default value is: com.vertispan.j2cl:closure-test:zip:jszip:0.11.0-9336533b6 . |
<webappDirectory> |
String |
- |
The output directory for this goal. Note that this is used in
conjunction with initialScriptFilename so that more
than one goal or even project can share the same webappDirectory,
but have their own sub-directory and output file.Default value is: ${project.build.directory}/${project.build.finalName} . |
Name | Type | Since | Description |
---|---|---|---|
<annotationProcessorMode> |
AnnotationProcessorMode |
- |
(no description) Default value is: AVOID_MAVEN . |
<checkAssertions> |
boolean |
- |
Whether or not to leave Java assert checks in the compiled code. In
j2cl:build, defaults to true. Has no effect when the compilation
level isn't set to ADVANCED_OPTIMIZATIONS, assertions will always
remain enabled. Default value is: false . |
<compilationLevel> |
String |
- |
Describes how the output should be built - presently supports five
modes, four of which are closure-compiler "compilationLevel"
argument options, and an additional special case for J2cl-base
applications. The quoted descriptions here explain how
closure-compiler defines them.
Default value is: ADVANCED_OPTIMIZATIONS .User property is: compilationLevel . |
<defines> |
Map |
- |
Closure flag: "Override the value of a variable annotated
@define . The format is
<name>[=<val>] , where
<name> is the name of a
@define variable and <val>
is a boolean, number, or a single-quoted string that contains no
single quotes. If [=<val>] is omitted,
the variable is marked true" In this plugin the format is to
provided tags for each define key, where the text contents will
represent the value. In the context of J2CL and Java, this can be
used to define values for system properties. |
<dependencyMode> |
String |
- |
Deprecated. Will be removed in 0.21 Default value is: SORT_ONLY . |
<dependencyReplacements> |
List |
- |
(no description) |
<enableSourcemaps> |
boolean |
- |
True to enable sourcemaps to be built into the project output. Default value is: false . |
<entrypoint> |
List |
- |
Deprecated. Will be removed in 0.21 |
<env> |
String |
- |
Closure flag: "Determines the set of builtin externs to load.
Options: BROWSER, CUSTOM. Defaults to BROWSER." Presently we
default to BROWSER, but are considering changing this to CUSTOM if
we include externs files in the generate jsinterop artifacts, so
that each set of bindings is self-contained. Default value is: BROWSER . |
<externs> |
Set |
- |
Deprecated. Will be removed in 0.21 |
<incrementalEnabled> |
boolean |
- |
(no description) Default value is: false .User property is: j2cl.incremental . |
<languageOut> |
String |
- |
ECMAScript language level of generated JavasScript. Values
correspond to the Closure Compiler reference:
https://github.com/google/closure-compiler/wiki/Flags-and-Options Default value is: ECMASCRIPT5 .User property is: languageOut . |
<rewritePolyfills> |
boolean |
- |
Closure flag: "Rewrite ES6 library calls to use polyfills provided
by the compiler's runtime." Unlike in closure-compiler, defaults to
false. Default value is: false . |
<shutdownWaitSeconds> |
int |
- |
(no description) |
<taskMappings> |
Map |
- |
(no description) |
<translationsFile> |
TranslationsFileConfig |
- |
Closure flag: "Source of translated messages. Currently only
supports XTB." |
<workerThreadCount> |
String |
- |
(no description) |
com.vertispan.j2cl.mojo.AnnotationProcessorMode
No
AVOID_MAVEN
java.lang.String
Yes
com.vertispan.j2cl:javac-bootstrap-classpath:0.11.0-9336533b6
javacBootstrapClasspathJar
java.lang.String
Yes
com.vertispan.j2cl:bootstrap:zip:jszip:0.11.0-9336533b6
boolean
No
false
ADVANCED_OPTIMIZATIONS
- "ADVANCED_OPTIMIZATIONS
aggressively reduces code size by renaming function names and
variables, removing code which is never called, etc." This is
typically what is expected for production builds.SIMPLE_OPTIMIZATIONS
- "SIMPLE_OPTIMIZATIONS
performs transformations to the input JS that do not require any
changes to JS that depend on the input JS." Generally not useful in
this plugin - slower than BUNDLE, much bigger than
ADVANCED_OPTIMIZATIONSWHITESPACE_ONLY
- "WHITESPACE_ONLY removes
comments and extra whitespace in the input JS." Generally not
useful in this plugin - slower than BUNDLE, much bigger than
ADVANCED_OPTIMIZATIONSBUNDLE
- "Simply orders and concatenates files to
the output." The GWT fork of closure also prepends define
statements, and provides wiring for sourcemaps.BUNDLE_JAR
- Not a "real" closure-compiler option.
but instead invokes BUNDLE on each classpath entry and generates a
single JS file which will load those bundled files in order.
Enables the compiler to cache results for each dependency, rather
than re-generate a single large JS file.java.lang.String
No
compilationLevel
ADVANCED_OPTIMIZATIONS
@define
. The format is
<name>[=<val>]
, where
<name>
is the name of a
@define
variable and <val>
is a boolean, number, or a single-quoted string that contains no
single quotes. If [=<val>]
is omitted,
the variable is marked true" In this plugin the format is to
provided tags for each define key, where the text contents will
represent the value. In the context of J2CL and Java, this can be
used to define values for system properties.java.util.Map
No
java.lang.String
No
SORT_ONLY
java.util.List
No
boolean
No
false
java.util.List
No
java.lang.String
No
BROWSER
java.util.Set
No
target
, but for easier reuse and faster builds
between projects, it can make sense to set this globally to a
shared directory.java.io.File
Yes
gwt3.cache.dir
${project.build.directory}/gwt3BuildCache
boolean
No
j2cl.incremental
false
webappDirectory
to write the
JavaScript file generated by this goal.java.lang.String
Yes
${project.artifactId}/${project.artifactId}.js
java.lang.String
Yes
com.vertispan.j2cl:gwt-internal-annotations:0.11.0-9336533b6
java.lang.String
Yes
com.vertispan.j2cl:jre:0.11.0-9336533b6
java.lang.String
Yes
com.vertispan.j2cl:jre:zip:jszip:0.11.0-9336533b6
java.lang.String
Yes
com.google.jsinterop:jsinterop-annotations:2.0.0
java.lang.String
Yes
com.vertispan.j2cl:junit-annotations:0.11.0-9336533b6
java.lang.String
No
languageOut
ECMASCRIPT5
java.io.File
Yes
${project.build.directory}/j2cl-maven-plugin-local-cache
boolean
No
false
int
No
java.util.Map
No
java.lang.String
Yes
com.vertispan.j2cl:closure-test:zip:jszip:0.11.0-9336533b6
com.vertispan.j2cl.mojo.TranslationsFileConfig
No
initialScriptFilename
so that more
than one goal or even project can share the same webappDirectory,
but have their own sub-directory and output file.java.lang.String
Yes
${project.build.directory}/${project.build.finalName}
java.lang.String
No