File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -50,11 +50,9 @@ macro(_rosjava_env)
50
50
else ()
51
51
set (ROSJAVA_ENV " ROS_MAVEN_DEPLOYMENT_REPOSITORY=${ROS_MAVEN_DEPLOYMENT_REPOSITORY}" )
52
52
endif ()
53
- set ( ROSJAVA_GRADLE_USER_HOME $ENV{GRADLE_USER_HOME})
54
- if (NOT ROSJAVA_GRADLE_USER_HOME )
53
+ # The build farm won't let you access /root/.gradle, so redirect it somewhere practical here.
54
+ if (DEFINED CATKIN_BUILD_BINARY_PACKAGE )
55
55
list (APPEND ROSJAVA_ENV " GRADLE_USER_HOME=${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_GRADLE_DESTINATION}" )
56
- else ()
57
- list (APPEND ROSJAVA_ENV " GRADLE_USER_HOME=${ROSJAVA_GRADLE_USER_HOME}" )
58
56
endif ()
59
57
endmacro ()
60
58
@@ -67,14 +65,13 @@ macro(catkin_rosjava_setup)
67
65
_rosjava_env ()
68
66
find_gradle ()
69
67
if ( ${ARGC} EQUAL 0 )
70
- # Note : COMMAND is a list of variables, so these need to be a list, not a single string
71
- set (gradle_tasks " install;installApp;uploadArchives" )
68
+ # Note : COMMAND is a list of variables (semi-colon separated)
69
+ set (gradle_tasks " publishMavenJavaPublicationToMavenRepository " ) # old targets " install;installApp;uploadArchives"
72
70
else ()
73
71
set (gradle_tasks ${ARGV})
74
72
endif ()
75
73
add_custom_target (gradle- ${PROJECT_NAME}
76
74
ALL
77
- COMMAND ${ROSJAVA_ENV} ${CATKIN_ENV} " env" " |" " grep" " GRADLE"
78
75
COMMAND ${ROSJAVA_ENV} ${CATKIN_ENV} " env" " |" " grep" " ROS"
79
76
COMMAND ${ROSJAVA_ENV} ${CATKIN_ENV} ${${PROJECT_NAME}_gradle_BINARY} ${gradle_tasks}
80
77
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
Original file line number Diff line number Diff line change @@ -8,4 +8,3 @@ SCRIPT=@(CMAKE_INSTALL_PREFIX)/share/rosjava_build_tools/generate_environment_va
8
8
9
9
export ROS_MAVEN_PATH=` python ${SCRIPT} --maven-path`
10
10
export ROS_MAVEN_DEPLOYMENT_REPOSITORY=` python ${SCRIPT} --maven-deployment-repository`
11
- export GRADLE_USER_HOME=` python ${SCRIPT} --gradle-user-home`
Original file line number Diff line number Diff line change @@ -8,4 +8,3 @@ SCRIPT=@(CMAKE_INSTALL_PREFIX)/share/rosjava_build_tools/generate_environment_va
8
8
9
9
export ROS_MAVEN_PATH=` python ${SCRIPT} --maven-path`
10
10
export ROS_MAVEN_DEPLOYMENT_REPOSITORY=` python ${SCRIPT} --maven-deployment-repository`
11
- export GRADLE_USER_HOME=` python ${SCRIPT} --gradle-user-home`
You can’t perform that action at this time.
0 commit comments