Skip to content

Commit 2c94b38

Browse files
authored
Merge pull request #1192 from npNSU/dxfMigration
Migration of the `dxf` library from Ant to Gradle
2 parents 34a85df + 4495cc5 commit 2c94b38

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

java/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ legacyLibraries.forEach { library ->
8787
}
8888
}
8989

90-
val libraries = arrayOf("pdf")
90+
val libraries = arrayOf("dxf", "pdf")
91+
9192
libraries.forEach { library ->
9293
val name = "create-$library-library"
9394
tasks.register<Copy>(name) {
Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,39 @@
1-
ant.importBuild("build.xml")
1+
plugins{
2+
java
3+
}
4+
5+
sourceSets {
6+
main {
7+
java {
8+
srcDirs("src")
9+
}
10+
}
11+
}
12+
repositories{
13+
mavenCentral()
14+
maven("https://jogamp.org/deployment/maven/")
15+
}
16+
17+
dependencies{
18+
compileOnly(project(":core"))
19+
20+
implementation("com.lowagie:itext:2.1.7")
21+
}
22+
23+
tasks.register<Copy>("createLibrary"){
24+
dependsOn("jar")
25+
into(layout.buildDirectory.dir("library"))
26+
27+
from(layout.projectDirectory){
28+
include ("library.properties")
29+
include("examples/**")
30+
}
31+
32+
from(configurations.runtimeClasspath){
33+
into("library")
34+
}
35+
36+
from(tasks.jar) {
37+
into("library")
38+
}
39+
}

0 commit comments

Comments
 (0)