Mike Croteau
Mike Croteau

Reputation: 1132

Issues with Apache Shiro plugin, Grails 2.4.4 upgrade to 3.2.8

Upgrading Grails from version 2.4.4 to 3.2.8. Plugin declared not being resolved.

dependencies {
    compile "org.grails.plugins:shiro:1.2.1"
    ...
}

Grails attempted to find the dependency in the maven repo then at repo.grails.org.

Is there a different location to look for the grails shiro plugin?

Error initializing classpath: Could not find org.grails.plugins.shiro:1.2.1
Searched the following locations
    file:/C:/Users/Owner/.m2/repository...shiro-1.2.1.pom
    file:/C:/Users/Owner/.m2/repository...shiro-1.2.1.jar
    https://repo.grails.org/grails/core/org/grails/plugins/shiro/1.2.1/shiro-1.2.1.pom
    ...shiro-1.2.1.jar

I am also attempting to build the plugin myself but running into issues with gradle and a dependency. Could not create task of type 'DependencyManagementReportTask'. New to Gradle

I attempted to include spring-security-shiro but it creates ready made login/auth functionality and haven't figured out a way around it. See below

enter image description here

Upvotes: 0

Views: 354

Answers (1)

Burt Beckwith
Burt Beckwith

Reputation: 75681

You're trying to install the Grails 2 plugin but that doesn't work in Grails 3.x - you have to use Grails 3 plugins (see http://plugins.grails.org/).

But there is no Shiro plugin for Grails 3. Some work was done to upgrade it, but that wasn't finished and there's no plans that I know of to make a Grails3-compatible version.

Upvotes: 1

Related Questions