Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased/Snapshot]
### Added
- Added semVer Gradle plugin to enable semantic versioning [#544](https://github.com/ie3-institute/PowerSystemUtils/issues/544)

### Changed
- Added Bao and Staudt to the list of reviewers [#510](https://github.com/ie3-institute/PowerSystemUtils/issues/510)
Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ plugins {
id "org.sonarqube" version "6.1.0.5360" // sonarqube
id "org.scoverage" version "8.1" // scala code coverage scoverage
id "com.github.maiflai.scalatest" version "0.33" // run scalatest without specific spec task
id 'net.thauvin.erik.gradle.semver' version '1.0.4' // semantic versioning
}

ext {
Expand All @@ -21,7 +22,6 @@ ext {
}

group = 'com.github.ie3-institute'
version = '3.0-SNAPSHOT'
description = 'PowerSystemUtils'

java {
Expand All @@ -38,6 +38,7 @@ apply from: scriptsLocation + 'jacoco.gradle' // jacoco java code coverage
apply from: scriptsLocation + 'mavenCentralPublish.gradle'
apply from: scriptsLocation + 'sonarqube.gradle'
apply from: scriptsLocation + 'scoverage.gradle' // scoverage scala code coverage
apply from: scriptsLocation + 'semVer.gradle'

repositories {
mavenCentral()
Expand Down
13 changes: 13 additions & 0 deletions gradle/scripts/semVer.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// tasks for semantic versioning using semver-gradle https://github.com/ethauvin/semver-gradle

tasks.register('currentVersion') {
doFirst {
println semver.semver
}
}

tasks.register('devVersion') {
doFirst {
println "${semver.major}.${semver.minor}-SNAPSHOT"
}
}
7 changes: 7 additions & 0 deletions version.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#Generated by the Semver Plugin for Gradle
version.buildmeta=
version.major=3
version.minor=0
version.patch=0
version.prerelease=
version.semver=3.0.0