Migration of the svg library to Gradle (#1289)

* Update svg build.gradle.kts

* update variable legacyLibraries and libraries
This commit is contained in:
Madhav Majumdar
2026-01-15 03:24:27 +05:30
committed by GitHub
parent 76b9bae923
commit 621d9900b5
2 changed files with 42 additions and 3 deletions
+2 -2
View File
@@ -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"
+40 -1
View File
@@ -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" }
}
}