-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
45 lines (36 loc) · 1.12 KB
/
build.gradle
File metadata and controls
45 lines (36 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
plugins {
id 'java'
}
group = 'com.systemexklusiv'
version = '0.1'
repositories {
mavenCentral()
maven {
url = uri("https://maven.bitwig.com")
}
}
dependencies {
implementation 'com.bitwig:extension-api:18'
testImplementation 'junit:junit:4.12'
compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
final var String ARTEFACT_NAME = "BWSSoftstepperNative"
tasks.register('copyBwextension', Copy) {
from(jar)
into('src/main/resources/release')
rename { String fileName ->
fileName.replace(project.name, ARTEFACT_NAME).replace(".jar", ".bwextension")
}
}
tasks.register('deployToBitwig', Copy) {
description = "Copies the .bwextension file to the Bitwig Studio Extensions directory."
from 'src/main/resources/release/' + ARTEFACT_NAME + '-' + version + '.bwextension'
into '/Users/davidrival/Documents/Bitwig Studio/Extensions'
}
copyBwextension.finalizedBy(deployToBitwig)
build.finalizedBy(copyBwextension)