Skip to content

Commit 0d1fcc4

Browse files
committed
Added documentation and todo's
1 parent 0299209 commit 0d1fcc4

File tree

6 files changed

+13
-3
lines changed

6 files changed

+13
-3
lines changed

java/gradle/example/.idea/gradle.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java/gradle/example/.idea/misc.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import org.gradle.api.tasks.TaskAction
77
import java.io.File
88
import java.io.ObjectInputStream
99

10+
/*
11+
* The DependenciesTask resolves the dependencies for the sketch based on the libraries used
12+
*/
1013
abstract class DependenciesTask: DefaultTask() {
1114
@InputFile
1215
val librariesMetaData: RegularFileProperty = project.objects.fileProperty()
@@ -59,6 +62,7 @@ abstract class DependenciesTask: DefaultTask() {
5962
project.dependencies.add("runtimeOnly", "org.jogamp.jogl:jogl-all:2.5.0:natives-macosx-universal")
6063
project.dependencies.add("runtimeOnly", "org.jogamp.gluegen:gluegen-rt:2.5.0:natives-macosx-universal")
6164

65+
// TODO: Solve windows specific issue
6266
// Windows specific native dependencies
6367
project.dependencies.add("runtimeOnly", "org.jogamp.jogl:jogl-all:2.5.0:natives-windows-amd64")
6468
project.dependencies.add("runtimeOnly", "org.jogamp.gluegen:gluegen-rt:2.5.0:natives-windows-amd64")

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ import java.io.File
1010
import java.io.ObjectOutputStream
1111
import java.util.jar.JarFile
1212

13+
/*
14+
The libraries task scans the sketchbook libraries folder for all the libraries
15+
This task stores the resulting information in a file that can be used later to resolve dependencies
16+
*/
1317
abstract class LibrariesTask : DefaultTask() {
1418

1519
// TODO: Allow this directory to not exist

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ import javax.inject.Inject
1313

1414

1515
// TODO: Generate sourcemaps
16+
/*
17+
* The PDETask is the main task that processes the .pde files and generates the Java source code
18+
*/
1619
abstract class PDETask : SourceTask() {
17-
18-
1920
@get:InputFiles
2021
@get:PathSensitive(PathSensitivity.RELATIVE)
2122
@get:IgnoreEmptyDirectories

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class ProcessingPlugin @Inject constructor(private val objectFactory: ObjectFact
2727
val workingDir = project.findProperty("processing.workingDir") as String?
2828
val debugPort = project.findProperty("processing.debugPort") as String?
2929

30+
// TODO: Setup sketchbook when using as a standalone plugin
3031
val sketchbook = project.findProperty("processing.sketchbook") as String?
3132

3233
// Apply the Java plugin to the Project

0 commit comments

Comments
 (0)