Skip to content

Commit 4aa9f00

Browse files
committed
✅reproducing steps for missing buildSrc configuration #541
1 parent 74697b4 commit 4aa9f00

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

sample-groovy/build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// TODO Gradle sync works but the IDE can't resolve the symbol
12
import static de.fayard.refreshVersions.core.Versions.versionFor
23

34
plugins {
@@ -9,13 +10,23 @@ plugins {
910

1011
group = "de.fayard"
1112

13+
/**
14+
* NOTE auto-completion doesn't work here because the buildSrc is not setup
15+
* See https://jmfayard.github.io/refreshVersions/setup/#if-you-use-groovy-dsl-ie-buildgradle-files-not-kts
16+
*/
17+
dependencies {
18+
// TODO: implementation(KotlinX.coroutines.<TAB>)
19+
}
1220
dependencies {
1321
implementation("com.google.guava:guava:_")
1422
implementation("com.google.inject:guice:_")
1523
implementation(AndroidX.annotation)
1624
implementation("org.jetbrains:annotations:_")
25+
implementation(KotlinX.coroutines.android)
26+
implementation(KotlinX.coroutines.android)
1727
}
1828

29+
1930
println("The version for artifact org.jetbrains:annotations:_ is " + versionFor(project, "org.jetbrains:annotations:_"))
2031
println("The version for version key version.com.google.guava..guava is " + versionFor(project, "version.com.google.guava..guava"))
2132

sample-groovy/buildSrc/settings.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ pluginManagement {
1111
}
1212
}
1313

14-
plugins {
14+
// https://jmfayard.github.io/refreshVersions/setup/#if-you-use-groovy-dsl-ie-buildgradle-files-not-kts
15+
/**
16+
plugins {
1517
id("de.fayard.refreshVersions")
1618
}
19+
**/

sample-groovy/versions.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#### Dependencies and Plugin versions with their available updates.
2-
#### Generated by `./gradlew refreshVersions` version 0.41.0-SNAPSHOT
2+
#### Generated by `./gradlew refreshVersions` version 0.51.0-SNAPSHOT
33
#### Revision of dependency notations removals: 14
44
####
55
#### Don't manually edit or split the comments that start with four hashtags (####),
@@ -20,4 +20,6 @@ version.com.google.guava..guava=15.0
2020

2121
version.com.google.inject..guice=2.0
2222

23+
version.kotlinx.coroutines=1.6.4
24+
2325
version.org.jetbrains..annotations=17.0.0

0 commit comments

Comments
 (0)