pub struct GradleWorkspace { /* private fields */ }Implementations§
Source§impl GradleWorkspace
impl GradleWorkspace
pub fn new( name: Option<String>, version: Option<String>, path: PathBuf, relative_path: PathBuf, ) -> Self
pub fn new_with_publish_tasks( name: Option<String>, version: Option<String>, path: PathBuf, relative_path: PathBuf, has_publish_task: bool, has_publish_to_maven_local_task: bool, ) -> Self
Trait Implementations§
Source§impl Debug for GradleWorkspace
impl Debug for GradleWorkspace
Source§impl Workspace for GradleWorkspace
impl Workspace for GradleWorkspace
fn name(&self) -> Option<&str>
fn version(&self) -> Option<&str>
fn path(&self) -> &Path
fn relative_path(&self) -> &Path
fn is_changed(&self) -> bool
fn set_changed(&mut self, changed: bool)
Source§fn set_name(&mut self, name: String)
fn set_name(&mut self, name: String)
Set the workspace name (used for fallback when name is not found in manifest).
Implementors typically get this via
impl_basic_accessors!().Source§fn update_version<'life0, 'async_trait>(
&'life0 mut self,
update_type: UpdateType,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_version<'life0, 'async_trait>(
&'life0 mut self,
update_type: UpdateType,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Errors Read more
fn language(&self) -> Language
Source§fn default_publish_command(&self) -> String
fn default_publish_command(&self) -> String
Get the default publish command for this workspace type
Source§fn default_dry_run_publish_command(&self) -> Option<String>
fn default_dry_run_publish_command(&self) -> Option<String>
Get the default dry-run publish command for this workspace type. Read more
Source§fn is_publishable_by_default(&self) -> bool
fn is_publishable_by_default(&self) -> bool
Whether this project should be included in publish runs when no
project-path or language command override is configured.
Source§fn is_dry_run_publishable_by_default(&self) -> bool
fn is_dry_run_publishable_by_default(&self) -> bool
Whether this project should be included in dry-run publish runs when no
project-path or language command override is configured.
Source§fn publish<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 Config,
) -> Pin<Box<dyn Future<Output = Result<PublishOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn publish<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 Config,
) -> Pin<Box<dyn Future<Output = Result<PublishOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Publish this project using the configured command or default. Read more
Source§fn dry_run_publish<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 Config,
) -> Pin<Box<dyn Future<Output = Result<Option<PublishOutput>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn dry_run_publish<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 Config,
) -> Pin<Box<dyn Future<Output = Result<Option<PublishOutput>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Run the publish command in dry-run mode to verify the pre-release
flow works without actually publishing. Read more
fn dependencies(&self) -> &HashSet<String>
fn add_dependency(&mut self, dependency: &str)
Source§fn get_publish_command(&self, config: &Config) -> String
fn get_publish_command(&self, config: &Config) -> String
Get the publish command for this project, checking config first. Read more
Source§fn get_dry_run_publish_command(&self, config: &Config) -> Option<String>
fn get_dry_run_publish_command(&self, config: &Config) -> Option<String>
Get the dry-run publish command for this project, checking config
first, then falling back to the project’s
default_dry_run_publish_command. Read moreSource§fn update_workspace_dependencies<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_packages: &'life1 [&'life2 dyn Package],
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: Sync + 'async_trait,
fn update_workspace_dependencies<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_packages: &'life1 [&'life2 dyn Package],
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: Sync + 'async_trait,
Updates workspace-level dependency versions after package versions are bumped. Read more
Auto Trait Implementations§
impl Freeze for GradleWorkspace
impl RefUnwindSafe for GradleWorkspace
impl Send for GradleWorkspace
impl Sync for GradleWorkspace
impl Unpin for GradleWorkspace
impl UnsafeUnpin for GradleWorkspace
impl UnwindSafe for GradleWorkspace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more