Skip to content

Commit 91521cb

Browse files
skrur av jar-module by default, eksplisitt på ved publish kontrakt
1 parent b621b5d commit 91521cb

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/release-kontrakt.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ jobs:
77
build:
88
name: Bygg pull-request
99
runs-on: ubuntu-latest
10-
10+
1111
steps:
1212
- uses: actions/checkout@v2
1313
- uses: actions/setup-java@v2
1414
with:
1515
distribution: 'adopt'
1616
java-version: 16
1717
cache: 'maven'
18-
18+
1919
- name: Publish artifacts
2020
shell: bash
2121
run: |
22-
mvn deploy -e --batch-mode --settings .github/.m2/settings.xml --file pom.xml -am -pl kontrakt -DtrimStackTrace=false -Dchangelist= -Dsha1= -Drevision=$NEW_VERSION -Dfile.encoding=UTF-8 -DdeployAtEnd=true
22+
mvn deploy -e --batch-mode --settings .github/.m2/settings.xml --file pom.xml -am -pl kontrakt -P jar-module -DtrimStackTrace=false -Dchangelist= -Dsha1= -Drevision=$NEW_VERSION -Dfile.encoding=UTF-8 -DdeployAtEnd=true
2323
env:
2424
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
2525
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}

pom.xml

+1-3
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,7 @@
549549
<profile>
550550
<id>jar-module</id>
551551
<activation>
552-
<file>
553-
<exists>${project.build.directory}/${project.artifactId}-jakarta-${project.version}.jar</exists>
554-
</file>
552+
<activeByDefault>false</activeByDefault>
555553
</activation>
556554
<build>
557555
<plugins>

0 commit comments

Comments
 (0)