That worked.

I could have sworn I tried "all the combos" .. i've used ivy plenty, had the picture in my head.

Always the case.. "stand up, walk away, come back later"

Thanks for you help

Best,
Roger




Spencer Allain
March 18, 2011 4:28 PM

Have you tried:  ':ojdbc14'?

The flat resolver uses this Ivy pattern:
"[artifact](-[revision])(-[classifier]).[ext]"

The first form should fail because it will be trying to resolve ojdbc-14.jar
The second form I suspect is attempting to resolve ojdbc14-.jar (treating the version as an empty space).

It seems that the explicit compile fileTree(dir: "$projectDir/lib", include: '*.jar') should find it for you regardless of the other values not resolving (or is that the form that you are using in lieu of the flat resolver working?)

I'm assuming your project directory is also truly resolving to /full/path/to/myDir.

-Spencer

--- On Fri, 3/18/11, Roger Studner <[email protected]> wrote:



Roger Studner
March 18, 2011 4:07 PM

I've done lots of flatDir repo stuff.. and for some reason i'm stumped here

I have:

myDir
   /lib
     /ojdbc14.jar
     /classes12.jar
  /src

etc etc

mybuild.gradle:
apply plugin: "groovy"

repositories {
    mavenCentral()
    mavenRepo urls: "https://nexus.codehaus.org/content/repositories/snapshots"
    flatDir name: 'localProjectRepo', dirs: "$projectDir/lib"
}

configurations {
    compile.transitive = true
    testCompile.transitive = true
}

dependencies {
    groovy "org.codehaus.groovy:groovy-all:1.7.8"

    compile fileTree(dir: "$projectDir/lib", include: '*.jar')

}

I've tried this approach.. and i'm tried

compile ":ojdbc:14"
or
compile ":ojdbc14:"

none of the 3 approaches seem to ever resolve/find the oracle jar.. and thus my:
gradle compileGroovy always fails because it can't find oracle.sql.CLOB etc etc

thoughts?

Roger


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

   http://xircles.codehaus.org/manage_email


Reply via email to