Use SBT To Build Pure Java Project

后端 未结 4 1084
梦如初夏
梦如初夏 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:44

    For me, it also helped a bit to remove the scala version information from the generated artifact paths, as described in this answer. You'll also want to remove the Scala library as a dependency from any pom or ivy file you publish.

    Here's what you'll need:

    crossPaths := false
    autoScalaLibrary := false
    

提交回复
热议问题