File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -219,14 +219,16 @@ task createSkeleton() {
219219
220220task cacheReflections {
221221 description = ' Caches reflection output to make regular startup faster. May go stale and need cleanup at times.'
222- inputs. files sourceSets. main. output
222+ // TODO: The extra "org" qualifier excludes test classes otherwise sucked up in Jenkins, causing issues. Redo later
223+ File dirToReflect = new File (sourceSets. main. output. classesDir, " org" )
224+ inputs. files dirToReflect
223225 outputs. file file(sourceSets. main. output. classesDir. toString() + " /reflections.cache" )
224226 dependsOn classes
225227 doFirst {
226228 // Without the .mkdirs() we might hit a scenario where the classes dir doesn't exist yet
227- file(sourceSets . main . output . classesDir . toString()) . mkdirs()
229+ dirToReflect . mkdirs()
228230 Reflections reflections = new ConfigurationBuilder ()
229- .addUrls(sourceSets . main . output . classesDir . toURI(). toURL())
231+ .addUrls(dirToReflect . toURI(). toURL())
230232 .setScanners(new TypeAnnotationsScanner (), new SubTypesScanner ())
231233 .build()
232234 reflections. save(sourceSets. main. output. classesDir. toString() + " /reflections.cache" )
You can’t perform that action at this time.
0 commit comments