Skip to content

Commit

Permalink
#731 | Change scope to provided for Backoffice Classes library
Browse files Browse the repository at this point in the history
  • Loading branch information
mlytvyn authored Sep 18, 2023
1 parent 7b1ef73 commit 8f84c97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- Register `bootstrap/gensrc` and other `src` directories as source directories with respect of readonly state [#718](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/718)
- Register jar sources in the `doc/sources` for module libraries [#724](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/724)
- Improved IDE compilation and navigation in the Platform code [#726](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/726)
- Change scope to `provided` for `Backoffice Classes` library [#731](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/731)

### Fixes
- `SAP Commerce` tool window sometimes appears without any content [#725](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/725)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import com.intellij.idea.plugin.hybris.common.LibraryDescriptorType
import com.intellij.idea.plugin.hybris.project.descriptors.impl.*
import com.intellij.idea.plugin.hybris.settings.HybrisApplicationSettingsComponent
import com.intellij.openapi.externalSystem.service.project.IdeModifiableModelsProvider
import com.intellij.openapi.roots.DependencyScope
import com.intellij.openapi.roots.OrderRootType
import com.intellij.openapi.roots.ui.configuration.projectRoot.LibrariesModifiableModel
import com.intellij.openapi.vfs.VfsUtil
Expand Down Expand Up @@ -86,7 +87,8 @@ object YModuleLibDescriptorUtil {
libraryFile = File(yModule.moduleRootDirectory, HybrisConstants.JAVA_COMPILER_OUTPUT_PATH),
sourceFiles = if (attachSources) sourceFiles
else emptyList(),
directoryWithClasses = true
directoryWithClasses = true,
scope = DependencyScope.PROVIDED
)
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ object PluginCommon {

const val JREBEL_PLUGIN_ID = "JRebelPlugin"
const val ANT_SUPPORT_PLUGIN_ID = "AntSupport"
const val MAVEN_PLUGIN_ID = "maven"
const val JAVA_PLUGIN_ID = "com.intellij.modules.java"
const val JAVAEE_PLUGIN_ID = "com.intellij.javaee"
const val JAVAEE_WEB_PLUGIN_ID = "com.intellij.javaee.web"
Expand Down

0 comments on commit 8f84c97

Please sign in to comment.