java - Gradle dependencies local jar file -


i have problem include local jar file.

i have 2 projects:

projecta  projectb    --libs     ----jgrapht-jdk1.6.jar 

my build file include (this part concerns projectb):

project(':projectb') {  apply plugin: 'java' repositories {     mavencentral() } configurations {     compileonly } sourcecompatibility = javaversion.version_1_6 targetcompatibility = javaversion.version_1_6 dependencies {     compileonly files('libs/jgrapht-jdk1.6.jar')     compile 'org.simpleframework:simple-xml:2.7@jar'        }} 

i run command gradlew -q dependencies , see result


project :projectb

archives - configuration archive artifacts. no dependencies  compile - compile classpath source set 'main'. \--- org.simpleframework:simple-xml:2.7  compileonly no dependencies  default - configuration default artifacts. \--- org.simpleframework:simple-xml:2.7  runtime - runtime classpath source set 'main'. \--- org.simpleframework:simple-xml:2.7  testcompile - compile classpath source set 'test'. \--- org.simpleframework:simple-xml:2.7  testruntime - runtime classpath source set 'test'. \--- org.simpleframework:simple-xml:2.7  line compile 'org.simpleframework:simple-xml:2.7@jar' - working fine,  line compileonly files('libs/jgrapht-jdk1.6.jar') don't work. 

i use gradle 1.8, windows 7 x64 tell me please made mistake.

it's known limitation file dependencies aren't shown gradle dependencies. nevertheless work (if paths right).


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -