Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Rosjava Bootstrap Gradle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CeTI
ROS
ROS Java Packages
Rosjava Bootstrap Gradle
Commits
5cb57c6b
Commit
5cb57c6b
authored
10 years ago
by
Daniel Stonier
Browse files
Options
Downloads
Patches
Plain Diff
updated ros-java buildscript
parent
bd097c08
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ros-java.gradle
+79
-67
79 additions, 67 deletions
ros-java.gradle
with
79 additions
and
67 deletions
ros-java.gradle
+
79
−
67
View file @
5cb57c6b
...
...
@@ -15,19 +15,33 @@
*/
/*
* Apply this gradle script to configure maven url's and other properties in
* the root build.gradle of any rosjava project. Use alongside the api provided
* by the ros-java gradle plugin.
* ABOUT:
*
* Usage:
* Configures a single gradle project (or subproject) to utilise ros-java settings.
*
* USAGE:
*
* Generally:
*
* apply from: "https://github.com/rosjava/rosjava_bootstrap/raw/indigo/ros-java.gradle"
*
* In the root build.gradle file of a multiproject build:
*
* subprojects {
* apply from: "https://github.com/rosjava/rosjava_bootstrap/raw/indigo/ros-java.gradle"
* apply plugin: 'ros-java'
* ...
* }
*/
rootProject
.
subprojects
{
/*
* Some notes: don't force the user to apply this to every subproject...let them choose
* when and where it gets applied. This usually means applying this script redundantly
* for every subproject. To be smarter (but force the user to do it this way) would
* be to separate the components in this script to put subproject specific commands in a
* rootProject.subprojects {}
* closure and general ones in no closure...then call it from the root.gradle (not inside
* any allprojects/subprojects closures.
*/
/***********************
* Plugins
***********************/
...
...
@@ -44,27 +58,26 @@ rootProject.subprojects {
/***********************
* Environment Settings
***********************/
ros
.
mavenRepository
=
System
.
getenv
(
"ROS_MAVEN_REPOSITORY"
)
ros
.
mavenDeploymentRepository
=
System
.
getenv
(
"ROS_MAVEN_DEPLOYMENT_REPOSITORY"
)
String
mavenPath
=
System
.
getenv
(
"ROS_MAVEN_PATH"
)
if
(
mavenPath
!=
null
)
{
ros
.
mavenPath
=
mavenPath
.
tokenize
(
":"
)
ext
{
rosMavenRepository
=
System
.
getenv
(
"ROS_MAVEN_REPOSITORY"
)
rosMavenDeploymentRepository
=
System
.
getenv
(
"ROS_MAVEN_DEPLOYMENT_REPOSITORY"
)
rosMavenPath
=
System
.
getenv
(
"ROS_MAVEN_PATH"
)
}
/***********************
* Maven Repos
***********************/
repositories
{
if
(
ros
.
m
avenPath
!=
null
)
{
ros
.
m
avenPath
.
each
{
path
->
if
(
ros
M
avenPath
!=
null
)
{
ros
M
avenPath
.
tokenize
(
":"
).
each
{
path
->
maven
{
url
uri
(
path
)
}
}
}
if
(
ros
.
m
avenRepository
!=
null
)
{
if
(
ros
M
avenRepository
!=
null
)
{
maven
{
url
ros
.
m
avenRepository
url
ros
M
avenRepository
}
}
mavenLocal
()
...
...
@@ -80,23 +93,22 @@ rootProject.subprojects {
/***********************
* Java
***********************/
sourceCompatibility
=
1.
6
targetCompatibility
=
1.
6
sourceCompatibility
=
1.
7
targetCompatibility
=
1.
7
/***********************
* Maven Deployment
***********************/
if
(
ros
.
m
avenDeploymentRepository
!=
'null'
&&
project
.
ros
.
m
avenDeploymentRepository
!=
''
)
{
if
(
ros
M
avenDeploymentRepository
!=
'null'
&&
ros
M
avenDeploymentRepository
!=
''
)
{
publishing
{
publications
{
mavenJava
(
MavenPublication
)
{
from
project
.
components
.
java
from
components
.
java
}
}
repositories
{
maven
{
url
'file://'
+
project
.
ros
.
mavenDeploymentRepository
}
url
'file://'
+
rosMavenDeploymentRepository
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment