If you don't know its exact name, enter the keywords and click. In the next dialog, specify the library artifact (for example, org.jetbrains:annotations:16.0.2). Download a library from Mavenįrom the main menu, select File | Project Structure Control+Alt+Shift+S and click Libraries. For more information on module files, refer to Modules. This file is used for keeping module configuration. References to module libraries are stored in the module. In the dialog that opens, select a project or a global library that you want to add to the module.Īlternatively, click New Library and select the required option: you can add a Java and Kotlin libraries from files on your computer, or download a library from Maven. Select the module for which you want to add a library and click Dependencies. Global and project libraries are not available until you add them to module dependencies.įrom the main menu, select File | Project Structure | Project Settings | Modules. References to project libraries are stored together with the project in the. Select the module or modules to which you want to add the new library. Under Project Settings, select Libraries. References to global libraries are stored in the IDE configuration directory in options | applicationLibraries.xml. In this dialog, you can also: add classes to an existing library, specify an external documentation URL, exclude items from a library, or remove a library. Select From Maven to download a library from Maven. Select Java or Kotlin/JS to add a library from the files located on your computer. Under Platform Settings, select Global Libraries. Define a global libraryįrom the main menu, select File | Project Structure Control+Alt+Shift+S. Select these files in the Project tool window, and then select Add as Library from the context menu. You can also create a new library from the JAR files located within a project content root. IntelliJ IDEA will also use the code from the libraries to build and deploy your application. Define a libraryĪfter you define a library and add it to module dependencies, the IDE will be supplying its contents to you as you write your code. If you're using a build tool, such as Maven or Gradle, make all changes using the build file. This information is valid for projects that are built with the native IntelliJ IDEA builder. In IntelliJ IDEA, libraries can be defined at three levels: global (available for many projects), project (available for all modules within a project), and module (available for one module).Ī Java library can include class files, archives and directories with class files as well as directories with native libraries. A library is a collection of compiled code that you can add to your project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |