Skip to content
Snippets Groups Projects
Commit 6e66e0b5 authored by Leroy Rügemer's avatar Leroy Rügemer
Browse files

install gradle t share destination

parent 0bc5e3ac
Branches
No related tags found
No related merge requests found
...@@ -2,6 +2,5 @@ ...@@ -2,6 +2,5 @@
*.pyc *.pyc
# Package Files # # Package Files #
*.jar
*.war *.war
*.ear *.ear
...@@ -23,13 +23,13 @@ catkin_add_env_hooks(15.rosjava SHELLS sh DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ ...@@ -23,13 +23,13 @@ catkin_add_env_hooks(15.rosjava SHELLS sh DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
# Have to install gradle here so we can retain executable permissions # Have to install gradle here so we can retain executable permissions
# If we do via setup.py with the data subsection, it loses permissions # If we do via setup.py with the data subsection, it loses permissions
install( install(
PROGRAMS src/rosjava_build_tools/gradle/gradlew PROGRAMS gradle/gradlew
DESTINATION ${CATKIN_PACKAGE_PYTHON_DESTINATION}/gradle DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/gradle
) )
install( install(
DIRECTORY src/rosjava_build_tools/gradle/gradle DIRECTORY gradle/gradle
DESTINATION ${CATKIN_PACKAGE_PYTHON_DESTINATION}/gradle DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/gradle
) )
install( install(
...@@ -44,7 +44,7 @@ install( ...@@ -44,7 +44,7 @@ install(
set(ROS_MAVEN_DEPLOYMENT_REPOSITORY $ENV{ROS_MAVEN_DEPLOYMENT_REPOSITORY}) set(ROS_MAVEN_DEPLOYMENT_REPOSITORY $ENV{ROS_MAVEN_DEPLOYMENT_REPOSITORY})
if(NOT ROS_MAVEN_DEPLOYMENT_REPOSITORY) if(NOT ROS_MAVEN_DEPLOYMENT_REPOSITORY)
set(ROS_MAVEN_DEPLOYMENT_REPOSITORY "${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_SHARE_DESTINATION}/maven") set(ROS_MAVEN_DEPLOYMENT_REPOSITORY "${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_SHARE_DESTINATION}/repository")
endif() endif()
file(WRITE ${ROS_MAVEN_DEPLOYMENT_REPOSITORY}/rospack_nosubdirs "") file(WRITE ${ROS_MAVEN_DEPLOYMENT_REPOSITORY}/rospack_nosubdirs "")
install(FILES ${ROS_MAVEN_DEPLOYMENT_REPOSITORY}/rospack_nosubdirs install(FILES ${ROS_MAVEN_DEPLOYMENT_REPOSITORY}/rospack_nosubdirs
......
It is currently the gradle wrapper supporting gradle 4.6
When creating the tarball, simply run the following command in any gradle projects root.
> tar -cvzf gradle.tar.gz gradlew gradle gradle.properties
File moved
<package> <package>
<name>rosjava_build_tools</name> <name>rosjava_build_tools</name>
<version>0.3.4</version> <version>0.3.5</version>
<description> <description>
Simple tools and catkin modules for rosjava development. Simple tools and catkin modules for rosjava development.
</description> </description>
......
...@@ -100,7 +100,7 @@ def populate_repo(repo_path, package_type): ...@@ -100,7 +100,7 @@ def populate_repo(repo_path, package_type):
def create_gradle_wrapper(repo_path): def create_gradle_wrapper(repo_path):
gradle_binary = os.path.join(os.path.dirname(__file__), 'gradle', 'gradlew') gradle_binary = os.path.join(os.path.dirname(__file__),'..', '..', '..', 'share', 'rosjava_build_tools', 'gradle', 'gradlew')
cmd = [gradle_binary, '-p', repo_path, 'wrapper'] cmd = [gradle_binary, '-p', repo_path, 'wrapper']
console.pretty_print("Creating gradle wrapper: ", console.cyan) console.pretty_print("Creating gradle wrapper: ", console.cyan)
console.pretty_println("%s" % ' '.join(cmd), console.yellow) console.pretty_println("%s" % ' '.join(cmd), console.yellow)
......
This is not installed, but it gets used to generate the gradle wrapper for a project.
It is currently the gradle wrapper supporting gradle 4.6
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment