sbt-lwjgl-plugin icon indicating copy to clipboard operation
sbt-lwjgl-plugin copied to clipboard

Support for SBT v0.13

Open hawkw opened this issue 10 years ago • 5 comments

It says in the README file that SBT 0.13 is not currently supported. Is there a specific reason why this is the case?

I'd like to be able to use this plugin with a project that I believe also currently requires some v0.13-specific features. I'd be happy to fork the repo and take a crack at making it v0.13-compatible, but I'm not sure what exactly the issue is.

hawkw avatar Jul 18 '15 00:07 hawkw

I'm assuming that note in the README exists solely because it remains unpublished. I just built it locally with no problem.

If the addSbtPlugin command is failing to resolve, then I would suggest using the plugin runtime dependency path in probject/project/Plugin.scala until it has been correctly published:

import sbt._
import Keys._

object Plugins extends Build {
  lazy val root = project.in(file(".")).dependsOn(lwjglPlugin)
  lazy val lwjglPlugin = uri("git://github.com/philcali/sbt-lwjgl-plugin.git")
}

I think only a few things have changed since 3.1.4, so I guess it's worthy of a minor version bump.

philcali avatar Jul 19 '15 17:07 philcali

Ah, excellent, thank you! I'll see if it works for me.

hawkw avatar Jul 19 '15 17:07 hawkw

Yup, it looks like addSbtPlugin doesn't resolve correctly, so I added it in project as you recommended. Everything appears to work correctly so far.

hawkw avatar Jul 19 '15 17:07 hawkw

Is there any update on this? I'm having difficulties setting it up like @philcali suggested since I'm not very familiar with SBT, but I don't want to be stuck with Java 7 (older versions of SBT don't support Java 8).

nstoddard avatar Feb 23 '16 16:02 nstoddard

Hi @nstoddard , the following configuration worked for me, with sbt 0.13.11 (I added the plugin repository as described in the sbt documentation):

project/plugins.sbt

lazy val root = (project in file(".")).dependsOn(lwjglPlugin)
lazy val lwjglPlugin = uri("git://github.com/philcali/sbt-lwjgl-plugin")

build.sbt

seq(lwjglSettings: _*)

Hope this helps.

gaborigloi avatar Apr 06 '16 18:04 gaborigloi