Skip to content

Commit 4d15d9d

Browse files
author
AlexRogalskiy
committed
Added info on workflows
Updates on github-actions
1 parent b2e61e8 commit 4d15d9d

File tree

5 files changed

+79
-7
lines changed

5 files changed

+79
-7
lines changed

.insights.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
.projectsOnly: &projectsOnly
2+
projects:
3+
only:
4+
- appflow
5+
- testflow
6+
7+
bugsCharts:
8+
title: "Charts for bugs"
9+
charts:
10+
- title: "Monthly bugs created"
11+
description: "Open bugs created per month"
12+
type: bar
13+
<<: *projectsOnly
14+
query:
15+
issuable_type: issue
16+
issuable_state: opened
17+
filter_labels:
18+
- bug
19+
group_by: month
20+
period_limit: 24
21+
22+
- title: "Weekly bugs by severity"
23+
type: stacked-bar
24+
<<: *projectsOnly
25+
query:
26+
issuable_type: issue
27+
issuable_state: opened
28+
filter_labels:
29+
- bug
30+
collection_labels:
31+
- S1
32+
- S2
33+
- S3
34+
- S4
35+
group_by: week
36+
period_limit: 104
37+
38+
- title: "Monthly bugs by team"
39+
type: line
40+
<<: *projectsOnly
41+
query:
42+
issuable_type: merge_request
43+
issuable_state: opened
44+
filter_labels:
45+
- bug
46+
collection_labels:
47+
- Manage
48+
- Plan
49+
- Create
50+
group_by: month
51+
period_limit: 24

build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import com.vanniktech.dependency.graph.generator.DependencyGraphGeneratorExtension
22
import org.springframework.boot.gradle.plugin.SpringBootPlugin
33

4-
import java.time.Instant
5-
64
plugins {
75
id "com.github.ben-manes.versions"
86
id "com.github.johnrengelman.shadow"
97
id "com.github.kt3k.coveralls" version "$coveralls_version"
10-
id"com.adarshr.test-logger" version "$test_logger_version"
8+
id "com.adarshr.test-logger" version "$test_logger_version"
119
id "com.diffplug.spotless" version "$spotless_version"
1210
id "io.franzbecker.gradle-lombok" version "$gradle_lombok_version"
1311
id "info.solidsoft.pitest" version "$pitest_version"
12+
id 'net.nemerosa.versioning' version "$nemerosa_versioning"
1413
id "org.springframework.boot" version "$spring_boot_version" apply false
1514
// id "com.gorylenko.gradle-git-properties" version "2.2.4"
1615

@@ -271,12 +270,13 @@ subprojects {
271270

272271
manifest {
273272
attributes("Automatic-Module-Name": projectConfig.module)
274-
attributes("Built-By": "Robert Winkler")
275-
attributes("Build-Date": Instant.now().toString())
276273
attributes("Build-Date": project.buildDate)
277274
attributes("Build-Time": project.buildTime)
278-
attributes("Specification-Title": projectConfig.module)
279-
attributes("Specification-Version": project.version)
275+
attributes("Build-With": project.buildWith)
276+
attributes("Build-OS": project.buildOs)
277+
//attributes("Build-Revision": project.buildVersion)
278+
attributes("Specification-Title": project.specTitle)
279+
attributes("Specification-Version": project.specVersion)
280280
attributes("Implementation-URL": projectConfig.url)
281281
attributes("Implementation-Title": projectConfig.module)
282282
attributes("Implementation-Version": project.version)

buildSrc/src/main/groovy/dependencies.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import java.text.SimpleDateFormat
33
ext.projectConfig = [
44
"group" : 'io.nullables.api.sample',
55
"version" : '1.0.0-SNAPSHOT',
6+
"title" : "java-samples",
67
"module" : "gradle-java-sample",
78
"description" : "Gradle java sample project",
89
"url" : "https://github.com/AlexRogalskiy/gradle-java-sample",
@@ -92,9 +93,22 @@ ext {
9293
final Date buildTimeAndDate = new Date()
9394
buildDate = new SimpleDateFormat('yyyy-MM-dd').format(buildTimeAndDate)
9495
buildTime = new SimpleDateFormat('HH:mm:ss.SSSZ').format(buildTimeAndDate)
96+
// String.format("%tFT%<tRZ", Calendar.getInstance(TimeZone.getTimeZone("Z")))
97+
// buildVersion = versioning.info.commit
98+
buildWith = "gradle-${project.getGradle().getGradleVersion()}, groovy-${GroovySystem.getVersion()}"
99+
buildOs = "${System.properties['os.name']} ${System.properties['os.arch']} ${System.properties['os.version']}"
100+
101+
githubUrl = "https://github.com/AlexRogalskiy/${project.name}"
102+
issuesUrl = "${project.githubUrl}/issues"
103+
vcsUrl = "${project.githubUrl}.git"
104+
vcsConnection = "scm:git:git://github.com/AlexRogalskiy/${project.name}.git"
105+
106+
specTitle = "${projectConfig.title}"
107+
specVersion = "${projectConfig.version.substring(0, projectConfig.version.lastIndexOf('-'))}"
95108

96109
generatedSourcesDir = file("${buildDir}/generated/sources")
97110
generatedSourcesJavaDir = file("${project.generatedSourcesDir}/main/java")
111+
generatedSourcesKotlinDir = file("${project.generatedSourcesDir}/main/kotlin")
98112

99113
excludeJunit = { exclude group: 'junit', module: 'junit' }
100114
excludeChecker = { exclude group: 'edu.washington.cs.types.checker', module: 'checker-framework' }

buildSrc/src/main/groovy/publication.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ afterEvaluate {
3838
}
3939
}
4040
}
41+
42+
versionMapping {
43+
usage('java-runtime') {
44+
fromResolutionResult()
45+
}
46+
}
4147
}
4248
}
4349

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ pitest_version=1.5.2
6363
coveralls_version=2.10.2
6464
test_logger_version=2.1.1
6565
spotless_version=5.9.0
66+
nemerosa_versioning=2.14.0
6667
gradle_lombok_version=4.0.0
6768
spring_boot_version=2.3.6.RELEASE
6869
spring_cloud_version=Hoxton.SR9

0 commit comments

Comments
 (0)