Author: taher
Date: Sun Jul 31 08:54:26 2016 New Revision: 1754640 URL: http://svn.apache.org/viewvc?rev=1754640&view=rev Log: Fix and improve the library dependencies in Gradle - OFBIZ-7534 - Convert many compile dependencies to runtime dependencies in Gradle - Move dependencies from framework to specialpurpose (only one in example component) - put a comment above dependencies which we think should be removed completely subject to further testing and confirmation from the community. After investigating the libs we realized that most of the dependencies in OFBiz are runtime rather than compile time. Furthermore, we also suspect that many of the runtime dependencies are not needed, however further testing is needed before we can confirm and remove them from build.gradle Added: ofbiz/trunk/specialpurpose/example/build.gradle (with props) Modified: ofbiz/trunk/build.gradle Modified: ofbiz/trunk/build.gradle URL: http://svn.apache.org/viewvc/ofbiz/trunk/build.gradle?rev=1754640&r1=1754639&r2=1754640&view=diff ============================================================================== --- ofbiz/trunk/build.gradle (original) +++ ofbiz/trunk/build.gradle Sun Jul 31 08:54:26 2016 @@ -58,13 +58,7 @@ configurations { dependencies { // general framework compile libs - compile 'apache-xerces:resolver:2.9.1' compile 'apache-xerces:xercesImpl:2.9.1' - compile 'avalon-framework:avalon-framework-impl:4.2.0' - compile 'bouncycastle:bouncycastle-jce-jdk13:112' - compile 'com.fasterxml.jackson.core:jackson-annotations:2.4.0' - compile 'com.fasterxml.jackson.core:jackson-core:2.4.2' - compile 'com.google.guava:guava:19.0' compile 'com.google.zxing:core:3.2.1' compile 'com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.0' compile 'com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20160628.1' @@ -73,114 +67,124 @@ dependencies { compile 'com.sun.mail:javax.mail:1.5.1' compile 'com.sun.syndication:com.springsource.com.sun.syndication:0.9.0' compile 'com.thoughtworks.xstream:xstream:1.4.9' - compile 'commons-beanutils:commons-beanutils-core:1.8.3' compile 'commons-cli:commons-cli:1.3.1' - compile 'commons-codec:commons-codec:1.10' - compile 'commons-el:commons-el:1.0' - compile 'commons-fileupload:commons-fileupload:1.3.1' - compile 'commons-io:commons-io:2.4' - compile 'commons-logging:commons-logging:1.2' compile 'commons-net:commons-net:3.3' compile 'commons-validator:commons-validator:1.5.1' compile 'de.odysseus.juel:juel-impl:2.2.7' - compile 'de.odysseus.juel:juel-spi:2.2.7' - compile 'httpunit:httpunit:1.7' compile 'javax.el:javax.el-api:3.0.1-b04' compile 'javax.servlet:javax.servlet-api:3.1.0' compile 'javax.servlet.jsp:javax.servlet.jsp-api:2.3.0' compile 'javolution:javolution:5.4.3' compile 'junit:junit-dep:4.10' - compile 'jython:jython:2.1' compile 'net.fortuna.ical4j:ical4j:1.0-rc3-atlassian-11' - compile 'net.sf.barcode4j:barcode4j-fop-ext-complete:2.0' - compile 'net.sf.dozer:dozer:4.2.1' - compile 'net.sf.ezmorph:ezmorph:0.9.1' - compile 'net.sourceforge.nekohtml:nekohtml:1.9.16' - compile 'org.apache.ant:ant-apache-bsf:1.9.0' compile 'org.apache.ant:ant-junit:1.9.0' - compile 'org.apache.ant:ant-launcher:1.9.0' - compile 'org.apache.axis2:axis2-adb:1.7.1' compile 'org.apache.axis2:axis2-kernel:1.7.1' - compile 'org.apache.axis2:axis2-transport-http:1.7.1' - compile 'org.apache.axis2:axis2-transport-local:1.7.1' compile 'org.apache.bsf:com.springsource.org.apache.bsf:2.4.0' compile 'org.apache.commons:commons-collections4:4.1' - compile 'org.apache.commons:commons-compress:1.11' compile 'org.apache.commons:commons-csv:1.1' compile 'org.apache.commons:commons-dbcp2:2.1' - compile 'org.apache.commons:commons-pool2:2.3' - compile 'org.apache.derby:derby:10.11.1.1' compile 'org.apache.geronimo.components:geronimo-transaction:3.1.1' - compile 'org.apache.geronimo.specs:geronimo-activation_1.0.2_spec:1.0' - compile 'org.apache.geronimo.specs:geronimo-j2ee-connector_1.5_spec:2.0.0' - compile 'org.apache.geronimo.specs:geronimo-jaxr_1.0_spec:1.0' - compile 'org.apache.geronimo.specs:geronimo-jaxrpc_1.1_spec:1.1' compile 'org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.1.1' - compile 'org.apache.geronimo.specs:geronimo-jta_1.1_spec:1.1.1' - compile 'org.apache.geronimo.specs:geronimo-saaj_1.3_spec:1.1' compile 'org.apache.httpcomponents:httpclient-cache:4.4.1' - compile 'org.apache.httpcomponents:httpcore:4.4.1' - compile 'org.apache.logging.log4j:log4j-1.2-api:2.3' compile 'org.apache.logging.log4j:log4j-api:2.3' - compile 'org.apache.logging.log4j:log4j-core:2.3' - compile 'org.apache.logging.log4j:log4j-nosql:2.3' - compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.3' - compile 'org.apache.neethi:neethi:3.0.3' - compile 'org.apache.pdfbox:fontbox:1.8.11' - compile 'org.apache.pdfbox:jempbox:1.8.11' - compile 'org.apache.pdfbox:pdfbox:1.8.12' compile 'org.apache.poi:poi:3.14' - compile 'org.apache.servicemix.bundles:org.apache.servicemix.bundles.xpp3:1.1.4c_7' compile 'org.apache.shiro:shiro-core:1.2.5' compile 'org.apache.tika:tika-core:1.12' compile 'org.apache.tika:tika-parsers:1.12' - compile 'org.apache.tomcat:tomcat-annotations-api:7.0.54' - compile 'org.apache.tomcat:tomcat-api:8.0.33' compile 'org.apache.tomcat:tomcat-catalina-ha:8.0.33' compile 'org.apache.tomcat:tomcat-catalina:8.0.33' - compile 'org.apache.tomcat:tomcat-coyote:8.0.33' compile 'org.apache.tomcat:tomcat-jasper:8.0.33' - compile 'org.apache.tomcat:tomcat-jni:8.0.33' compile 'org.apache.tomcat:tomcat-tribes:8.0.33' - compile 'org.apache.tomcat:tomcat-util-scan:8.0.33' - compile 'org.apache.tomcat:tomcat-util:8.0.33' - compile 'org.apache.tomcat.embed:tomcat-embed-websocket:8.0.33' - compile 'org.apache.tomcat.extras:tomcat-extras-juli-adapters:8.0.33' - compile 'org.apache.tomcat.extras:tomcat-extras-juli:8.0.33' - compile 'org.apache.woden:woden-core:1.0M10' - compile 'org.apache.ws.commons.axiom:axiom-api:1.2.17' - compile 'org.apache.ws.commons.axiom:axiom-impl:1.2.17' - compile 'org.apache.ws.commons.util:ws-commons-util:1.0.2' - compile 'org.apache.ws.xmlschema:xmlschema-core:2.2.1' - compile 'org.apache.xalan:com.springsource.org.apache.xml.serializer:2.7.1' compile 'org.apache.xmlgraphics:fop:2.1' - compile 'org.apache.xmlgraphics:xmlgraphics-commons:2.1' compile 'org.apache.xmlrpc:xmlrpc-client:3.1.2' - compile 'org.apache.xmlrpc:xmlrpc-common:3.1.2' compile 'org.apache.xmlrpc:xmlrpc-server:3.1.2' - compile 'org.codeartisans.thirdparties.swing:batik-all:1.8pre-r1084380' compile 'org.codehaus.groovy:groovy-all:2.4.5' - compile 'org.dom4j:com.springsource.org.dom4j:1.6.1' - compile 'org.eclipse.jdt.core.compiler:ecj:4.5' compile 'org.freemarker:freemarker:2.3.24-incubating' compile 'org.hamcrest:hamcrest-all:1.3' - compile 'org.jdom:jdom:1.1' - compile 'org.lucee:commons-lang:2.6.0' compile 'org.owasp.esapi:esapi:2.1.0' - compile 'org.slf4j:slf4j-api:1.6.4' - compile 'org.springframework:spring-core:4.2.3.RELEASE' compile 'org.springframework:spring-test:4.2.3.RELEASE' compile 'org.zapodot:jackson-databind-java-optional:2.4.2' compile 'oro:oro:2.0.8' - compile 'ws-commons-java5:ws-commons-java5:1.0.1' compile 'wsdl4j:wsdl4j:1.6.2' - compile 'xalan:xalan:2.7.2' - compile 'xml-apis:xml-apis-ext:1.3.04' - compile 'xml-apis:xml-apis:1.4.01' // general framework runtime libs -// runtime 'mysql:mysql-connector-java:5.1.36' -// runtime 'postgresql:postgresql:9.0-801.jdbc4' + runtime 'de.odysseus.juel:juel-spi:2.2.7' + runtime 'org.apache.axis2:axis2-transport-http:1.7.1' + runtime 'org.apache.axis2:axis2-transport-local:1.7.1' + runtime 'org.apache.derby:derby:10.11.1.1' + runtime 'org.apache.geronimo.specs:geronimo-jaxrpc_1.1_spec:1.1' + runtime 'org.apache.logging.log4j:log4j-core:2.3' + runtime 'org.apache.logging.log4j:log4j-slf4j-impl:2.3' + runtime 'org.codeartisans.thirdparties.swing:batik-all:1.8pre-r1084380' + + /* TODO We suspect that all the below dependencies are not needed and can be + * deleted from this file. They used to be compile time dependencies and we + * converted them to runtime and OFBiz seems to operate normally without them. + * We are keeping them until thorough testing is done to ensure correct + * operation without these libraries. + */ + runtime 'apache-xerces:resolver:2.9.1' + runtime 'avalon-framework:avalon-framework-impl:4.2.0' + runtime 'bouncycastle:bouncycastle-jce-jdk13:112' + runtime 'com.fasterxml.jackson.core:jackson-annotations:2.4.0' + runtime 'com.fasterxml.jackson.core:jackson-core:2.4.2' + runtime 'com.google.guava:guava:19.0' + runtime 'commons-beanutils:commons-beanutils-core:1.8.3' + runtime 'commons-codec:commons-codec:1.10' + runtime 'commons-el:commons-el:1.0' + runtime 'commons-fileupload:commons-fileupload:1.3.1' + runtime 'commons-io:commons-io:2.4' + runtime 'commons-logging:commons-logging:1.2' + runtime 'httpunit:httpunit:1.7' + runtime 'jython:jython:2.1' + runtime 'net.sf.barcode4j:barcode4j-fop-ext-complete:2.0' + runtime 'net.sf.dozer:dozer:4.2.1' + runtime 'net.sf.ezmorph:ezmorph:0.9.1' + runtime 'net.sourceforge.nekohtml:nekohtml:1.9.16' + runtime 'org.apache.ant:ant-apache-bsf:1.9.0' + runtime 'org.apache.ant:ant-launcher:1.9.0' + runtime 'org.apache.axis2:axis2-adb:1.7.1' + runtime 'org.apache.commons:commons-compress:1.11' + runtime 'org.apache.commons:commons-pool2:2.3' + runtime 'org.apache.geronimo.specs:geronimo-activation_1.0.2_spec:1.0' + runtime 'org.apache.geronimo.specs:geronimo-j2ee-connector_1.5_spec:2.0.0' + runtime 'org.apache.geronimo.specs:geronimo-jaxr_1.0_spec:1.0' + runtime 'org.apache.geronimo.specs:geronimo-jta_1.1_spec:1.1.1' + runtime 'org.apache.geronimo.specs:geronimo-saaj_1.3_spec:1.1' + runtime 'org.apache.httpcomponents:httpcore:4.4.1' + runtime 'org.apache.logging.log4j:log4j-1.2-api:2.3' + runtime 'org.apache.logging.log4j:log4j-nosql:2.3' + runtime 'org.apache.neethi:neethi:3.0.3' + runtime 'org.apache.pdfbox:fontbox:1.8.11' + runtime 'org.apache.pdfbox:jempbox:1.8.11' + runtime 'org.apache.pdfbox:pdfbox:1.8.12' + runtime 'org.apache.servicemix.bundles:org.apache.servicemix.bundles.xpp3:1.1.4c_7' + runtime 'org.apache.tomcat:tomcat-annotations-api:7.0.54' + runtime 'org.apache.tomcat:tomcat-api:8.0.33' + runtime 'org.apache.tomcat:tomcat-coyote:8.0.33' + runtime 'org.apache.tomcat:tomcat-jni:8.0.33' + runtime 'org.apache.tomcat:tomcat-util-scan:8.0.33' + runtime 'org.apache.tomcat:tomcat-util:8.0.33' + runtime 'org.apache.tomcat.extras:tomcat-extras-juli-adapters:8.0.33' + runtime 'org.apache.tomcat.extras:tomcat-extras-juli:8.0.33' + runtime 'org.apache.woden:woden-core:1.0M10' + runtime 'org.apache.ws.commons.axiom:axiom-api:1.2.17' + runtime 'org.apache.ws.commons.axiom:axiom-impl:1.2.17' + runtime 'org.apache.ws.commons.util:ws-commons-util:1.0.2' + runtime 'org.apache.ws.xmlschema:xmlschema-core:2.2.1' + runtime 'org.apache.xalan:com.springsource.org.apache.xml.serializer:2.7.1' + runtime 'org.apache.xmlgraphics:xmlgraphics-commons:2.1' + runtime 'org.apache.xmlrpc:xmlrpc-common:3.1.2' + runtime 'org.dom4j:com.springsource.org.dom4j:1.6.1' + runtime 'org.eclipse.jdt.core.compiler:ecj:4.5' + runtime 'org.jdom:jdom:1.1' + runtime 'org.lucee:commons-lang:2.6.0' + runtime 'org.slf4j:slf4j-api:1.6.4' + runtime 'org.springframework:spring-core:4.2.3.RELEASE' + runtime 'ws-commons-java5:ws-commons-java5:1.0.1' + runtime 'xalan:xalan:2.7.2' + runtime 'xml-apis:xml-apis-ext:1.3.04' + runtime 'xml-apis:xml-apis:1.4.01' // plugin libs subprojects.each { subProject -> Added: ofbiz/trunk/specialpurpose/example/build.gradle URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/example/build.gradle?rev=1754640&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/example/build.gradle (added) +++ ofbiz/trunk/specialpurpose/example/build.gradle Sun Jul 31 08:54:26 2016 @@ -0,0 +1,3 @@ +dependencies { + pluginLibsCompile 'org.apache.tomcat.embed:tomcat-embed-websocket:8.0.33' +} \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/example/build.gradle ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/example/build.gradle ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/specialpurpose/example/build.gradle ------------------------------------------------------------------------------ svn:mime-type = text/plain |
Free forum by Nabble | Edit this page |