如何从源代码构建插件并在我的Play应用中使用它 [英] How can I build a plugin from source and use it in my play app

查看:92
本文介绍了如何从源代码构建插件并在我的Play应用中使用它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我基本上对sbt一无所知,对maven或ivy也知之甚少. github上有一个play插件,我想在我的项目中进行修改和使用.但是,我正在努力弄清楚如何从github上将其删除,并开始在我的play项目中使用它.我已经尝试过各种涉及使用sbt命令的事情.但是sbt永远不会像教程中那样表现.有人可以给我一些简单的步骤来说明如何从github上的Play插件->利用Play应用中的插件吗?

I have basically no knowledge of sbt and know very little about maven or ivy. There is a play plugin on github, that I would like to modify and use in my project. However I am struggling to figure out how I can pull it down from github and begin using it in my play project. I have tried various things involving using sbt commands. But sbt never behaves the way it is supposed to in the tutorials. Could anyone give me some simple steps to follow on how to go from Play Plugin on github -> utilizing plugin in play app?

推荐答案

sbt源依赖关系是众所周知的善变的.话虽这么说,对于项目依赖,他们不太难. 关于插件的sbt Wiki页面专门有一个关于源依赖项的1d部分,因此我建议您阅读.

sbt source dependencies are, in my opinion, notoriously fickle. That being said, for a project dependency they're not too hard. The sbt wiki page on plugins specifically has a section, 1d, on source dependencies, so I'd recommend reading that.

这篇关于如何从源代码构建插件并在我的Play应用中使用它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆