Merge pull request #1192 from npNSU/dxfMigration

Migration of the `dxf` library from Ant to Gradle
This commit is contained in:
Moon
2025-09-12 10:54:55 -04:00
committed by GitHub
2 changed files with 41 additions and 2 deletions

View File

@@ -87,7 +87,8 @@ legacyLibraries.forEach { library ->
}
}
val libraries = arrayOf("pdf")
val libraries = arrayOf("dxf", "pdf")
libraries.forEach { library ->
val name = "create-$library-library"
tasks.register<Copy>(name) {

View File

@@ -1 +1,39 @@
ant.importBuild("build.xml")
plugins{
java
}
sourceSets {
main {
java {
srcDirs("src")
}
}
}
repositories{
mavenCentral()
maven("https://jogamp.org/deployment/maven/")
}
dependencies{
compileOnly(project(":core"))
implementation("com.lowagie:itext:2.1.7")
}
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")
}
}