Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add classes corresponding to the xBaseWar war to the provided classpath in intellij #37

Open
vierbergenlars opened this issue Apr 11, 2019 · 0 comments
Labels
enhancement New feature or request has-jira-ticket Corresponding ticket has been opened in the Xenit Jira for planning help wanted Extra attention is needed

Comments

@vierbergenlars
Copy link
Member

For debugging Alfresco related things, it is nice to have all alfresco classes available in IntelliJ IDEA, so they can be found and looked at.

Adding an extra configuration that contains the classes variant seems to work. It pulls in transitive dependencies of the war as well. We can then add that configuration to the 'provided' scope with the idea plugin.

Example that works directly in the build.gradle:

configurations {
   alfrescoBaseWarClasses
}

dependencies {
    baseAlfrescoWar "org.alfresco:alfresco-enterprise:5.1.4.1@war" // Note: this one already existed, the *classes variant is based on this one. Of course, this should be done automatically.
    baseAlfrescoWarClasses "org.alfresco:alfresco-enterprise:5.1.4.1:classes"
}

idea {
    module {
        scopes.PROVIDED.plus += [ configurations.baseAlfrescoWarClasses ]
    }
}
@vierbergenlars vierbergenlars added the enhancement New feature or request label Apr 11, 2019
@vierbergenlars vierbergenlars added the has-jira-ticket Corresponding ticket has been opened in the Xenit Jira for planning label Aug 8, 2019
@vierbergenlars vierbergenlars added the help wanted Extra attention is needed label Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request has-jira-ticket Corresponding ticket has been opened in the Xenit Jira for planning help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant