Skip to content

Commit b165d0a

Browse files
committed
Add all library jars
1 parent 772567c commit b165d0a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/src/processing/app/gradle/GradleService.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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}")

java/gradle/src/main/kotlin/DependenciesTask.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)