Examples of ReleaseContext


Examples of com.atlassian.maven.plugins.jgitflow.ReleaseContext

        assertTrue(GitHelper.localBranchExists(flow.git(), flow.getReleaseBranchPrefix() + "1.0"));

        FlowReleaseManager relman = getReleaseManager();

        ReleaseContext ctx = new ReleaseContext(projectRoot);
        ctx.setInteractive(false).setNoTag(true);

        MavenSession session = new MavenSession(getContainer(), new Settings(), localRepository, null, null, null, projectRoot.getAbsolutePath(), new Properties(), new Properties(), null);

        relman.start(ctx, projects, session);

        assertOnRelease(flow, ctx.getDefaultReleaseVersion());

        compareSnapPomFiles(projects);
    }
View Full Code Here

Examples of com.atlassian.maven.plugins.jgitflow.ReleaseContext

        assertTrue(GitHelper.localBranchExists(flow.git(), flow.getReleaseBranchPrefix() + "0.2"));

        FlowReleaseManager relman = getReleaseManager();

        ReleaseContext ctx = new ReleaseContext(projectRoot);
        ctx.setInteractive(false).setNoTag(true);

        MavenSession session = new MavenSession(getContainer(), new Settings(), localRepository, null, null, null, projectRoot.getAbsolutePath(), new Properties(), new Properties(), null);

        relman.start(ctx, projects, session);

        assertOnRelease(flow, ctx.getDefaultReleaseVersion());

        compareSnapPomFiles(projects);
    }
View Full Code Here

Examples of com.atlassian.maven.plugins.jgitflow.ReleaseContext

    {
        String projectName = "internal-differing-snapshot-dependencies";
        List<MavenProject> projects = createReactorProjects("rewrite-for-release", projectName);
        File projectRoot = projects.get(0).getBasedir();

        ReleaseContext ctx = new ReleaseContext(projectRoot);

        ctx.setInteractive(false).setNoTag(true).setAllowSnapshots(true);

        basicReleaseRewriteTest(projectName, ctx);
    }
View Full Code Here

Examples of com.atlassian.maven.plugins.jgitflow.ReleaseContext

    {
        String projectName = "internal-differing-snapshot-extension";
        List<MavenProject> projects = createReactorProjects("rewrite-for-release", projectName);
        File projectRoot = projects.get(0).getBasedir();

        ReleaseContext ctx = new ReleaseContext(projectRoot);

        ctx.setInteractive(false).setNoTag(true).setAllowSnapshots(true);

        basicReleaseRewriteTest(projectName, ctx);
    }
View Full Code Here

Examples of com.atlassian.maven.plugins.jgitflow.ReleaseContext

    {
        String projectName = "internal-differing-snapshot-plugins";
        List<MavenProject> projects = createReactorProjects("rewrite-for-release", projectName);
        File projectRoot = projects.get(0).getBasedir();

        ReleaseContext ctx = new ReleaseContext(projectRoot);

        ctx.setInteractive(false).setNoTag(true).setAllowSnapshots(true);

        basicReleaseRewriteTest(projectName, ctx);
    }
View Full Code Here

Examples of com.atlassian.maven.plugins.jgitflow.ReleaseContext

    {
        String projectName = "internal-differing-snapshot-report-plugins";
        List<MavenProject> projects = createReactorProjects("rewrite-for-release", projectName);
        File projectRoot = projects.get(0).getBasedir();

        ReleaseContext ctx = new ReleaseContext(projectRoot);

        ctx.setInteractive(false).setNoTag(true).setAllowSnapshots(true);

        basicReleaseRewriteTest(projectName, ctx);
    }
View Full Code Here

Examples of com.atlassian.maven.plugins.jgitflow.ReleaseContext

        File projectRoot = projects.get(0).getBasedir();

        InitContext init = new InitContext();
        init.setRelease("superguy/");
       
        ReleaseContext ctx = new ReleaseContext(projectRoot);
       
        ctx.setInteractive(false)
           .setNoTag(true)
           .setAllowSnapshots(true)
            .setFlowInitContext(init)
        .setDefaultReleaseVersion("1.0");
View Full Code Here

Examples of com.atlassian.maven.plugins.jgitflow.ReleaseContext

        assertOnDevelop(flow);

        initialCommitAll(flow);
        FlowReleaseManager relman = getReleaseManager();

        ReleaseContext ctx = new ReleaseContext(projectRoot);
        ctx.setInteractive(false).setNoTag(true);

        MavenSession session = new MavenSession(getContainer(), new Settings(), localRepository, null, null, null, projectRoot.getAbsolutePath(), new Properties(), new Properties(), null);

        relman.start(ctx, projects, session);
View Full Code Here

Examples of com.atlassian.maven.plugins.jgitflow.ReleaseContext

    {
        String projectName = "basic-pom-custom-dev-version";
        List<MavenProject> projects = createReactorProjects("rewrite-for-release", projectName);
        File projectRoot = projects.get(0).getBasedir();

        ReleaseContext ctx = new ReleaseContext(projectRoot);

        ctx.setInteractive(false)
           .setNoTag(true)
           .setAllowSnapshots(true)
           .setDefaultDevelopmentVersion("2.0-SNAPSHOT");

        basicReleaseRewriteTest(projectName, ctx);
View Full Code Here

Examples of com.atlassian.maven.plugins.jgitflow.ReleaseContext

        File projectRoot = projects.get(0).getBasedir();

        JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
        JGitFlow flow = initCommand.setDirectory(git.getRepository().getWorkTree()).call();

        ReleaseContext ctx = new ReleaseContext(projectRoot);

        flow.releaseStart("1.0").call();

        assertEquals(flow.getReleaseBranchPrefix() + "1.0", git.getRepository().getBranch());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.