Hi,

Digging into the code, the NPE looks like it will happen when you have a project which both has no main artifact, and has artifacts with classifier.

I've added http://jira.codehaus.org/browse/GRADLE-805 for this problem.

On 29/01/10 6:33 PM, Xavier Denis wrote:
Hi Adam

in the main build file, I have this :

allprojects {
        apply id: 'java'
        apply id: 'maven'
        
        group = 'test.dosgi'
         version = '0.1-SNAPSHOT'
         releaseDate = new Date().getDateTimeString()

     repositories {
        mavenRepo(urls: new File(System.getProperty('user.home'),
".m2/repository").toURL())
        mavenRepo(urls: "http://server:8085/artifactory/repo";)
     }
... etc etc

subprojects {
     apply id: 'osgi'
     apply id: 'eclipse'

     sourceCompatibility = 1.6
     targetCompatibility = 1.6
     compileJava.options.encoding = "ISO-8859-1"
... etc etc

project(':') {
        jar.enabled = false
}

project(':subprojects') {
     getTasks().allTasks() {
        it.enabled = false
     }
}

....




the generated pom is this :

<?xml version="1.0" encoding="UTF-8"?>
<!--
    Apache Maven 2 POM generated by Gradle
    http://www.gradle.org
    Gradle version: 0.9-20100121063139+0000 Thursday, January 21, 2010
6:31:39 AM UTC
-->
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
   <modelVersion>4.0.0</modelVersion>
   <groupId>null</groupId>
   <artifactId>null</artifactId>
</project>



groupId and artifactId are null





Adam Murdoch-2 wrote:
Hi,

What is the main project's version property set to? What does it end up
as in the generated pom in the build/poms directory?

--
Adam Murdoch
Gradle Developer
http://www.gradle.org




--
Adam Murdoch
Gradle Developer
http://www.gradle.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to