Skip to content

Commit f36e5b2

Browse files
authored
Migration of the serial library to Gradle (#1106)
* Update build.gradle.kts * Update build.gradle.kts * fix build.gradle.kts * Resolving issue 1099 - Add settings.gradle.kts - Update build.gradle.kts * foojay-resolver-convention updated to latest version * update migration code and revert unnecessary commits
1 parent 21dba29 commit f36e5b2

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed
Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,36 @@
1-
ant.importBuild("build.xml")
1+
plugins {
2+
java
3+
}
4+
5+
sourceSets {
6+
main {
7+
java {
8+
srcDirs("src")
9+
}
10+
}
11+
}
12+
13+
repositories {
14+
mavenCentral()
15+
}
16+
17+
dependencies {
18+
compileOnly(project(":core"))
19+
// TODO: https://github.com/java-native/jssc
20+
implementation(files("library/jssc.jar"))
21+
}
22+
23+
tasks.register<Copy>("createLibrary") {
24+
dependsOn("jar")
25+
into(layout.buildDirectory.dir("library"))
26+
from(layout.projectDirectory) {
27+
include("library.properties")
28+
include("examples/**")
29+
}
30+
from(configurations.runtimeClasspath) {
31+
into("library")
32+
}
33+
from(tasks.jar) {
34+
into("library")
35+
}
36+
}

0 commit comments

Comments
 (0)