mirror of
https://github.com/processing/processing4.git
synced 2026-01-25 01:11:06 +01:00
Merge pull request #1192 from npNSU/dxfMigration
Migration of the `dxf` library from Ant to Gradle
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user