开发者

Making packages in IntelliJ-IDEA

开发者 https://www.devze.com 2023-04-01 05:29 出处:网络
I u开发者_开发问答sually use .Net but now I\'m playing Scala in IntelliJ 10.5.1. It\'s interesting how can I make a package which I can import to other projects?If you want to create a jar file you do

I u开发者_开发问答sually use .Net but now I'm playing Scala in IntelliJ 10.5.1. It's interesting how can I make a package which I can import to other projects?


If you want to create a jar file you do that through File->Project Structure->Artifacts hit the + sign choose Jar -> from module with dependencies Then you can choose whether you want all the dependencies inside your jar or not Then you can create the jar via the Build->Build Artifacts menu

When you have a new project you can reference that jar via the dependencies menu mentioned by Christian

0

精彩评论

暂无评论...
验证码 换一张
取 消