Skip to content

Commit 4695b5c

Browse files
committed
Add project conventions and set archives to be reproducible.
1 parent 2f75b95 commit 4695b5c

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

build.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ plugins {
55
alias(libs.plugins.sonarqube)
66
}
77

8-
val rootJacocoDir by extra("${rootProject.buildDir}/reports/jacoco/testCodeCoverageReport")
9-
val reportXmlFile by extra("$rootJacocoDir/testCodeCoverageReport.xml")
8+
allprojects {
9+
apply(plugin = "com.mattbertolini.buildlogic.project-conventions")
1010

11-
subprojects {
1211
group = "com.mattbertolini"
1312
version = "0.6.0-SNAPSHOT"
1413
}
1514

15+
val rootJacocoDir by extra("${rootProject.buildDir}/reports/jacoco/testCodeCoverageReport")
16+
val reportXmlFile by extra("$rootJacocoDir/testCodeCoverageReport.xml")
17+
1618
reporting {
1719
reports {
1820
val testCodeCoverageReport by getting(JacocoCoverageReport::class) {
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.mattbertolini.buildlogic
2+
3+
// Configuring archive tasks to have repeatable builds
4+
tasks.withType<AbstractArchiveTask>().configureEach {
5+
isReproducibleFileOrder = true
6+
isPreserveFileTimestamps = false
7+
}

0 commit comments

Comments
 (0)