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
d4de89be
Commit
d4de89be
authored
11 years ago
by
Daniel Stonier
Browse files
Options
Downloads
Patches
Plain Diff
set default maven repo if variable is empty and bugfix dynamic property warnings.
parent
0d13c155
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
gradle_plugins/src/main/groovy/org/ros/gradle_plugins/RosPlugin.groovy
+16
-3
16 additions, 3 deletions
...s/src/main/groovy/org/ros/gradle_plugins/RosPlugin.groovy
with
16 additions
and
3 deletions
gradle_plugins/src/main/groovy/org/ros/gradle_plugins/RosPlugin.groovy
+
16
−
3
View file @
d4de89be
...
...
@@ -25,10 +25,13 @@ class RosPlugin implements Plugin<Project> {
project
.
apply
(
plugin:
'maven'
)
}
/* Create project.ros.* property extensions */
project
.
extensions
.
create
(
"ros"
,
Ros
Plugin
Extension
)
project
.
extensions
.
create
(
"ros"
,
RosExtension
)
project
.
ros
.
mavenPath
=
"$System.env.ROS_MAVEN_PATH"
.
split
(
':'
)
project
.
ros
.
mavenDeploymentRepository
=
"$System.env.ROS_MAVEN_DEPLOYMENT_REPOSITORY"
project
.
ros
.
mavenRepository
=
"$System.env.ROS_MAVEN_REPOSITORY"
def
mavenRepository
=
"$System.env.ROS_MAVEN_REPOSITORY"
if
(
mavenRepository
!=
'null'
)
{
project
.
ros
.
mavenRepository
=
mavenRepository
}
/*
* Could use some better handling for when this is not defined as it sets
* file://null, but it doesn't seem to hurt the process any
...
...
@@ -49,7 +52,17 @@ class RosPlugin implements Plugin<Project> {
}
}
class
RosPluginExtension
{
/* http://www.gradle.org/docs/nightly/dsl/org.gradle.api.plugins.ExtensionAware.html */
class
RosExtension
{
List
<
String
>
mavenPath
String
mavenDeploymentRepository
String
mavenRepository
String
mavenRepositoryD
RosExtension
()
{
/* Initialising the strings here gets rid of the dynamic property deprecated warnings. */
this
.
mavenDeploymentRepository
=
""
this
.
mavenRepository
=
"https://github.com/rosjava/rosjava_mvn_repo/raw/master"
this
.
mavenRepositoryD
=
"https://github.com/rosjava/rosjava_mvn_repo/raw/master"
}
}
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