Skip to content
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

Closed
wants to merge 17 commits into from
Closed

Update dependencies #97

wants to merge 17 commits into from

Conversation

SimonMarquis
Copy link
Contributor

@SimonMarquis SimonMarquis commented Mar 18, 2023

  • Gradle 8.0.2, closes Bump to Gradle 7.6 #64
  • ktlint-gradle 11.3.1
  • AGP 7.4.2
  • Jacoco 0.8.8
  • Kotlin 1.8.0
  • Dokka 1.8.10
  • JUnit 4.13.2
  • BinaryCompatibilityValidator 0.13.0

This also migrates the 2 remaing Groovy Gradle build files to kts.

```
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
```
@SimonMarquis
Copy link
Contributor Author

SimonMarquis commented Mar 18, 2023

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 versions

Snapshot 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"
}

@SimonMarquis SimonMarquis closed this by deleting the head repository Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bump to Gradle 7.6
1 participant