Skip to content

Commit

Permalink
Add jgitver
Browse files Browse the repository at this point in the history
  • Loading branch information
ak-git committed Oct 3, 2024
1 parent 3a6006b commit 5e7eeab
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Simple Micronaut Application with Gradle and Docker support

## Run using Gradle

```shell
./gradlew run -t
```

## [Semantic versioning](https://zoltanaltfatter.com/2020/04/10/semantic-versioning-with-jgitver/)

### Plugin [fr.brouillard.oss.gradle.jgitver](https://github.com/jgitver/gradle-jgitver-plugin)

```shell
./gradlew version
```

```shell
./gradlew version | grep Version | awk '{ print $2 }'
```

### Update version and add git tag

```shell
git tag 2024.11.1
```

## Update dependencies

### Plugin [com.github.ben-manes.versions](https://github.com/ben-manes/gradle-versions-plugin)
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ plugins {
alias(libs.plugins.nebula.lint)
alias(libs.plugins.sonarqube)
alias(libs.plugins.jacocolog)
alias(libs.plugins.jgitver)
}

spotbugs {
Expand All @@ -24,8 +25,8 @@ tasks.spotbugsMain {

sonar {
properties {
property 'sonar.projectKey', 'ak-git_Micronaut'
property 'sonar.organization', 'ak-git'
property 'sonar.projectKey', property('sonar.projectKey')
property 'sonar.organization', property('sonar.organization')
property 'sonar.host.url', 'https://sonarcloud.io'
property 'sonar.branch.name', 'master'
property 'sonar.coverage.jacoco.xmlReportPaths', 'build/reports/jacoco/jacocoAggregatedReport/jacocoAggregatedReport.xml'
Expand All @@ -34,7 +35,6 @@ sonar {

allprojects {
group = 'com.ak'
version = '2024.09.26'
apply plugin: 'idea'
apply plugin: 'jacoco'
apply plugin: 'org.barfuin.gradle.jacocolog'
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryEr
org.gradle.caching=true
org.gradle.parallel=true
dependency.analysis.print.build.health=true
sonar.projectKey=ak-git_Micronaut
sonar.organization=ak-git
micronautVersion=4.6.2
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ jacocolog = '3.1.0'
spotbugs = '6.0.24'
ben-manes-versions = '0.51.0'
nebula-lint = '20.0.0'
jgitver = '0.10.0-rc03'

jspecify = '1.0.0'
junit = '5.11.1'
Expand All @@ -20,6 +21,7 @@ jacocolog = { id = 'org.barfuin.gradle.jacocolog', version.ref = 'jacocolog' }
spotbugs = { id = 'com.github.spotbugs', version.ref = 'spotbugs' }
ben-manes-versions = { id = 'com.github.ben-manes.versions', version.ref = 'ben-manes-versions' }
nebula-lint = { id = 'nebula.lint', version.ref = 'nebula-lint' }
jgitver = { id = 'fr.brouillard.oss.gradle.jgitver', version.ref = 'jgitver' }

johnrengelman-shadow = { id = 'com.github.johnrengelman.shadow', version.ref = 'johnrengelman-shadow' }
micronaut-application = { id = 'io.micronaut.minimal.application', version.ref = 'io-micronaut' }
Expand Down

0 comments on commit 5e7eeab

Please sign in to comment.