mhm... if I run 'gradle jar' it does put the compiled classes in the correct directory structure ?!
-----Original Message----- From: mremersoncod <[email protected]> To: user <[email protected]> Sent: Tue, Aug 3, 2010 10:08 am Subject: [gradle-user] Compiling source code goes in wrong build dir Hi, I have a simple groovy project with sources in src/main/groovy. Lets say they are all in a package called 'foo'. If I run compileGroovy without any additional configuration the classes end up in build/classes/main/foo/ why is the main in there ? Also - how can I run a class from a build.gradle ? this is my build.gradle: apply plugin:'groovy' buildscript{ apply { apply from: 'http://myserver:port/artifactory/repo/de/configuration/1.0/configuration-1.0.gradle'; } } dependencies { groovy group:'org.codehaus.groovy', name:'groovy-all', version:'1.7.4' } task 'run-project' << { new foo.AGroovy() } I assumed that per default if the compiled class is in build/classes it will run. But also if the compiled class is under build/classes/foo/AGroovy.class running 'gradle run-proejct' fails with 'unable to resolve....' What do I have to configure to run from a build script ? Thanks
