Skip to content

Commit 2c6f340

Browse files
authored
Merge pull request #106 from hmcts/chore/use-gradlew
chore: use gradlew in pipeline builds
2 parents 6d0880a + e7e5e72 commit 2c6f340

5 files changed

Lines changed: 257 additions & 9 deletions

File tree

.github/workflows/ci-build-publish.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,12 @@ jobs:
6060
distribution: 'temurin'
6161
java-version: '21'
6262

63-
- name: Set up Gradle
64-
uses: gradle/actions/setup-gradle@v5
65-
with:
66-
gradle-version: current
67-
6863
- name: Gradle Build
6964
env:
7065
ARTEFACT_VERSION: ${{ needs.Artefact-Version.outputs.artefact_version }}
7166
run: |
7267
echo "Building with ARTEFACT_VERSION=$ARTEFACT_VERSION"
73-
gradle build -DARTEFACT_VERSION=$ARTEFACT_VERSION
68+
./gradlew build -DARTEFACT_VERSION=$ARTEFACT_VERSION
7469
7570
- name: Extract repo name
7671
id: repo_vars
@@ -121,7 +116,7 @@ jobs:
121116
122117
echo "Publishing artefact for version: $ARTEFACT_VERSION"
123118
124-
gradle publish \
119+
./gradlew publish \
125120
-DARTEFACT_VERSION=$ARTEFACT_VERSION \
126121
-DGITHUB_REPOSITORY=${{ github.repository }} \
127122
-DGITHUB_ACTOR=${{ github.actor }} \

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ bin/*
33
!bin/run-in-docker.sh
44
.gradle
55
/build/
6-
/gradlew
76
/gradlew.bat
8-
!gradle/wrapper/gradle-wrapper.properties
97
*.class
108
bin/main/application.yaml
119

gradle/dependencies/java-core.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ dependencies {
2020
implementation "org.mapstruct:mapstruct:$mapstructVersion"
2121
annotationProcessor "org.mapstruct:mapstruct-processor:$mapstructVersion"
2222
}
23+
24+
tasks.named('wrapper') {
25+
delete "${projectDir}/gradlew.bat"
26+
}

gradle/wrapper/gradle-wrapper.jar

44.4 KB
Binary file not shown.

gradlew

Lines changed: 251 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)