mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Migration of the svg library to Gradle (#1289)
* Update svg build.gradle.kts * update variable legacyLibraries and libraries
This commit is contained in:
@@ -68,7 +68,7 @@ tasks.register<Copy>("copyCore"){
|
||||
into(coreProject.layout.projectDirectory.dir("library"))
|
||||
}
|
||||
|
||||
val legacyLibraries = arrayOf("io","net","svg")
|
||||
val legacyLibraries = arrayOf("io","net")
|
||||
legacyLibraries.forEach { library ->
|
||||
tasks.register<Copy>("library-$library-extraResources"){
|
||||
val build = project(":java:libraries:$library").tasks.named("build")
|
||||
@@ -87,7 +87,7 @@ legacyLibraries.forEach { library ->
|
||||
}
|
||||
}
|
||||
|
||||
val libraries = arrayOf("dxf", "pdf", "serial")
|
||||
val libraries = arrayOf("dxf", "pdf", "serial", "svg")
|
||||
|
||||
libraries.forEach { library ->
|
||||
val name = "create-$library-library"
|
||||
|
||||
@@ -1 +1,40 @@
|
||||
ant.importBuild("build.xml")
|
||||
plugins {
|
||||
java
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
java {
|
||||
srcDirs("src")
|
||||
}
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly(project(":core"))
|
||||
|
||||
implementation("org.apache.xmlgraphics:batik-all:1.19")
|
||||
}
|
||||
|
||||
tasks.register<Copy>("createLibrary") {
|
||||
dependsOn("jar")
|
||||
into(layout.buildDirectory.dir("library"))
|
||||
|
||||
from(layout.projectDirectory) {
|
||||
include("library.properties")
|
||||
include("examples/**")
|
||||
}
|
||||
|
||||
from(configurations.runtimeClasspath) {
|
||||
into("library")
|
||||
}
|
||||
|
||||
from(tasks.jar) {
|
||||
into("library")
|
||||
rename { "svg.jar" }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user