如何将 gradle 本地 jar 依赖项发送到另一个 gradle 插件

时间:2021-02-08 14:29:56

标签: spring gradle runtime liquibase dependency-management

在我的 spring boot 项目中,我想在项目文件夹中添加一个 .jar 作为 gradle 依赖项,并将其发送到另一个插件(liquibase)进行处理。

目前这大致是 build.gradle 的样子

  repositories {
    maven {
      url "${artifactory_contextUrl}/plugins-release"
    }
    maven {
      url "${artifactory_contextUrl}/libs-release"
    }
  }

dependencies {
  String someDependency = "com.service.serve:somedependency:111.5.0"
  compile ("$someDependency ") {
    changing = true
  }
  liquibaseConfig ("$someDependency ")

如何从项目文件夹中添加 .jar 依赖项,并将其发送到 liquibase 插件以运行 sql 更改。 注意:所有的传递依赖都需要在编译和运行时公开。

到目前为止,我已经尝试了 flatDirapiimplementationcompile 的多种组合,发送依赖项作为 file() 但没有任何作用。

0 个答案:

没有答案
相关问题