mirror of
https://github.com/processing/processing4.git
synced 2026-03-14 16:37:42 +01:00
Merge pull request #1347 from Stefterv/library-plugin
Gradle Plugin for creating Processing Libraries
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user