[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Java build tools. > do you use them? why? > worth using

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 5
Thread images: 1

File: o2yAdc_M.jpg (114KB, 1252x1252px) Image search: [Google]
o2yAdc_M.jpg
114KB, 1252x1252px
Java build tools.
> do you use them? why?
> worth using just to handle a few dependencies on a personal project?
>>
>>59115628
I havent touched any building tool like ant or similiar since I finished uni. All the projects are either too small to bother or so big with 999+ dependencies only IDE handles the building alone with extra plugins like maven.

All I had to do was to master the ide. I recommend you the same, master some ide.
>>
>>59116303
surprise, surprise
if you're using an IDE, you're using a build tool

every Java IDE uses either ant, maven or gradle
>>
>>59115628
I use SBT (http://www.scala-sbt.org/, from the Scala ecosystem), even for Java.

It can pull typical maven dependencies and all that, and it supports Java just fine.

[Never mind it's about the most powerful tool in the whole ecosystem.]
>>
>>59116377
By the way, this is a typical build.sbt configuration file (taken from https://www.lightbend.com/activator/template/hello-akka-java8, with extra comments by me):
// stuff you yourself use to name and version your project
name := "hello-akka-java8"
version := "1.0"

scalaVersion := "2.10.3"

javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-Xlint")

// leads to dependencies being downloaded off the default maven repositories and injected into the build path so your program can use it
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.3.1"
)

// bonus Java8 check on initialization
initialize := {
val _ = initialize.value
if (sys.props("java.specification.version") != "1.8")
sys.error("Java 8 is required for this project.")
}

After you got this you just throw code into the src/main/java subdirectory (relative to this build.sbt file).

SBT will do your "compile", "run", "test" or whatever else for you, even automatically on file changes (~compile, ~run, ~test).

[That's just the start though, SBT can do just about fucking everything ever.]
Thread posts: 5
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.