Skip to content

Latest commit

 

History

History
103 lines (81 loc) · 2.87 KB

README.md

File metadata and controls

103 lines (81 loc) · 2.87 KB

ES / CQRS Build Status

You will not find anything interesting here ...believe me

build everything

./mvnw

deploy into local target/.m2/repository maven repo

./mvnw -P local-deploy

publish release to github

./mvnw -P create-github-release -pl :es-cqrs

push github maven repository

./mvnw -P github-maven-repository -pl :es-cqrs

using github maven branch as maven repository

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <!-- ... -->
  <repositories>
    <repository>
      <id>daggerok-es-cqrs-github-maven-repo</id>
      <url>https://raw.githubusercontent.com/daggerok/es-cqrs/maven/</url>
      <snapshots>
        <enabled>true</enabled>
        <updatePolicy>always</updatePolicy><!-- rly? attention! -->
      </snapshots>
    </repository>
  </repositories>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>com.github.daggerok.es</groupId>
        <artifactId>es-cqrs</artifactId>
        <version>1.0.5-SNAPSHOT</version>
        <scope>import</scope>
        <type>pom</type>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>com.github.daggerok.es.api</groupId>
      <artifactId>es-cqrs-api</artifactId>
    </dependency>
  </dependencies>
  <!-- ... -->
</project>

prepare release

./mvnw --batch-mode release:clean \
                    release:prepare \
                    release:perform \
                      -DgenerateBackupPoms=false \
                      -DskipTests -Dgroups=!e2e -Darguments="-DskipTests -Dgroups=!e2e"

# if something goes wrong
# ./mvnw release:rollback

update all modules to next SNAPSHOT version manually

./mvnw build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion}-SNAPSHOT

for lazy people

## update current
# bash ./bin/local-deploy.sh ; bash ./bin/create-github-release.sh ; bash ./bin/github-maven-repository.sh

## release new version and update maven release and everything else...
bash ./bin/maven-release-plugin.sh ; bash ./bin/local-deploy.sh ; bash ./bin/create-github-release.sh ; bash ./bin/github-maven-repository.sh

links: