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:
@@ -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