<div dir="ltr">Looks correct to me, even if there are many stuff in there :) Are you building a vertx mod ? <div><br></div><div>Could you try a simple gradle / java project and just add the Unified Push Java Client dependencies ? Just to see if it compiles. </div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 25, 2014 at 5:37 PM, oxsav <span dir="ltr"><<a href="mailto:vmfamaral@gmail.com" target="_blank">vmfamaral@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My build.gradle has this content:<br>
<br>
/apply plugin: 'java'<br>
apply plugin: 'eclipse'<br>
apply plugin: 'idea'<br>
<br>
defaultTasks = ['assemble']<br>
<br>
sourceCompatibility = '1.7'<br>
targetCompatibility = '1.7'<br>
<br>
configurations {<br>
provided<br>
}<br>
<br>
repositories {<br>
//maven { url '<a href="https://oss.sonatype.org/content/repositories/snapshots" target="_blank">https://oss.sonatype.org/content/repositories/snapshots</a>' }<br>
mavenCentral()<br>
}<br>
<br>
dependencies {<br>
provided "org.vert-x:vertx-core:$vertxVersion"<br>
provided "org.vert-x:vertx-platform:$vertxVersion"<br>
<br>
testCompile "org.vert-x:vertx-lang-java:$vertxVersion"<br>
testCompile( "org.vert-x:vertx-testframework:$vertxVersion" ) {<br>
transitive = false<br>
}<br>
testCompile "junit:junit:$junitVersion"<br>
<br>
// Libraries needed to run the scala tools<br>
//scalaTools "org.scala-lang:scala-compiler:$scalaVersion"<br>
//scalaTools "org.scala-lang:scala-library:$scalaVersion"<br>
<br>
// Libraries needed for scala api<br>
//compile "org.scala-lang:scala-library:$scalaVersion"<br>
<div class=""><br>
compile "org.jboss.aerogear:unifiedpush-java-client:0.5.0"<br>
compile "org.jboss.resteasy:resteasy-jackson-provider:2.3.2.Final"<br>
<br>
}<br>
<br>
</div>sourceSets {<br>
main {<br>
compileClasspath = compileClasspath + configurations.provided<br>
}<br>
}<br>
<br>
task copyMod( type:Copy, dependsOn: 'classes' ) {<br>
into "build/copyMod/$modulename-v$version"<br>
from 'build/classes/main'<br>
from 'src/main/conf'<br>
into( 'lib' ) {<br>
from configurations.compile<br>
}<br>
}<br>
<br>
task prepareVertxTest(type: Sync, dependsOn: ['copyMod']) {<br>
from 'build/copyMod'<br>
into 'build/tmp/mod-test'<br>
}<br>
<br>
test {<br>
// Can't have the app on the vert.x classpath<br>
classpath = files( classpath.findAll {<br>
!( it.toString() ==~ /.+build\/(classes|resources)\/main$/ )<br>
} )<br>
<br>
// Some vert.x properties<br>
systemProperty 'vertx.test.timeout', 15<br>
systemProperty 'vertx.mods', "$projectDir/build/tmp/mod-test"<br>
systemProperty 'vertx.version', "$project.version"<br>
systemProperty '<a href="http://module.name" target="_blank">module.name</a>', "$modulename-v$version"<br>
<br>
// Dump output<br>
testLogging.showStandardStreams = true<br>
<br>
// No idea why we need to depend on testClasses...<br>
dependsOn << [ 'testClasses', 'copyMod', 'prepareVertxTest' ]<br>
}<br>
<br>
task collectDeps(type: Copy) {<br>
group = 'vert.x'<br>
description = 'conveniently collect dependencies for other IDEs'<br>
destinationDir = file("build/deps")<br>
into("compile") {<br>
from configurations.compile<br>
}<br>
into("test") {<br>
from configurations.testCompile<br>
}<br>
}<br>
<br>
// Package into build/libs/mod.zip<br>
task dist( type: Zip, dependsOn: 'copyMod' ) {<br>
group = 'vert.x'<br>
description = "Assembles a vert.x module in 'mod.zip' format"<br>
destinationDir = project.file('build/libs')<br>
archiveName = 'mod.zip'<br>
from project.file("build/copyMod")<br>
}<br>
<br>
task release( type: Copy, dependsOn: ['dist', 'jar'] ) {<br>
group = 'vert.x'<br>
description = "Builds the module for use in the module repository into<br>
mods/$modulename-v$version"<br>
destinationDir = project.file('build/release')<br>
into ("$modulename-v$version") {<br>
from 'build/libs/mod.zip'<br>
from 'README.md'<br>
}<br>
}<br>
<br>
task install(type: Copy, dependsOn: 'copyMod') {<br>
try {<br>
destinationDir = new File(System.getenv()['VERTX_MODS'])<br>
} catch(NullPointerException e) {<br>
}<br>
from 'build/copyMod'<br>
}<br>
/<br>
<br>
Anything that I'm missing?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/Unified-Push-Java-client-tp7087p7095.html" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/Unified-Push-Java-client-tp7087p7095.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the aerogear-dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</div></div></blockquote></div><br></div>