@@ -29,6 +29,8 @@ repositories {
29
29
if (testGcs) maven(url = " gcs://refreshversions-testing/maven" )
30
30
}
31
31
32
+
33
+
32
34
dependencies {
33
35
if (testGcs) implementation(" com.example:dummy-library-for-testing:_" )
34
36
implementation(AndroidX .core)
@@ -44,15 +46,34 @@ dependencies {
44
46
implementation(" org.mongodb:mongo-java-driver:3.11.0" )
45
47
implementation(kotlin(" script-runtime" ))
46
48
47
- api(" org.apache.poi:poi:_" )
48
- api(" org.apache.poi:poi-ooxml:_" )
49
+
49
50
50
51
// logging
51
52
implementation(platform(" org.apache.logging.log4j:log4j-bom:2.17.2" ))
52
53
runtimeOnly(" org.apache.logging.log4j:log4j-slf4j-impl" )
53
54
runtimeOnly(" org.apache.logging.log4j:log4j-jul" )
54
55
}
55
56
57
+ /*
58
+ Reproducing steps for https://github.com/jmfayard/refreshVersions/issues/541
59
+
60
+ $ ./gradlew compileKotlin
61
+ > Could not resolve all files for configuration ':compileClasspath'.
62
+ > Could not find org.apache.poi:poi:_.
63
+
64
+ See stacktrace here https://scans.gradle.com/s/77ijrlpzd2kby/failure#1
65
+ */
66
+ val apachePoi = " org.apache.poi:poi:_"
67
+ val apachePoiXml = " org.apache.poi:poi-ooxml:_"
68
+ dependencies {
69
+ api(apachePoi)
70
+ api(apachePoiXml)
71
+ }
72
+ configurations.all {
73
+ resolutionStrategy.force(apachePoiXml)
74
+ resolutionStrategy.force(apachePoi)
75
+ }
76
+
56
77
getKotlinPluginVersion().let {
57
78
val kotlinStdlibVersion = versionFor(dependencyNotation = Kotlin .stdlib)
58
79
check(it == kotlinStdlibVersion) {
0 commit comments