...
Vi ska i största mån försöka hantera versionnummer enligt nedan:
Givet ett versionnummer MAJOR.MINOR.PATCH[ -RCX | -SNAPSHOT]:
- MAJOR version, öka vid inkompatibla ändringar av API eller stora genomgripande förändringar ,
- MINOR version, öka vid bakåtkompatibla förändringar
- PATCH version, öka vid en patch- ellel bugfix.
- -RCX, används för releasekanditad där X är ett löpnummer. Ex. Relasekanditat 1=>-RC1.
- -SNAPSHOT, används för utvecklingsversioner.
Konfigurering av pom för releasehantering
För att skapa releaser används Maven och Mavens release-plugin. Kontrollera att följande kod finns i rot-pom'en.
...
Kodblock | ||
---|---|---|
| ||
<mirrors>
<!-- Mirror används för att hämta dependencies via Inera Nexus -->
<mirror>
<id>Inera Nexus</id>
<name>Inera Nexus Public Mirror</name>
<url>https://nexus.inera.se/repository/maven-public/</url>
<mirrorOf>*,!grails</mirrorOf>
</mirror>
</mirrors>
<profiles>
<profile>
<id>skltp</id>
<properties>
<!-- Ställer om URL för snapshots och release i distributionManagement i pom.xml, pom.xml måste använda dessa för att det ska fungera -->
<releases-nexus-url>https://nexus.inera.se/repository/SKLTP-Releases/</releases-nexus-url>
<snapshot-nexus-url>https://nexus.inera.se/repository/SKLTP-Snapshots/</snapshot-nexus-url>
</properties>
</profile>
</profiles>
<servers>
<!-- Release Repot på Inera Nexus, exakt repo pekas ut av profilen -->
<server>
<id>release-nexus</id>
<username>xxxxxxxxx</username>
<password>pppppppppp</password>
</server>
<!-- Snapshot Repot på Inera Nexus, exakt repo pekas ut av profilen -->
<server>
<id>snapshot-nexus</id>
<username>xxxxxxxxx</username>
<password>pppppppppp</password>
</server>
</servers>
<activeProfiles>
<activeProfile>skltp</activeProfile>
</activeProfiles> |
Bygga release
Se Skapa release (generell instruktion) och Skapa release med Jenkins
...