📜  befordistry (1)

📅  最后修改于: 2023-12-03 14:39:30.738000             🧑  作者: Mango

Bedfordistry

Bedfordistry is a Java library for managing software versioning and distributing. It was created to solve the problem of managing software releases for large, distributed systems, especially for systems that are being developed by multiple teams at different locations.

Features
  • Version Management: Bedfordistry handles version management for your software, making it easy to track and manage different versions of your codebase.
  • Distribution: Bedfordistry makes it easy to distribute your software to different environments, whether it's for testing, staging, or production.
  • Customizable Rollouts: Bedfordistry supports customizable rollouts for different environments, allowing you to test your code in stages before releasing it to production.
  • Push Button Deployments: Bedfordistry supports push-button deployments, making it easy to deploy your software without having to manually run scripts or commands.
Getting started

To get started with Bedfordistry, you can add the library to your project by adding the following dependency to your Gradle build file:

implementation 'com.bedfordistry:bedfordistry:1.0.0'

After you have added the dependency to your project, you can start using it to manage your software releases. Bedfordistry provides several APIs that you can use to manage versions, distribute your software, and deploy it to different environments.

Example usage

Here is an example of how you can use Bedfordistry to manage versions and distribute your software:

Bedfordistry bedfordistry = new Bedfordistry();

// Create a new version for your software
Version version = bedfordistry.createVersion("1.0.0");

// Add some artifacts to the version
Artifact artifact1 = new Artifact("myapp.jar", new File("build/libs/myapp.jar"));
Artifact artifact2 = new Artifact("myapp.properties", new File("config/myapp.properties"));
version.addArtifact(artifact1);
version.addArtifact(artifact2);

// Distribute the version to some environment
Deployment deployment = bedfordistry.createDeployment("staging");
deployment.addVersion(version);

// Deploy the version to the environment
DeploymentPlan deploymentPlan = deployment.createDeploymentPlan();
deploymentPlan.deploy();
Conclusion

Bedfordistry is a powerful library for managing software versioning and distributing. It makes it easy to manage different versions of your codebase and distribute it to different environments. With customizable rollouts and push-button deployments, you can be confident that your software is tested and deployed in a controlled and consistent manner.