jeffwils / saml-plugin-test

0 stars 0 forks source link

Wrappers missing dependent JARs #1

Open irstevenson opened 6 years ago

irstevenson commented 6 years ago

I'm attempting to use this repo to get a baseline where the plugin works so that I can then go on to determine if it works against latest grails 3.3.x - as currently I'm having wierd problems there. However, I can't just spin it up with the wrappers:

$ ./grailsw run-app
Error: Unable to access jarfile /tmp/saml-plugin-test/grails-wrapper.jar

$ ./gradlew bootRun
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

So, I think from the comments the version is meant to be 3.1.9, however using straight grails (i.e. no wrapper) also fails due to missing gradle.properties file.

| Resolving Dependencies. Please wait...

FAILURE: Build failed with an exception.

* Where:
Build file '/tmp/saml-plugin-test/build.gradle' line: 4

* What went wrong:
A problem occurred evaluating root project 'saml-plugin-test'.
> Could not get unknown property 'grailsVersion' for root project 'saml-plugin-test' of type org.gradle.api.Project.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

CONFIGURE FAILED in 5s
| Error Error initializing classpath: Could not get unknown property 'grailsVersion' for root project 'saml-plugin-test' of type org.gradle.api.Project. (Use --stacktrace to see the full trace)

However, copying a gradle.properties file across from a fresh 3.1.9 app seems to make it (grails run-app) work. I just hope I'm on the right version.

farahashraf commented 6 years ago

I have exactly the same problem, please advise.

farahashraf commented 6 years ago

hey @irstevenson did you manage to find the solution? Whenever I try to copy gradle.properties from a fresh 3.1.9 grails app it gives me the same error also! @jeffwils please advice!

irstevenson commented 6 years ago

Heya @farahashraf

I can only go on my note above (as it has long passed from memory), but it would appear I did get it working whereas for some reason it's still failing for you.

I've since move on to forking my own test app: https://github.com/irstevenson/grails-spring-security-saml-test

Unfortunately, it's targeted at the work we're doing on the develop branch for the next version, so you'd have to tweak the config file etc to get it working with the current released version of the plugin.

One way to do this could be to copy the config from this project...

If you're still getting stuck, feel free to come over and have a chat in Matrix via the instructions here: https://github.com/jeffwils/grails-spring-security-saml/blob/master/CONTRIBUTING.md#chatting

Cheers.