-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
54 lines (44 loc) · 1.05 KB
/
build.gradle.kts
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
46
47
48
49
50
51
52
53
54
plugins {
// id("java")
id("biz.aQute.bnd.builder") version "7.0.0"
id("application")
// java
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
compileOnly("org.osgi:org.osgi.framework:1.10.0")
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.test {
useJUnitPlatform()
}
tasks.wrapper {
distributionType = Wrapper.DistributionType.ALL
}
application {
mainClass.set("org.example.Main")
}
tasks.register<JavaExec>("runMe") {
classpath = sourceSets["main"].runtimeClasspath
mainClass = "org.example.Main"
}
task<JavaExec>("runMe2") {
classpath = sourceSets["main"].runtimeClasspath
mainClass = "org.example.Main"
}
//tasks.jar {
// manifest {
// attributes(mapOf("-exportcontents": "com.acme.api.*",
// "-sources": "true",
// "-include": "other.bnd"))
// }
//}
//tasks.wrapper {
// gradleVersion = "8.2"
// distributionType = Wrapper.DistributionType.ALL
//}