Skip to content

Commit e37e67d

Browse files
committed
[Ant->Gradle] Dxf
1 parent 275d789 commit e37e67d

File tree

2 files changed

+40
-3
lines changed

2 files changed

+40
-3
lines changed

java/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ tasks.register<Copy>("copyCore"){
6868
into(coreProject.layout.projectDirectory.dir("library"))
6969
}
7070

71-
val legacyLibraries = arrayOf("dxf","io","net","serial","svg")
71+
val legacyLibraries = arrayOf("io","net","serial","svg")
7272
legacyLibraries.forEach { library ->
7373
tasks.register<Copy>("library-$library-extraResources"){
7474
val build = project(":java:libraries:$library").tasks.named("build")
@@ -87,7 +87,7 @@ legacyLibraries.forEach { library ->
8787
}
8888
}
8989

90-
val libraries = arrayOf("pdf")
90+
val libraries = arrayOf("dxf", "pdf")
9191
libraries.forEach { library ->
9292
val name = "create-$library-library"
9393
tasks.register<Copy>(name) {
Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,38 @@
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+
}
21+
22+
tasks.register<Copy>("createLibrary"){
23+
dependsOn("jar")
24+
into(layout.buildDirectory.dir("library"))
25+
26+
from(layout.projectDirectory){
27+
include ("library.properties")
28+
include("examples/**")
29+
}
30+
31+
from(configurations.runtimeClasspath){
32+
into("library")
33+
}
34+
35+
from(tasks.jar) {
36+
into("library")
37+
}
38+
}

0 commit comments

Comments
 (0)