Gradle provided dependencies with Intellij

后端 未结 3 1296
感动是毒
感动是毒 2021-01-21 10:48

I\'m trying to build a Bukkit plugin. The plugin also uses exp4j. The final result needs to have the exp4j code included in the released jar but not have the Bu

3条回答
  •  有刺的猬
    2021-01-21 11:03

    In Gradle 2.12 and later, there is a configuration called compileOnly that has the provided semantics you are looking for.

    More about this configuration on the Gradle blog post on the subject.

    Before 2.12, you can use the nebula.provided-base plugin to create a provided configuration with all the correct semantics.

提交回复
热议问题