Browse Source

Moved validation dependency and hack to client (#9551)

tags/7.0.0.beta1
Artur Signell 11 years ago
parent
commit
d2e75eb1d5
4 changed files with 25 additions and 23 deletions
  1. 0
    15
      client-compiler/build.xml
  2. 0
    3
      client-compiler/ivy.xml
  3. 15
    0
      client/build.xml
  4. 10
    5
      client/ivy.xml

+ 0
- 15
client-compiler/build.xml View File

@@ -38,21 +38,6 @@ gwt.svnrev=${git.revision}</echo>
<reference refid="compiler.includes" torefid="extra.jar.includes" />
</antcall>

<!-- Hack to add validation dependency with source classifier -->
<property name="pom.xml" location="${result.dir}/lib/${module.name}-${vaadin.version}.pom" />
<copy file="${pom.xml}" tofile="${temp.pom}">
<filterchain>
<replacestring from=" &lt;/dependencies&gt;" to=" &lt;dependency&gt;
&lt;groupId&gt;javax.validation&lt;/groupId&gt;
&lt;artifactId&gt;validation-api&lt;/artifactId&gt;
&lt;version&gt;1.0.0.GA&lt;/version&gt;
&lt;scope&gt;compile&lt;/scope&gt;
&lt;classifier&gt;sources&lt;/classifier&gt;
&lt;/dependency&gt;
&lt;/dependencies&gt;" />
</filterchain>
</copy>
<move file="${temp.pom}" tofile="${pom.xml}" />
</target>

<target name="publish-local" depends="jar">

+ 0
- 3
client-compiler/ivy.xml View File

@@ -29,9 +29,6 @@
rev="3.1" conf="build,ide -> default" />
<dependency org="ant" name="ant" rev="1.6.5"
conf="build,ide -> default" />
<dependency org="javax.validation" name="validation-api"
rev="1.0.0.GA" conf="build->default,sources" />

</dependencies>

</ivy-module>

+ 15
- 0
client/build.xml View File

@@ -25,6 +25,21 @@
<antcall target="common.jar">
<reference refid="client.gwt.includes" torefid="extra.jar.includes" />
</antcall>
<!-- Hack to add validation dependency with source classifier -->
<property name="pom.xml" location="${result.dir}/lib/${module.name}-${vaadin.version}.pom" />
<copy file="${pom.xml}" tofile="${temp.pom}">
<filterchain>
<replacestring from=" &lt;/dependencies&gt;" to=" &lt;dependency&gt;
&lt;groupId&gt;javax.validation&lt;/groupId&gt;
&lt;artifactId&gt;validation-api&lt;/artifactId&gt;
&lt;version&gt;1.0.0.GA&lt;/version&gt;
&lt;scope&gt;compile&lt;/scope&gt;
&lt;classifier&gt;sources&lt;/classifier&gt;
&lt;/dependency&gt;
cies&gt;" />
</filterchain>
</copy>
<move file="${temp.pom}" tofile="${pom.xml}" />
</target>

<target name="publish-local" depends="jar">

+ 10
- 5
client/ivy.xml View File

@@ -10,14 +10,14 @@
<configurations>
<conf name="build" />
<conf name="build-provided" />
<conf name="ide" visibility="private"/>
<conf name="ide" visibility="private" />
<conf name="tests" />
</configurations>
<publications>
<artifact type="jar" ext="jar"/>
<artifact type="source" ext="jar" m:classifier="sources" />
<artifact type="javadoc" ext="jar" m:classifier="javadoc" />
<artifact type="pom" ext="pom"/>
<artifact type="jar" ext="jar" />
<artifact type="source" ext="jar" m:classifier="sources" />
<artifact type="javadoc" ext="jar" m:classifier="javadoc" />
<artifact type="pom" ext="pom" />
</publications>
<dependencies defaultconf="build" defaultconfmapping="build,ide->default">
<!-- API DEPENDENCIES -->
@@ -34,6 +34,11 @@

<dependency org="junit" name="junit" rev="4.5"
conf="tests->default" />

<dependency org="javax.validation" name="validation-api"
rev="1.0.0.GA" conf="build->default,sources" />


</dependencies>

</ivy-module>

Loading…
Cancel
Save