Open gciatto opened 3 years ago
i would be interested in this feature as well
The integration of Jason and Cartago is not well supported indeed.
I can try to figure out the problem, but... I'd suggest you to use JaCaMo instead, it aims to properly integrate jason and cartago. In the case of cartago 2.5, the jacamo 0.10 should be used.
I would be interested in this feature as well
@jomifred thanks for the hint. I tried with the following dependencies:
dependencies {
implementation("org.jacamo", "jacamo", "1.0-SNAPSHOT")
}
The second message error is apparently still there:
I don't know what to do.
In the case of Jason+Cartago (no JaCaMo), the cartago package was renamed from c4 to jaca, I guess that is the main issue.
I committed and example (using gradle) at https://github.com/jason-lang/jason/tree/hotfix/demos/basic-cartago
Notice that it uses RunCentralisedMAS (I still do not fix the it for RunJasonProject).
Thank you so much @jomifred, I manage to run the gradle project with jaca!
Apparently, @robertacalegari retried with:
dependencies {
implementation("org.jason-lang", "jason", "2.5-SNAPSHOT")
implementation("org.jacamo","cartago", "2.5")
implementation("org.jacamo", "jaca", "2.5")
}
and it works now. Did you, @jomifred, changed something in any of the artifacts? Otherwise, I may have mistaken some test of mine. In that case, I apologise.
I didn't change cartago. I guess the issue is to use c4jason instead of jaca.... (I am not a great expert about cartago, sorry)
I need to use Cartago + Jason. Similarly to what discussed here, I need to create a self-configuring Gradle project.
I set my dependencies as follows:
and my repositories as follows:
My
mas2j
file is as simple as the following one:so I barely exploit a
CartagoEnvironment
, and myhello_agent.asl
is as follows:However, if launch the MAS, get the following error: After a bit of debugging, I figured out that
c4jason
is looking for thecartago.security.AgentCredential
class which has been moved tocargago.AgentCredential
somewhere beforecartago:2.0.2
(which is the earilest one available on http://jacamo.sourceforge.net/maven2). So there is no version ofcartago
on that repository which seems to be compatible withc4jason:2.0.2
, and only that version ofc4jason
is available on that repository. (Here, by "compatible with" I mean "having a class namedcartago.security.AgentCredential
").So, I tried with the following dependencies:
but this time I get the following error: and I was not able to figure out why.
So my question here is: which set of artifacts should I use to ley my project exploit Cartago from Jason? And which versions of those?