Merge pull request #1347 from Stefterv/library-plugin

Gradle Plugin for creating Processing Libraries
This commit is contained in:
Stef Tervelde
2026-02-02 13:42:05 +01:00
committed by GitHub
7 changed files with 330 additions and 12 deletions

View File

@@ -1,5 +1,23 @@
plugins{
java
id("org.processing.library")
}
processing {
library {
version = 1
prettyVersion = "1.0.0"
authors = mapOf(
"The Processing Foundation" to "https://processing.org"
)
url = "https://processing.org/"
categories = listOf("file", "exporter", "dxf")
sentence = "DXF export library for Processing"
paragraph =
"This library allows you to export your Processing drawings as DXF files, which can be opened in CAD applications."
}
}
sourceSets {
@@ -9,27 +27,23 @@ sourceSets {
}
}
}
repositories{
mavenCentral()
maven("https://jogamp.org/deployment/maven/")
}
dependencies{
compileOnly(project(":core"))
implementation("com.lowagie:itext:2.1.7")
}
tasks.register<Copy>("createLibrary"){
/**
* @deprecated Legacy task, use 'bundleLibrary' task provided by 'org.processing.library' plugin
*/
tasks.register<Copy>("createLibrary") {
dependsOn("jar")
into(layout.buildDirectory.dir("library"))
from(layout.projectDirectory){
include ("library.properties")
from(layout.projectDirectory) {
include("library.properties")
include("examples/**")
}
from(configurations.runtimeClasspath){
from(configurations.runtimeClasspath) {
into("library")
}