Use SBT To Build Pure Java Project

后端 未结 4 1092
梦如初夏
梦如初夏 2021-01-30 20:54

Historically I have used Ant+Ivy or Maven for building my Java projects. I\'m now looking at non-xml based solutions.

Gradle can compile, jar and publish my project with

4条回答
  •  我在风中等你
    2021-01-30 21:40

    Yes this is entirely possible. Nothing to setup really, a small build.sbt file should do the trick, something like:

    organization := "your.group.id"
    
    name := "Your project"
    
    version := "1.0-SNAPSHOT"
    
    libraryDependencies ++= Seq(  )
    

    And run sbt package from the command line.

提交回复
热议问题