-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependencies #97
Update dependencies #97
Conversation
``` e: dependency-guard\dependency-guard\build.gradle.kts:91:9: None of the following functions can be called with the arguments supplied: public operator fun DependencyAdder.invoke(dependencyNotation: CharSequence): Unit defined in org.gradle.kotlin.dsl public operator fun DependencyAdder.invoke(dependency: Dependency): Unit defined in org.gradle.kotlin.dsl public operator fun DependencyAdder.invoke(files: FileCollection): Unit defined in org.gradle.kotlin.dsl public operator fun DependencyAdder.invoke(dependency: Provider<out Dependency>): Unit defined in org.gradle.kotlin.dsl public operator fun DependencyAdder.invoke(externalModule: ProviderConvertible<out MinimalExternalModuleDependency>): Unit defined in org.gradle.kotlin.dsl ```
There is one last thing to do, which is to update the "Adding to the Buildscript Classpath". To me, there is no point of adding the plugin to the classpath this way since we already show how to add it with: plugins {
id("com.dropbox.dependency-guard") version "..."
} Or is it used for something else I did not thought about? The Legacy Plugin API using the buildscript block feels outdated and is probably no longer used for people wanting to test the snapshot versions. Could we replace it with something like this? Using SNAPSHOT versionsSnapshot versions are under development and change, but can be used by adding in the snapshot repository // settings.gradle.kts
pluginManagement {
repositories {
maven { url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots") }
}
}
// build.gradle.kts
plugins {
id("com.dropbox.dependency-guard") version "x.y.z-SNAPSHOT"
} |
This also migrates the 2 remaing Groovy Gradle build files to kts.