File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
app/src/processing/app/gradle
java/gradle/src/main/kotlin Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ class GradleService(
8484 private fun setupGradle (): MutableList <String > {
8585 val sketch = sketch ? : throw IllegalStateException (" Sketch is not set" )
8686
87+ // TODO: if sketch is read-only, copy it whole to the temporary working directory / sketch
88+
8789 val unsaved = sketch.code
8890 .map { code ->
8991 val file = workingDir.resolve(" unsaved/${code.fileName} " )
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ abstract class DependenciesTask: DefaultTask() {
4444 library.jars.forEach { jar ->
4545 jar.classes.forEach { className ->
4646 if (className.startsWith(statement)) {
47- dependencies.add(jar. path)
47+ dependencies.addAll(library.jars.map { it. path } )
4848 return @import
4949 }
5050 }
You can’t perform that action at this time.
0 commit comments