mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 21:29:17 +01:00
Rename gradle plugin and further planning
This commit is contained in:
@@ -22,7 +22,7 @@ dependencies{
|
||||
gradlePlugin{
|
||||
plugins{
|
||||
create("processing"){
|
||||
id = "org.processing.gradle"
|
||||
id = "org.processing.java"
|
||||
implementationClass = "org.processing.java.gradle.ProcessingPlugin"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
plugins{
|
||||
id("org.processing.gradle")
|
||||
id("org.processing.java")
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user