Skip to content

Commit d9917b6

Browse files
latest build conventions and copyright update
1 parent d032459 commit d9917b6

File tree

64 files changed

+114
-73
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+114
-73
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,21 @@ jobs:
4545
- name: Build
4646
env:
4747
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
48-
run: ./gradlew build coveralls --stacktrace
48+
run: ./gradlew build coveralls
49+
- name: Upload Reports
50+
if: failure()
51+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
52+
with:
53+
name: reports-linux
54+
path: '**/build/reports/**/*.xml'
55+
retention-days: 5
56+
- name: Upload Test Results
57+
if: failure()
58+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
59+
with:
60+
name: test-results-linux
61+
path: '**/build/test-results/**/*.xml'
62+
retention-days: 5
4963
- name: Publish
5064
if: github.event_name == 'push' || github.event.inputs.publish_artifacts == 'true'
5165
env:
@@ -67,7 +81,7 @@ jobs:
6781
run: |
6882
./gradlew -Dgradle.publish.key="$GRADLE_PUBLISH_KEY" -Dgradle.publish.secret="$GRADLE_PUBLISH_SECRET" publishPlugins
6983
70-
# Until Creek fully supports Windows, minimal check:
84+
# Until Creek fully supports Windows, minimal check:
7185
build_windows:
7286
runs-on: windows-latest
7387
steps:
@@ -84,6 +98,20 @@ jobs:
8498
gradle-home-cache-cleanup: true
8599
- name: Build
86100
run: ./gradlew.bat build -PexcludeContainerised
101+
- name: Upload Reports
102+
if: failure()
103+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
104+
with:
105+
name: reports-win
106+
path: '**/build/reports/**/*.xml'
107+
retention-days: 5
108+
- name: Upload Test Results
109+
if: failure()
110+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
111+
with:
112+
name: test-results-win
113+
path: '**/build/test-results/**/*.xml'
114+
retention-days: 5
87115

88116
create-gh-release:
89117
if: startsWith(github.ref, 'refs/tags/') && !endsWith(github.ref, '-alpha')

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 Creek Contributors (https://github.com/creek-service)
2+
* Copyright 2023-2025 Creek Contributors (https://github.com/creek-service)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

buildSrc/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 Creek Contributors (https://github.com/creek-service)
2+
* Copyright 2023-2025 Creek Contributors (https://github.com/creek-service)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

buildSrc/settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 Creek Contributors (https://github.com/creek-service)
2+
* Copyright 2023-2025 Creek Contributors (https://github.com/creek-service)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

buildSrc/src/main/kotlin/creek-common-convention.gradle.kts

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2023 Creek Contributors (https://github.com/creek-service)
2+
* Copyright 2022-2025 Creek Contributors (https://github.com/creek-service)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
2020
* <p>Apply to all java modules, usually excluding the root project in multi-module sets.
2121
*
2222
* <p>Versions:
23+
* - 1.12: XML reporting for spotbugs
2324
* - 1.11: Add explicit checkstyle tool version
2425
* - 1.10: Add ability to exclude containerised tests
2526
* - 1.9: Add `allDeps` task.
@@ -59,7 +60,7 @@ repositories {
5960

6061
dependencies {
6162
spotbugsPlugins("com.h3xstream.findsecbugs:findsecbugs-plugin:1.12.0")
62-
checkstyle("com.puppycrawl.tools:checkstyle:10.12.5")
63+
checkstyle("com.puppycrawl.tools:checkstyle:10.17.0")
6364
}
6465

6566
configurations.all {
@@ -107,15 +108,27 @@ spotbugs {
107108
excludeFilter.set(rootProject.file("config/spotbugs/suppressions.xml"))
108109

109110
tasks.spotbugsMain {
110-
reports.create("html") {
111-
required.set(true)
112-
setStylesheet("fancy-hist.xsl")
111+
reports {
112+
create("html") {
113+
required.set(true)
114+
setStylesheet("fancy-hist.xsl")
115+
}
116+
117+
create("xml") {
118+
required.set(true)
119+
}
113120
}
114121
}
115122
tasks.spotbugsTest {
116-
reports.create("html") {
117-
required.set(true)
118-
setStylesheet("fancy-hist.xsl")
123+
reports {
124+
create("html") {
125+
required.set(true)
126+
setStylesheet("fancy-hist.xsl")
127+
}
128+
129+
create("xml") {
130+
required.set(true)
131+
}
119132
}
120133
}
121134
}

buildSrc/src/main/kotlin/creek-coverage-convention.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2023 Creek Contributors (https://github.com/creek-service)
2+
* Copyright 2022-2025 Creek Contributors (https://github.com/creek-service)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

buildSrc/src/main/kotlin/creek-module-convention.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2023 Creek Contributors (https://github.com/creek-service)
2+
* Copyright 2022-2025 Creek Contributors (https://github.com/creek-service)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

buildSrc/src/main/kotlin/creek-plugin-publishing-convention.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2023 Creek Contributors (https://github.com/creek-service)
2+
* Copyright 2022-2025 Creek Contributors (https://github.com/creek-service)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

buildSrc/src/main/kotlin/creek-publishing-convention.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2023 Creek Contributors (https://github.com/creek-service)
2+
* Copyright 2022-2025 Creek Contributors (https://github.com/creek-service)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

buildSrc/src/main/kotlin/creek-sonatype-publishing-convention.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2023 Creek Contributors (https://github.com/creek-service)
2+
* Copyright 2022-2025 Creek Contributors (https://github.com/creek-service)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)