Hello,

I'm stuck with gradles handling of jarfiles and/or my (missing) knowledge.
When I worked out the gradle buildscripts for my projects I realized, that 
gradle did not update the jarfiles in its internal cache and thought, that it 
could be, that gradle uses some checksums to get rid of changed files.
As my files did not change at that point, I did not spent further 
investigations.

Now that my build works, I can continue working on my stuff and I realized, 
that gradle did not update its internal cache for changed jarfiles either.

So I need to work with jarfiles, that contains timestamps in the name - and 
that leaded to the next problem (most probabely my misunderstanding):

The build.gradle contains this section:

version = new Version(project)
allprojects {
   apply url: file(rootProject.projectDir).absolutePath 
+ '/../common/base.gradle'
   version = this.version

   task info << {
      prjrelease = version.toString()
      println "\t${project.name} - Version: $prjrelease"
      println "\ttarget: ${tasks['jar'].archivePath}" 
   }
}

The referred "base.gradle" does nothing respect to version- or 
jarfile-settings. Executing gradle produces this output:

$ fgradle info
:info
        JRC-Framework - Version: 0.1.212-20100327141358
        target: ./xdist/libs/JRC-Framework-0.1.212-20100327141358.jar
:SRLibAppBase:info
        SRLibAppBase - Version: 0.1.212-20100327141358
        target: ./SRLibAppBase/xdist/libs/SRLibAppBase-0.1.212.jar
:SRLibDA:info
        SRLibDA - Version: 0.1.212-20100327141358
        target: ./SRLibDA/xdist/libs/SRLibDA-0.1.212.jar
:SRLibGui:info
        SRLibGui - Version: 0.1.212-20100327141358
        target: ./SRLibGui/xdist/libs/SRLibGui-0.1.212.jar
:SRServiceManager:info
        SRServiceManager - Version: 0.1.212-20100327141358
      
target: 
./SRServiceManager/xdist/libs/SRServiceManager-0.1.212-20100327141358.jar
:SRSrvSample:info
        SRSrvSample - Version: 0.1.212-20100327141358
        
target: ./SRSrvSample/xdist/libs/SRSrvSample-0.1.212-20100327141358.jar
:SRStarter:info
        SRStarter - Version: 0.1.212-20100327141358
        target: ./SRStarter/xdist/libs/SRStarter-0.1.212-20100327141358.jar

BUILD SUCCESSFUL

The subprojects SRLibAppBase, SRLibDA and SRLibGui are target of dependency 
settings of other subprojects, the other subprojects are dependency targets 
of subprojects of other root-project.

So what am I missing to get an artifact jarfile from i.e. SRLibDA containing 
the timestamp in name?
Any helping hand is appreciated!

kind regards

Geronimo

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

    http://xircles.codehaus.org/manage_email


Reply via email to