当我列出我的webapp的运行时依赖项(使用AppEngine)时,一切看起来都很好:
gradle sourcing-server:dependencies --configuration runtime
$('#select_id').change(function(){
var sval = $('#select_id').val();
alert('the selected value' + sval);
});
但是build / explosion-app / WEB-INF / lib中的jar非常不同(因此我遇到了版本问题!)。
该结果如何与上述命令的输出不同?
koen@desktop:~/workspace/criteriabuilder$ gradle sourcing-server:dependencies --configuration runtime
Incremental java compilation is an incubating feature.
:sourcing-server:dependencies
------------------------------------------------------------
Project :sourcing-server
------------------------------------------------------------
runtime - Runtime classpath for source set 'main'.
+--- project :sourcing-shared
| +--- org.hibernate:hibernate-validator:4.2.0.Final
| | +--- javax.validation:validation-api:1.0.0.GA
| | \--- org.slf4j:slf4j-api:1.6.1
| +--- com.google.gwt:gwt-servlet:2.7.0
| +--- com.googlecode.objectify:objectify:4.0rc1
| | +--- com.google.guava:guava:14.0.1
| | +--- com.google.appengine:appengine-api-1.0-sdk:1.7.6 -> 1.9.26
| | \--- com.google.appengine:appengine-api-labs:1.7.6 -> 1.9.26
| \--- com.fasterxml.jackson.core:jackson-annotations:2.4.4
+--- javax.servlet:servlet-api:2.5
+--- org.restlet.gae:org.restlet:2.3.1
| \--- com.google.appengine:appengine-api-1.0-sdk:1.9.15 -> 1.9.26
+--- org.restlet.gae:org.restlet.ext.jackson:2.3.1
| +--- com.fasterxml.jackson.core:jackson-core:2.4.4
| +--- com.fasterxml.jackson.core:jackson-annotations:2.4.4
| +--- com.fasterxml.jackson.core:jackson-databind:2.4.4
| | +--- com.fasterxml.jackson.core:jackson-annotations:2.4.0 -> 2.4.4
| | \--- com.fasterxml.jackson.core:jackson-core:2.4.4
| +--- com.fasterxml.jackson.dataformat:jackson-dataformat-csv:2.4.4
| | +--- com.fasterxml.jackson.core:jackson-core:2.4.4
| | \--- com.fasterxml.jackson.core:jackson-databind:2.4.4 (*)
| +--- com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.4.4
| | \--- com.fasterxml.jackson.core:jackson-core:2.4.4
| +--- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.4.4
| | +--- com.fasterxml.jackson.core:jackson-core:2.4.4
| | +--- com.fasterxml.jackson.core:jackson-annotations:2.4.0 -> 2.4.4
| | +--- com.fasterxml.jackson.core:jackson-databind:2.4.4 (*)
| | +--- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.4.4
| | | +--- com.fasterxml.jackson.core:jackson-core:2.4.4
| | | \--- com.fasterxml.jackson.core:jackson-databind:2.4.4 (*)
| | \--- org.codehaus.woodstox:stax2-api:3.1.4
| +--- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.4.4
| | +--- com.fasterxml.jackson.core:jackson-core:2.4.4
| | \--- org.yaml:snakeyaml:1.12 -> 1.13
| +--- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.4.4 (*)
| +--- com.fasterxml.jackson.module:jackson-module-jsonSchema:2.4.4
| | +--- com.fasterxml.jackson.core:jackson-annotations:2.4.0 -> 2.4.4
| | +--- com.fasterxml.jackson.core:jackson-core:2.4.4
| | \--- com.fasterxml.jackson.core:jackson-databind:2.4.4 (*)
| +--- org.codehaus.woodstox:woodstox-core-asl:4.3.0
| | +--- javax.xml.stream:stax-api:1.0-2
| | \--- org.codehaus.woodstox:stax2-api:3.1.4
| +--- org.codehaus.woodstox:stax2-api:3.1.4
| +--- org.yaml:snakeyaml:1.13
| \--- org.restlet.gae:org.restlet:2.3.1 (*)
+--- org.restlet.gae:org.restlet.ext.gae:2.3.1
| +--- com.google.appengine:appengine-api-1.0-sdk:1.9.15 -> 1.9.26
| \--- org.restlet.gae:org.restlet:2.3.1 (*)
+--- org.restlet.gae:org.restlet.ext.gwt:2.3.1
| +--- com.google.gwt:gwt-servlet:2.3.0 -> 2.7.0
| +--- org.restlet.gae:org.restlet:2.3.1 (*)
| \--- org.restlet.gae:org.restlet.ext.servlet:2.3.1
| \--- org.restlet.gae:org.restlet:2.3.1 (*)
+--- org.restlet.gae:org.restlet.ext.json:2.3.1
| +--- org.restlet.gae:org.restlet.lib.org.json:2.0
| \--- org.restlet.gae:org.restlet:2.3.1 (*)
+--- org.restlet.gae:org.restlet.ext.gson:2.3.1
| +--- com.google.code.gson:gson:2.3.1
| +--- joda-time:joda-time:2.3
| \--- org.restlet.gae:org.restlet:2.3.1 (*)
+--- org.apache.commons:commons-lang3:3.1
+--- com.google.api-client:google-api-client-appengine:1.20.0
| +--- com.google.oauth-client:google-oauth-client-appengine:1.20.0
| | +--- com.google.http-client:google-http-client-appengine:1.20.0
| | | \--- com.google.http-client:google-http-client:1.20.0
| | | +--- com.google.code.findbugs:jsr305:1.3.9
| | | \--- org.apache.httpcomponents:httpclient:4.0.1
| | | +--- org.apache.httpcomponents:httpcore:4.0.1
| | | +--- commons-logging:commons-logging:1.1.1
| | | \--- commons-codec:commons-codec:1.3
| | +--- com.google.oauth-client:google-oauth-client:1.20.0
| | | +--- com.google.http-client:google-http-client:1.20.0 (*)
| | | \--- com.google.code.findbugs:jsr305:1.3.9
| | +--- com.google.oauth-client:google-oauth-client-servlet:1.20.0
| | | +--- com.google.oauth-client:google-oauth-client:1.20.0 (*)
| | | +--- com.google.http-client:google-http-client-jdo:1.20.0
| | | | +--- com.google.http-client:google-http-client:1.20.0 (*)
| | | | \--- javax.jdo:jdo2-api:2.3-eb
| | | | \--- javax.transaction:transaction-api:1.1
| | | +--- javax.servlet:servlet-api:2.5
| | | \--- javax.jdo:jdo2-api:2.3-eb (*)
| | \--- javax.servlet:servlet-api:2.5
| +--- com.google.api-client:google-api-client:1.20.0
| | +--- com.google.oauth-client:google-oauth-client:1.20.0 (*)
| | +--- com.google.http-client:google-http-client-jackson2:1.20.0
| | | +--- com.google.http-client:google-http-client:1.20.0 (*)
| | | \--- com.fasterxml.jackson.core:jackson-core:2.1.3 -> 2.4.4
| | \--- com.google.guava:guava-jdk5:13.0
| +--- com.google.api-client:google-api-client-servlet:1.20.0
| | +--- com.google.oauth-client:google-oauth-client-servlet:1.20.0 (*)
| | +--- com.google.api-client:google-api-client:1.20.0 (*)
| | +--- javax.servlet:servlet-api:2.5
| | \--- javax.jdo:jdo2-api:2.3-eb (*)
| \--- com.google.http-client:google-http-client-appengine:1.20.0 (*)
+--- com.google.apis:google-api-services-oauth2:v2-rev96-1.20.0
| \--- com.google.api-client:google-api-client:1.20.0 (*)
\--- org.slf4j:slf4j-jdk14:1.6.1
\--- org.slf4j:slf4j-api:1.6.1
(*) - dependencies omitted (listed previously)
BUILD SUCCESSFUL
答案 0 :(得分:0)
嗯,项目的预Gradle设置src/main/webapp/WEB-INF/lib
中有jar文件。
这些旧库在构建期间会被复制。