Hi Allan,
On Jan 9, 2009, at 3:53 AM, Allan Lewis wrote:
Hi,
After moving from 0.5 to 0.5.2, my multi-project build is failing.
The
error is below - it seems as if Gradle can't resolve these 2
projects as
dependencies, even though I have the following declared in my
build.gradle
file.
compile project(':koios-mda'),
project(':koios-standalone'),
'org.springframework:spring:2....@jar',
'org.springframework:spring-ws:1....@jar',
'hibernate:ejb3-persistence:1.0.1...@jar'
Any ideas? Again, this worked fine with 0.5
In the release notes for 0.5.1 we have described one incompatibility
we have introduced compared to 0.5. We had to do this, to fix a bug.
This won't affect many people, but you might be amongst them. This
change was about how the jar name is generated. Could you paste your
libs task configuration. Then I might be able to tell more.
BTW: Working with configurations that have project dependencies will
become very nice in 0.6. I guess right now you have to use the
linkConfWithTask mechanism to make the resolve below work?
- Hans
The error:
C:\Temp\koios-framework>gradle compile -Dmodel=magicDraw21 -s
:koios-generator:init
:koios-mda:init
:koios-model:init
:koios-standalone:init
:koios-unit-test:init
:init
:koios-generator:resources
:koios-mda:resources
:koios-model:resources
:koios-standalone:resources
:koios-unit-test:resources
:: problems summary ::
:::: WARNINGS
module not found: org.koiosframework#koios-mda;0.3
==== clientModule: tried
==== build-resolver: tried
C:\Temp\koios-framework\.gradle\build-resolver/org.koiosframework/
koios-mda/0.3/ivys/ivy.xml
-- artifact org.koiosframework#koios-mda;0.3!koios-mda.jar:
C:\Temp\koios-framework\.gradle\build-resolver/org.koiosframework/
koios-mda/0.3/jars/koios-mda.jar
==== lib: tried
-- artifact org.koiosframework#koios-mda;0.3!koios-mda.jar:
C:\Temp\koios-framework\lib/koios-mda-0.3.jar
module not found: org.koiosframework#koios-standalone;
0.3
==== clientModule: tried
==== build-resolver: tried
C:\Temp\koios-framework\.gradle\build-resolver/org.koiosframework/
koios-standalone/0.3/ivys/ivy.xml
-- artifact
org.koiosframework#koios-standalone;0.3!koios-standalone.jar:
C:\Temp\koios-framework\.gradle\build-resolver/org.koiosframework/
koios-standalone/0.3/jars/koios-st
andalone.jar
==== lib: tried
-- artifact
org.koiosframework#koios-standalone;0.3!koios-standalone.jar:
C:\Temp\koios-framework\lib/koios-standalone-0.3.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.koiosframework#koios-mda;0.3: not found
:: org.koiosframework#koios-standalone;0.3: not found
::::::::::::::::::::::::::::::::::::::::::::::
Build failed with an exception.
Run with -f option to get the full (very verbose) stacktrace.
Build file 'C:\Temp\koios-framework\koios-unit-test\build.gradle'
line: 63
Execution failed for task :koios-unit-test:resources.
Cause: Not all dependencies could be resolved!
Exception is:
org.gradle.api.GradleScriptException: Build file
'C:\Temp\koios-framework\koios-unit-test\build.gradle' line:
63
Execution failed for task :koios-unit-test:resources.
at
org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:185)
at
org
.gradle
.execution.DefaultTaskExecuter.executeTask(DefaultTaskExecuter.java:
161)
at
org
.gradle
.execution.DefaultTaskExecuter.execute(DefaultTaskExecuter.java:148)
at
org
.gradle
.execution.DefaultTaskExecuter.execute(DefaultTaskExecuter.java:77)
at
org
.gradle
.execution.DefaultTaskExecuter.execute(DefaultTaskExecuter.java:88)
at
org
.gradle
.execution
.TaskNameResolvingBuildExecuter
.execute(TaskNameResolvingBuildExecuter.java:104
)
at org.gradle.Gradle.runInternal(Gradle.java:123)
at org.gradle.Gradle.run(Gradle.java:93)
at org.gradle.Main.execute(Main.java:232)
at org.gradle.Main.main(Main.java:77)
at org.gradle.BootstrapMain.main(BootstrapMain.java:53)
Caused by: org.gradle.api.GradleException: Not all dependencies
could be
resolved!
at
org
.gradle
.api
.internal
.dependencies
.DefaultDependencyResolver.resolve(DefaultDependencyResolver.ja
va:65)
at
org
.gradle
.api
.internal
.dependencies
.BaseDependencyManager.resolve(BaseDependencyManager.java:119)
at build_gradle$_run_closure2.doCall(build_gradle:63)
at $Proxy4.execute(Unknown Source)
at
org.gradle.api.internal.AbstractTask.doExecute(AbstractTask.java:221)
at
org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:175)
... 10 common frames omitted
BUILD FAILED
--
View this message in context:
http://www.nabble.com/Multi-project-build-issue-with-0.5.2-tp21365361p21365361.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
Hans Dockter
Gradle Project lead
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email