Deep Links and Gradle Versions
This document describes Intershop's Build Tools in different versions. Information that applies only to a certain version of the tools is clearly marked.
The document also contains deep links into the Gradle's documentation. For technical reasons they always point to Gradle version 1.8. For Build Tools version >= 2.0, please refer to the Gradle Build Language Reference and Javadoc for Gradle version 2.0 instead. Mostly it is enough to substitute the version number in the URL, e.g., change:
http://www.gradle.org/docs/1.8/dsl/org.gradle.api.Task.html
into
Gradle itself as well as its plugins use extension objects to obtain configurations from build scripts. Besides the standard extension objects of Gradle the Intershop build tools add some Intershop specific extension objects, that are discussed in this section.
This extension contains the configuration of how to package artifacts of a component and other special component configurations. It comes with the intershop-base plugin. All component specific plugins applies the intershop-base plugin.
intershop { displayName = 'Platform - Messaging Component' staticLibs = fileTree(dir: staticCartridgeLibFolder, include: '*.jar') }
Type | Method | Description |
---|---|---|
NamedDomainObjectContainer< Reference - Gradle Build Tools#ComponentPackage> | packages(closure) | package contains the configuration of component artifacts |
Type | Property | Description | Default Value |
---|---|---|---|
String | displayName | Display name of a component. This is used in the ivy.xml that is stored on the repository and on the server installation. | (null) |
String | description | Description of a component. This is used in the ivy.xml that is stored on the repository and on the server installation. | (null) |
String | productName | Product name of all components. This is used for JavaDoc generation. | Intershop |
String | productCopyrightOwner | Product copyright owner of all components . This is used for JavaDoc generation. | Intershop Communications |
String | javaSourceDir | Name / path for the standard java source directory. | javasource |
String | staticCartridgeFolder | Folder with static content of component / cartridge. | staticfiles/cartridge |
String | staticCartridgeLibFolder | Folder with additional java libraries. | staticfiles/cartridge/lib |
FileCollection | staticLibs | Additional java libraries of this project. These files are added to the compile classpath and will be published with this component. | (empty collection) |
String | staticLibsPublishInclude | Pattern for java libraries, which are included in publishing. | **/** |
String | staticLibsPublishExclude | Pattern for java libraries, which are excluded from publishing | (null) |
boolean | compilerWarningsEnabled | Compiler options are added if this property is true. | false |
A component package describes a package artifact that is part of a component and extends PatternSet. For more properties and methods see PatternSet.
intershop { packages { local { srcDir fileTree(dir:'staticfiles/general', include: 'tools/**') srcDir(jar.outputs.files, { into 'tools/customer_tool' rename { String fileName -> fileName = 'customer_tool.jar' } }) } share { } } }
The following packages are preconfigured. If the package is added the preconfiguration is used.
Package | Configuration | Description |
---|---|---|
local | srcDir 'staticfiles/general/root' | files for the local installation |
cartridge | srcDir ' staticfiles/ cartridge' srcDir fileTree(dir: project.projectDir, include: 'edl/**') releaseDirName = "${project.name}/release" | files for the cartridge folder |
share | srcDir ' staticfiles/share' | files for the shared filesystem |
source | srcDir javasourceDir | javasource of a project |
javadoc | srcDir "${project.docsDir}/javadoc" releaseDirName = "${project.name}/release/docs/api" | JavaDoc files of a component |
Type | Method | Description |
---|---|---|
void | srcDirs(Object... srcDirs) | Add srcDirs. Pathes will be evaluated with project.file() |
void | srcDir(srcDir) | Add srcDir object. A path will be evaluated with project.file() |
void | srcDir(srcDir, Closure<?> c) | Add srcDir object. The closure must be from type CopySpec |
void | setSrcDirs(Iterable<?> srcPaths) | Set the list of source directories of the package. |
Type | Property | Description | Default Value |
---|---|---|---|
String | name | The name of the package. This is used as type attribute for publishing. | n.a. |
String | classifier | This is used for packages which are operating system specific. | (null) |
String | releaseDirName | The root path inside the package. | n.a. |
This extension comes with the jaxb plugin. This plugin is automatically applied by the intershop-javabase plugin. With this extension the JAXB code generation is configured. For each configuration a jaxb task will be created.
Both examples generate the Java files of bc_mvc JAXB configuration.
jaxb { configs { bc_mvc { xsd = 'staticfiles/definition/bc_mvc.xsd' xjb = 'staticfiles/definition/bc_mvc.xjb' } } }
jaxb { configs { bc_mvc { dir = 'staticfiles/definition' } } }
Type | Method | Description |
---|---|---|
NamedDomainObjectContainer< Reference - Gradle Build Tools#JaxbConfig> | configs(closure) | configs contains the configuration of different Jaxb configurations |
Type | Property | Description | Default Value |
---|---|---|---|
String | outputPath | target for the code generation | generated/jaxb |
String | sourceSetName | the output of the code generation will be added to this source set. | main |
String | xjcVersion | This is the currently used version. Please be aware that the server must support this version. | 2.2.4-1 |
This type describes a special Jaxb configuration.
The following configurations of input files are valid:
Type | Property | Description | Default Value |
---|---|---|---|
String | name | The name of the configuration. This is used for the output of the generation. Also the task name will be extended with this name. | n.a. |
String | xsd | The file name of the XML schema description file. The path will be evaluated with project.file() (optional) | n.a. |
String | xjb | The file name of the JAXB binding file. This will be evaluated with project.file() (optional) | n.a. |
String | dir | Directory with schema description and binding files. (optional) | n.a. |
String | packageName | The package name of the generated classes. (optional) | n.a. |
This extension comes with the jaxbSchemaGen plugin. This plugin is automatically applied by the intershop-javabase plugin. With this extension the JAXB schema generation is configured. For each configuration a jaxbSchemaGen task will be created.
The example generates the schema file of ac_order_status_import_xml.
jaxbSchemaGen { configs { acorder { includes = 'com/intershop/adapter/orderstatusimport/xml/binding/*.java' xsd = 'share/system/impex/schema/ac_order_status_import_xml.xsd' namespace = 'http://www.intershop.com/xml/ns/intershop/order/status/1.0' } } }
Type | Method | Description |
---|---|---|
NamedDomainObjectContainer< Reference - Gradle Build Tools#JaxbSchemaGenConfig> | configs(closure) | configs contains the configuration of different JaxbSchemaGen configurations |
Type | Property | Description | Default Value |
---|---|---|---|
String | outputPath | target for the schema generation | generated/jaxbSchemaGen |
String | sourceSetName | the classpath of the schema generation will include this source set. | main |
String | xjcVersion | This is the currently used version. Please be aware that the server must support this version. | 2.2.7 |
This type describes a special JaxbSchemaGen configuration.
The following configuration of input files is valid:
Type | Property | Description | Default Value |
---|---|---|---|
String | name | The name of the configuration. This is used for the output of the generation. Also the task name will be extended with this name. | n.a. |
String | xsd | The file name of the resulting XML schema description file. | n.a. |
String | includes | The pattern by which source code will be used to generate the schema, may use wildcards. | n.a. |
String | namespace | The namespace of the generated scheme. | n.a. |
This extension comes with the wsdl plugin. This plugin is automatically applied by the intershop-javabase plugin. With this extension the WSDL code generation will be configured. For each configuration a wsdl2java task will be created.
wsdl { axis1Configs { processWebObjects { wsdlFile = 'staticfiles/wsdl/ProcessWebObjects.wsdl' packageName = 'com.intershop.beehive.core.capi.staging.webservice' } } }
wsdl { axis1Configs { echoWebService { wsdlFile = 'staticfiles/wsdl/EchoWebService.wsdl' packageName = 'tests.server.com.intershop.beehive.core.internal.webservice.client' } } axis2Configs { addNumbersService { wsdlFile = 'staticfiles/wsdl/AddNumbersService.wsdl' packageName = 'tests.server.com.intershop.beehive.core.internal.axis2.additionservice.client' } } }
Type | Method | Description |
---|---|---|
NamedDomainObjectContainer< Reference - Gradle Build Tools#Axis1Config> | axis1Configs(closure) | axis1Configs contains the configuration of different Axis 1 configurations |
NamedDomainObjectContainer< Reference - Gradle Build Tools#Axis2Config> | axis2Configs(closure) | axis2Configs contains the configuration of different Axis 2 configurations |
Type | Property | Description | Default Value |
---|---|---|---|
String | outputPath | Target for the code generation | generated/wsdl |
String | sourceSetName | The output of the code generation will be added to this source set. | main |
This type describes a special Axis 1 configuration.
Type | Property | Description | Default Value |
---|---|---|---|
String | name | The name of the configuration. This is used for the output of the generation. The task name will be extended with this name. | n.a. |
String | wsdlFile | Path to WSDL file. The path will be evaluated with project.file(). | n.a. |
String | packageName | The package name of the generated classes (optional) | n.a. |
Map<String, String> | namespacePackageMapping | Namespace package mapping (optional) | n.a. |
boolean | generateAllClasses | Generates all elements, even unused ones (optional) | false |
String | namespacePackageMappingFile | File for namespace mapping. The path will be evaluated with project.file() (optional) | n.a. |
boolean | generateTestcase | Generates a test case for the generated code | false |
String | axisVersion | Version of the used Axis version. Please be aware that the server must support this version. | 1.4 |
boolean | noWrapping | No wrapping | false |
String | mode | Mode to generate, supported CLIENT, SERVER | n.a. |
boolean | generateNoImports | Only generates given WSDL and no imports | false |
int | timeout | Timeout configuration | 240 |
boolean | wrapArrays | Prefers generating JavaBean classes like ArrayOfString or certain schema array patterns (default is to use String []) | true |
String | userName | UserName to access an external WSDL | n.a. |
String | password | Password to access the WSDL-URI | n.a. |
This type describes a special Axis 2 configuration.
Type | Property | Description | Default Value |
---|---|---|---|
String | name | The name of the configuration. This is used for the output of the generation. Also the task name will be extended with this name. | n.a. |
String | wsdlFile | Path to WSDL file. The path will be evaluated with project.file(). | n.a. |
String | packageName | The package name of the generated classes (optional) | n.a. |
Map<String, String> | namespacePackageMapping | Namespace package mapping (optional) | n.a. |
boolean | generateAllClasses | Generates all elements, even unused ones (optional) | false |
String | namespacePackageMappingFile | File for namespace mapping. The path will be evaluated with project.file() (See also NStoPkg) (optional) | n.a. |
boolean | generateTestcase | Generates a test case for the generated code | false |
String | axisVersion | Version of the used Axis version. Please be aware that the server must support this version. | 1.6.2 |
boolean | noWrapping | No wrapping | false |
String | mode | Mode to generate, supported CLIENT, SERVER | n.a. |
String | language | Language of the generated code | java |
String | serviceName | The name of the service in the case of multiple services. If the service name is not specified, the first service will be picked. | n.a. |
String | portName | The name of the port in the presence of multiple ports. If the port name is not specified, the first port (of the selected service) will be picked. | n.a. |
String | databindingName | The Axis data binding: adb (default), xmlbeans, jaxbri, jibx). | adb |
String | synchronizationMode | Synchronization Mode: ALL, ASYNC, SYNC | n.a. |
String | wsdlVersion | WSDL Version. Valid Options : 2, 2.0, 1.1 | 1.1 |
boolean | unpackClasses | Unpacks the generated classes. This forces the databinding classes to be generated separately, which otherwise would have been generated as inner classes. | true |
This extension comes with the isml plugin. This plugin is automatically applied by the static-cartridge plugin. With this extension ISML templates will be compiled. For each configuration a isml2class task will be created.
isml { main { ismlPath = 'staticfiles/cartridge/templates' compileClasspath = sourceSets.main.compileClasspath + sourceSets.main.output } }
Type | Method | Description |
---|---|---|
NamedDomainObjectContainer<Reference - Gradle Build Tools#IsmlSourceSet> | sourceSets(closure) | Configures ISML source sets for this component |
Type | Property | Description | Default Value |
---|---|---|---|
String | jspVersion | Version of the used Apache Tomcat for JSP compilation | 7.0.42 |
String | eclipseCompilerVersion | Apache Tomcat uses the Eclipse compiler. This version must correspond to the Apache Tomcat version | 4.2.2 |
String | templateEncoding | Default encoding for ISML template compilation. | UTF-8 |
Type | Property | Description | Default Value |
---|---|---|---|
String | name | The name of the configuration. This is used for the output of the generation. Also the task name will be extended with this name. | n.a. |
String | ismlPath | Path with ISML files. The files must be organized in sub folders! This is in the most cases default or the language code. | staticfiles/cartridge/templates |
FileCollection | compileClasspath | The classpath for the compile process. | n.a. |
There is one IsmlSourceSet main preconfigured for this plugin.
This extension comes with the tlocplugin. This plugin is automatically applied by the static-cartridge plugin. With this extension ISML templates will be localized if a special dictionary file is available. For each localization a tloc tasks will be created and an ISML source set tloc_<language code> is added to the list of ISML source sets, if the ISML plugin is applied. This tool should also be used during the development process (see TLoc documntation).
tloc { languages { de_De { } } }
Type | Method | Description |
---|---|---|
NamedDomainObjectContainer < Reference - Gradle Build Tools#Language> | languages(closure) | Configures the language for localization |
Type | Property | Description | Default Value |
---|---|---|---|
String | name | The name of the configuration. This is used by default also for the language code | de_De |
String | languageCode | Language code | n.a. |
This extension comes with the javacc plugin. This plugin is automatically applied by the intershop-javabase plugin.
javacc { configs { ismlParser { inputFile = 'javasource/com/intershop/beehive/isml/internal/parser/ISMLparser.jj' outputPath = 'com/intershop/beehive/isml/internal/parser' javaUnicodeEscape = true ignoreCase = true } } }
javacc { configs { oPExpression { inputFile = 'javasource/com/intershop/beehive/core/internal/opexpression/parser/OPExpressionGrammar.jjt' outputPath = 'com/intershop/beehive/core/internal/opexpression/parser' jdkVersion = '1.4' javaUnicodeEscape = true ignoreCase = true jjtree { visitor = true nodePrefix = '' nodeExtends = 'com.intershop.beehive.core.internal.opexpression.parser.SuperNode' } } } }
Type | Method | Description |
---|---|---|
NamedDomainObjectContainer < Reference - Gradle Build Tools#JavaccConfig> | configs( closure) | Configures a JavaCC code generation. |
Type | Property | Description | Default Value |
---|---|---|---|
String | sourceSetName | the output of the code generation will be added to this source set . | main |
For more details of JavaCC you can find in the JavaCC documentation.
Type | Method | Description |
---|---|---|
Reference - Gradle Build Tools#JJTree | jjtree(closure) | This contains the configuration of code generation with JJT ree, which runs before an the JavaCC. |
Type | Property | Description | Default Value |
---|---|---|---|
String | name | The name of the configuration. This is used for the output of the generation. Also the task name will be extended with this name. | config |
String | outputPath | This is the target for of the JavaCC code generation | generated/javacc/<name> |
int | lookahead | The number of tokens to look ahead before making a decision at a choice point during parsing. The smaller this number is, the faster will be the parser. This number may be overridden for specific productions within the grammar as described later. | 1 |
int | choiceAmbiguityCheck | This is the number of tokens considered in checking choices of the form "A | B | ..." for ambiguity. For example, if there is a common two token prefix for both A and B, but no common three token prefix, (assume this option is set to 3) then JavaCC can tell you to use a lookahead of 3 for disambiguation purposes. And if A and B have a common three token prefix, then JavaCC only tell you that you need to have a lookahead of 3 or more . Increasing this can give you more comprehensive ambiguity information at the cost of more processing time. For large grammars such as the Java grammar, increasing this number any further causes the checking to take too much time. | 2 |
int | otherAmbiguityCheck | This is the number of tokens considered in checking all other kinds of choices (i.e., of the forms "(A)*", "(A)+", and "(A)?") for ambiguity. This takes more time to do than the choice checking, and hence the default value is set to 1 rather than 2. | 1 |
boolean | staticParam | If true , all methods and class variables are specified as static in the generated parser and token manager. This allows only one parser object to be present, but it improves the performance of the parser. To perform multiple parses during one run of your Java program, you will have to call the ReInit() method to reinitialize your parser if it is static. If the parser is non-static, you may use the "new" operator to construct as many parsers as you wish. These can all be used simultaneously from different threads. | false |
boolean | supportClassVisibilityPublic | The default action is to generate support classes (such as Token.java, ParseException.java etc) with Public visibility. If set to | true |
boolean | debugParser | This option is used to obtain debugging information from the generated parser. Setting this option to true causes the parser to generate a trace of its actions. Tracing may be disabled by calling the method disable_tracing() in the generated parser class. Tracing may be subsequently enabled by calling the method enable_tracing() in the generated parser class. | false |
boolean | debugLookahead | Setting this option to true causes the parser to generate all the tracing information it does when the option
debugParser is is true , and in addition, it causes to generate a trace of actions performed during lookahead operation. | false |
boolean | debugTokenManager | This option is used to obtain debugging information from the generated token manager. Setting this option to true causes the token manager to generate a trace of its actions. This trace is rather large and should only be used when you have a lexical error that has been reported to you and you cannot understand why. Typically, in this situation, you can determine the problem by looking at the last few lines of this trace. | false |
boolean | errorReporting | Setting it to false causes errors due to parse errors to be reported in somewhat less detail. The only reason to set this option to false is to improve performance. | true |
boolean | javaUnicodeEscape | When set to true , the generated parser uses an input stream object that processes Java Unicode escapes (\u...) before sending characters to the token manager. By default, Java Unicode escapes are not processed. This option is ignored if either of options
userTokenManager
or
userCharStream is set to true . | false |
boolean | unicodeInput | When set to true , the generated parser uses an input stream object that reads Unicode files. By default, ASCII files are assumed. | false |
boolean | ignoreCase | Setting this option to true causes the generated token manager to ignore case in the token specifications and the input files. This is useful for writing grammars for languages such as HTML. | false |
boolean | commonTokenAction | When set to true , every call to the token manager's method getNextToken will cause a call to a used defined method CommonTokenAction after the token has been scanned in by the token manager. The user must define this method within the TOKEN_MGR_DECLS section. The signature of this method is:void CommonTokenAction(Token t) | false |
boolean | userTokenManager | The default action is to generate a token manager that works on the specified grammar tokens. If this option is set to true , the parser is generated to accept tokens from any token manager of type TokenManager - this interface is generated into the generated parser directory. | false |
boolean | userCharStream | The default action is to generate a character stream reader as specified by the options javaUnicodeEscape and unicodeInput. The generated token manager receives characters from this stream reader. If this option is set to true , the token manager is generated to read characters from any character stream reader of type CharStream.java. This file is generated into the generated parser directory. | false |
boolean | buildParser | The default action is to generate the parser file (MyParser.java in the above example). When set to false , the parser file is not generated. Typically, this option is set to false if you wish to generate only the token manager and use it without the associated parser. | true |
boolean | buildTokenManager | The default action is to generate the token manager file (MyParserTokenManager.java in the above example). When set to false the token manager file is not generated. The only reason to set this option to false is to save some time during parser generation when you fix problems in the parser part of the grammar file and leave the lexical specifications untouched. | true |
boolean | tokenManagerUsesParser | When set to | false |
boolean | sanityCheck | JavaCC performs many syntactic and semantic checks on the grammar file during parser generation. Some checks such as detection of left recursion, detection of ambiguity, and bad usage of empty expansions may be suppressed for faster parser generation by setting this option to false. Note that the presence of these errors (even if they are not detected and reported by setting this option to false ) can cause unexpected behavior from the generated parser. | true |
boolean | forceLaCheck | This option setting controls lookahead ambiguity checking performed by JavaCC. By default (when this option is false ), lookahead ambiguity checking is performed for all choice points where the default lookahead of 1 is used. Lookahead ambiguity checking is not performed at choice points where there is an explicit lookahead specification, or if the option lookahead is set to something other than 1. Setting this option to true performs lookahead ambiguity checking at all choice points regardless of the lookahead specifications in the grammar file. | false |
boolean | cacheTokens | Setting this option to true causes the generated parser to lookahead for extra tokens ahead of time. This facilitates some performance improvements. However, in this case (when the option is true ), interactive applications may not work since the parser needs to work synchronously with the availability of tokens from the input stream. In such cases, it is best to leave this option at its default value. | false |
boolean | keepLineColumn | The line and column numbers will not be recorded in the token objects if the value is set to true . | true |
String | tokenExtends | This meaning that the generated token class will extend java.lang.Object . This option may be set to the name of a class that will be used as the base class for the generated Token class. | '' |
String | tokenFactory | This meaning that tokens will be created by calling Token.newToken() . If set the option names a token factory class containing a public static Token newToken(int ofKind, String image) method. | '' |
String | jdkVersion | The code will be generated for this JDK version. | 1.5 |
For more details see JJTree Reference Documentation.
Type | Property | Description | Default Value |
---|---|---|---|
boolean | multi | Generate a multi mode parse tree. | true |
boolean | nodeDefaultVoid | Instead of making each non-decorated production an indefinite node, make it void instead. | false |
boolean | nodeScopeHook | Insert calls to user-defined parser methods on entry and exit of every node scope. | false |
boolean | nodeUsesParser | JJTree will use an alternate form of the node construction routines where it passes the parser object in. | false |
boolean | buildNodeFiles | Generate sample implementations for | true |
boolean | trackTokens | Insert jjtGetFirstToken() , jjtSetFirstToken() , getLastToken() , and jjtSetLastToken() methods in SimpleNode . The FirstToken is automatically set up on entry to a node scope; the LastToken is automatically set up on exit from a node scope. | false |
boolean | visitor | Insert a jjtAccept() method in the node classes, and generate a visitor implementation with an entry for every node type used in the grammar. | false |
String | nodeClass | If set defines the name of a user-supplied class that will extend SimpleNode . Any tree nodes created will then be subclasses of NODE_CLASS. | '' |
String | nodePrefix | The prefix used to construct node class names from node identifiers in multi mode. | AST |
String | nodePackage | The package to generate the node classes into. The default for this is the parser package. | '' |
String | nodeExtends | The superclass for the SimpleNode class. By providing a custom superclass you may be able to avoid the need to edit the generated SimpleNode.java. | '' |
String | nodeFactory | Specify a class containing a factory method with following signature to construct nodes: public static Node jjtCreate(int id) For backwards compatibility, the value false may also be specified, meaning that SimpleNode will be used as the factory class. | '' |
String | visitorDataType | If this option is set, it is used in the signature of the generated jjtAccept() methods and the visit() methods as the type of the data argument. | '' |
String | visitorReturnType | If this option is set, it is used in the signature of the generated jjtAccept() methods and the visit() methods as the return type of the method. | java.lang.Object |
String | visitorException | If this option is set, it is used in the signature of the generated jjtAccept() methods and the visit() methods. | '' |
This extension comes with the resourcelist plugin. This plugin is automatically applied by the javabase-cartridge plugin. The following configurations will be created by the plugin:
resourcelist { lists { orm { source sourceSets.main.allSource.getSrcDirs() include '**/**/*.orm' resourceListFile = new File(sourceSets.main.output.getResourcesDir(), "resources/${project.name}/orm/orm.resource") } pipelets { source sourceSets.main.allSource.getSrcDirs() include '**/pipelet/**/*.xml' exclude '**/*_??_??.xml' resourceListFile = new File(sourceSets.main.output.getResourcesDir(), "resources/${project.name}/pipeline/pipelets.resource") } } }
Type | Method | Description |
---|---|---|
NamedDomainObjectContainer< Reference - Gradle Build Tools#ListConfiguration> | lists(closure) | Configures a generation of special resource files from existing code artifacts. For each configuration a task will be created. |
A ListConfiguration describes a resource list generation and extends PatternSet. For more properties and methods see PatternSet.
Type | Method | Description |
---|---|---|
add(Object) | Add source directory to list of source dirs. The parameter will be evaluated with project.file(). |
Type | Property | Description | Default Value |
---|---|---|---|
String | name | This is the name of the configuration. The name will be used for the task name. | res |
String | extension | This is used to filter the source files. If this value is not specified, the value of the property name is used for this property. | |
List | srcDirs | This is the list of source directories for resource file creation. The parameter will be evaluated with project.files(). | empty list |
File | resourceListFile | The generated resource file. |
This extension comes with the intershop-sonar plugin.
Note
The old plugin is still part of the delivery, but not longer automatically included in the build process.
Type | Method | Description |
---|---|---|
runnerArgs(String) | Add arguments for SonarQube runner |
Type | Property | Description | Default Value |
---|---|---|---|
List | modules | Returns a list of modules which should be analysed. | java Since version 2.2: java, js, css |
String | sonarHostUrl | This is the URL of the SonarQube server. | |
String | sonarLogin | This is the login of the user. The value of the property sonarLogin will be used from the plugin instead of the extension setting. | empty list |
String | sonarPassword | This is the password of the user. The value of the property sonarPassword will be used from the plugin instead of the extension setting. | |
String | sonarJDBCUrl | This is the JDBC url of the SonarQube database. The value of the property sonarJDBCUrl will be used from the plugin instead of the extension setting. | |
String | sonarJDBCDriverClassName | This is the JDBC driver class for the database access. The value of the property sonarJDBCDriverClass will be used from the plugin instead of the extension setting. | |
String | sonarJDBCUserName | The value of the property sonarJDBCUserName will be used from the plugin instead of the extension setting. | |
String | sonarJDBCPassword | The value of the property sonarJDBCPassword will be used from the plugin instead of the extension setting. | |
String | branchVersion | The value of the property branchVersion will be used from the plugin instead of the extension setting. | trunk |
This plugin add the Intershop extension to the project. The following plugins will be applied with this plugin: base, java-base and ivy-publish. For more information see Standard Gradle plugins . This plugin will change or add some configurations:
creates the SourceSet main
extend classpath with internal liberaries from the source folder staticfiles/cartridge/lib
changes the behavior of the compile configuration to non transitive
additional artifacts of an Intershop component are pre-configured in this plugin (see Reference - Gradle Build Tools#ComponentPackage).
add an Intershop component configuration for publishing (see Gradle documentation): components.intershop
add an IVY publishing configuration for Intershop components
The workflow of tasks will be not changed by this plugin. All tasks and the workflow is implemented by standard Gradle cartridges.
This plugin applies the plugin Reference - Gradle Build Tools#intershop-base. A component, that is installed in the Intershop cartridge folder, includes always an artifact for the shared file system. Therefore the artifact share
is added by this plugin (see Reference - Gradle Build Tools#ComponentPackage).
This plugin applies the plugin Reference - Gradle Build Tools#intershop-base. Plugins for some special code generation are also applied by this plugins:
jaxb plugin
wsdl plugin
javacc plugin
Reference - Gradle Build Tools#intershop-sonar plugin
This plugin will change or add some configurations:
Add Reference - Gradle Build Tools#javaSourceDir of the Intershop extension as a source directory to SourceSet main.
SourceSet test is created and Reference - Gradle Build Tools#javaSourceDir of the Intershop extension as a source directory is added. Furthermore the the include and exclude is changed.
sourceSets { main { java { srcDir project.extensions.intershop.javaSourceDir include '**/**/*.java' } resources { srcDir project.extensions.intershop.javaSourceDir include '**/**/**' exclude '**/**/*.java' } } test { java { srcDir project.extensions.intershop.javaSourceDir include 'tests/**/**' exclude 'tests/server/**/*.java' exclude 'tests/unit/**/*.java' } } }
The classpaths of the compile configuration of main
and the runtime configuration test
are extended.
The following configurations are added: testRuntime
, testCompile
, source
and javadoc
.
This plugin adds also some tasks: test
and jar<SourceSet name>
.
Workflow
This plugin applies the Reference - Gradle Build Tools#intershop-javabase plugin. It extends the IVY publishing of the jar file. Furthermore the javadoc task is added to the workflow.
This plugin applies the Reference - Gradle Build Tools#intershop-javabase plugin. It changes the configuration of the SourceSet main
.
sourceSets { main { java { exclude 'tests/**/**' } resources { exclude 'tests/**/**' } } }
This plugin applies the Reference - Gradle Build Tools#intershop-java plugin. It changes the configuration of the SourceSet main
(see Reference - Gradle Build Tools#javabase-component).
This plugin applies Reference - Gradle Build Tools#cartridge-base, Reference - Gradle Build Tools#intershop-java and resourcelist plugin. The configuration of the compiler is extended for annotation processing.
If the project.extensions.intershop.compilerWarningsEnabled is true the following compiler options are added:
'-Xlint:deprecation'
'-Xlint:unchecked'
'-Xlint:path'
This plugin applies Reference - Gradle Build Tools#javabase-cartridge.
The following additional artifacts will be added:
if the value of project property releaseWithSources
is true
, the source package will be created
if the value of project property releaseWithJavaDoc
is true
, the javadoc package will be created
The default value of both properties is false
. If the properties are true
, tasks will be added to the workflow - javadoc will be executed before the packaging starts.
This plugin applies Reference - Gradle Build Tools#intershop-base plugin without any changes. This is a place holder for further versions.
This plugin applies Reference - Gradle Build Tools#cartridge-base, tloc and isml plugin. This plugin adds also the 'cartridge' additional package.
Workflow
This plugin is currently identical to Reference - Gradle Build Tools#javabase-cartridge. This is a place holder for further versions.
This plugin applies the Reference - Gradle Build Tools#javabase-cartridge plugin without any other changes. It adds also the Task check
, if this is not available in the task list. This is necessary for a "library" cartridge - a cartridge that contains only other libraries.
This kind of cartridges is deprecated, please use standard Gradle dependencies instead.
This plugin applies the Reference - Gradle Build Tools#intershop-java plugin. This is necessary for a "tools" cartridge - a cartridge that contains only other libraries. The additional jar file contains an entry in the manifest of the jar. This extends the classpath and is necessary for some tools.
This kind of cartridges is deprecated, please use standard Gradle dependencies instead.
This plugin adds the jaxb extension. This plugin adds the JAXB code generation to the Intershop build plugins.
Please use the public available 'Jaxb code generator plugin' (jaxb-gradle-plugin).
This plugin adds jaxbSchemaGen extension. This plugin adds the JAXB schema generator to the Intershop build plugins.
Please use the public available 'Jaxb code generator plugin' (jaxb-gradle-plugin).
This plugin adds the wsdl extension. This plugin adds the WSDL code generation for Axis and Axis 2 to the Intershop build plugins.
This plugin adds the javacc extension. This plugin adds the JavaCC code generation to the Intershop build plugins.
Please use the public available 'WSDL code generator plugin' (wsdl-gradle-plugin).
This plugin adds the sonarqube extension. This plugin adds the Sonar code analyses to the Intershop build plugins. The task run the Sonar starter library and starts a separate Java process.
This plugin is deprecated, please use (sonarqube-gradle-plugin) or the standard Plugin from SonarQube.
This plugin adds the resourcelist extension. This plugin adds the resourcelist generation to the Intershop build plugins.
Please use the public available 'ResourceList generator plugin' (resourcelist-gradle-plugin).
This plugin adds the tloc extension. This plugin add the ISML localization template generation to the Intershop build plugins. For the generated ISML templates the ISML configuration will be extended. An additional ISML source set is added.
This plugin adds the isml extension. This plugin pre-compiles ISML templates.