Skip to content

Commit 5014ec0

Browse files
committed
inital mode setup
1 parent 3953703 commit 5014ec0

File tree

9 files changed

+1102
-1
lines changed

9 files changed

+1102
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,4 @@ java/build/
109109
/java/preprocessor/build
110110
/java/lsp/build
111111
/.kotlin/sessions
112+
/p5js/build

p5js/build.gradle.kts

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
plugins {
2+
kotlin("jvm") version "2.0.20"
3+
}
4+
5+
group = "org.processing"
6+
version = "4.3.3"
7+
8+
repositories {
9+
mavenCentral()
10+
google()
11+
maven { url = uri("https://jogamp.org/deployment/maven") }
12+
}
13+
14+
dependencies {
15+
compileOnly(project(":app"))
16+
17+
testImplementation(kotlin("test"))
18+
}
19+
20+
tasks.jar {
21+
archiveVersion.set("")
22+
}
23+
tasks.create<Copy>("copyJars") {
24+
dependsOn(tasks.jar)
25+
from(layout.buildDirectory.dir("libs")){
26+
include("**/*.jar")
27+
}
28+
from(configurations.compileClasspath)
29+
into(layout.buildDirectory.dir("library/mode"))
30+
duplicatesStrategy = DuplicatesStrategy.INCLUDE
31+
}
32+
tasks.create<Copy>("createLibrary") {
33+
from("library")
34+
into(layout.buildDirectory.dir("library"))
35+
}
36+
tasks.create<Copy>("installLibrary") {
37+
dependsOn(tasks.named("createLibrary"))
38+
dependsOn(tasks.named("copyJars"))
39+
from(layout.buildDirectory.dir("library"))
40+
into("${System.getProperty("user.home")}/Documents/Processing/modes/p5js")
41+
}
42+
tasks.test {
43+
useJUnitPlatform()
44+
}
45+
project(":app") {
46+
tasks.named("run"){
47+
dependsOn(":p5js:installLibrary")
48+
}
49+
}

0 commit comments

Comments
 (0)