Rename gradle plugin and further planning

This commit is contained in:
Stef Tervelde
2025-07-02 09:42:19 +02:00
parent 1c429618df
commit fcb554a50c
7 changed files with 17 additions and 20 deletions

View File

@@ -22,7 +22,7 @@ dependencies{
gradlePlugin{
plugins{
create("processing"){
id = "org.processing.gradle"
id = "org.processing.java"
implementationClass = "org.processing.java.gradle.ProcessingPlugin"
}
}

View File

@@ -1,3 +1,3 @@
plugins{
id("org.processing.gradle")
id("org.processing.java")
}

View File

@@ -27,7 +27,7 @@ class ProcessingPlugin @Inject constructor(private val objectFactory: ObjectFact
val workingDir = project.findProperty("processing.workingDir") as String?
val debugPort = project.findProperty("processing.debugPort") as String?
// TODO: Setup sketchbook when using as a standalone plugin
// TODO: Setup sketchbook when using as a standalone plugin, use the Java Preferences
val sketchbook = project.findProperty("processing.sketchbook") as String?
// Apply the Java plugin to the Project

View File

@@ -11,7 +11,7 @@ class ProcessingPluginTest{
@Test
fun testPluginAddsSketchTask(){
val project = ProjectBuilder.builder().build()
project.pluginManager.apply("org.processing.gradle")
project.pluginManager.apply("org.processing.java")
assert(project.tasks.getByName("sketch") is Task)
}