我有一个包含以下 SubProjects / Modules
的项目BlockingCollection<T>
Project
|
+----gradle-plugin
|
+----sample-module-to-test-the-plugin
问题是我必须先注释掉上面的行,然后才能应用插件,然后发布到本地maven,甚至发布到远程maven,
问:有没有办法像普通依赖项一样拥有本地类路径依赖?我们将其指定为
buildscript {
repositories {
mavenLocal()
maven {
url "https://jitpack.io"
credentials { username 'my-secret-token-for-private-repo' }
}
}
dependencies {
// classpath project(':plugin') <-- invalid syntax
classpath "com.github.my-repo:my-gradle-plugin:0.1.9"
}
}
apply "my-custom-plugin-id"