Skip to content

Instantly share code, notes, and snippets.

@rkaneko
Last active December 20, 2015 03:39
Show Gist options
  • Save rkaneko/6065235 to your computer and use it in GitHub Desktop.
Save rkaneko/6065235 to your computer and use it in GitHub Desktop.
sbtでswing使ってJavaApplicationつくるときのメモ

Swing Java App with sbt

requirements

procedure

  • nbsbtをgit cloneしてlocal-publishする。

  • projectRoot/plugins.sbtに

    addSbtPlugin("org.netbeans.nbsbt" % "nbsbt-plugin" % "1.0.2")

  • projectRoot/build.sbtに

name := "ProjectNameFoo"
   
organization := "com.example"

version := "0.1.0-SNAPSHOT"

scalaVersion := "2.10.0"

libraryDependencies ++= Seq(
    "junit" % "junit" % "4.11" % "test",
    "org.swinglabs" % "swing-layout" % "1.0.3"
)
  • sbt consoleにて
compile

netbeans
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment