Replies: 3 comments 1 reply
-
One of the ways it to pick up https://github.com/JanssenProject/jans/tree/main/jans-auth-server/server You can see maven pom.xml with all dependencies in it. |
Beta Was this translation helpful? Give feedback.
-
If I understand you correctly you suggest to download the jannsen github project and create my scripts inside there to get the context. Is that correct? Is there no other way to do it? Your suggestion would mean that development is done somewhere, and then files has to be moved around for version control and deployment (we're using terraform) - sounds like a lot of friction and not very intuitive. Additionally we want to have automatic execution of unit tests of our custom scripts in a CI/CD pipeline and I don't see how that can be solved in any easy way with this approach. |
Beta Was this translation helpful? Give feedback.
-
There is a lot of data injected into the Context which would be hard to replicate in your IDE. If you can come up with a better solution, we're all ears. Maybe @ossdhaval can point you to some better instructions. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Can someone provide guidance on how to set up a development environment when writing custom scripts in java?
When writing custom scripts in java you are using a lot of internal libraries/classes/interfaces etc of janssen, e.g.,
SimpleCustomProperty
,CustomScript
,DiscoveryType
etc in the example below. How can I add janssen jars to my class path so it becomes easier and error-free to develop custom scripts locally on my computer?I've tried to search the web for such jars but can't find any. "Normally" you would for example define dependencies in maven or something similar so that the IDE understands the context of your code.
Beta Was this translation helpful? Give feedback.
All reactions