-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathbuild.gradle
More file actions
55 lines (48 loc) · 1.92 KB
/
build.gradle
File metadata and controls
55 lines (48 loc) · 1.92 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
46
47
48
49
50
51
52
53
54
55
apply plugin: 'java'
apply plugin: 'org.ros2.tools.gradle'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
buildscript {
repositories {
jcenter()
mavenCentral()
mavenLocal()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'gradle.plugin.org.ros2.tools.gradle:ament:0.7.0'
}
}
repositories {
mavenCentral()
}
// Use the same syntax as the entry points for the Python examples
ament {
entryPoints {
consoleScripts = [
'add_two_ints_client = org.ros2.rcljava.examples.client.AddTwoIntsClient',
'subscriber_node = org.ros2.rcljava.examples.composition.SubscriberNode',
'publisher_node = org.ros2.rcljava.examples.composition.PublisherNode',
'publisher_not_composable = org.ros2.rcljava.examples.publisher.PublisherNotComposable',
'publisher_lambda = org.ros2.rcljava.examples.publisher.PublisherLambda',
'publisher_member_function = org.ros2.rcljava.examples.publisher.PublisherMemberFunction',
'add_two_ints_service = org.ros2.rcljava.examples.service.AddTwoIntsService',
'subscriber_not_composable = org.ros2.rcljava.examples.subscriber.SubscriberNotComposable',
'subscriber_lambda = org.ros2.rcljava.examples.subscriber.SubscriberLambda',
'subscriber_member_function = org.ros2.rcljava.examples.subscriber.SubscriberMemberFunction',
'timer_lambda = org.ros2.rcljava.examples.timer.TimerLambda',
'timer_member_function = org.ros2.rcljava.examples.timer.TimerMemberFunction'
]
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
destinationDir = new java.io.File(ament.installSpace + "/share/" + ament.packageManifestName +
"/java")
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}