diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index c04bdc88..b586d027 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -8,7 +8,7 @@ on:
- krb-*
- KRB-*
release:
- types: [published]
+ types: [ published ]
jobs:
# Build
@@ -74,7 +74,7 @@ jobs:
needs:
- integration-tests
- tests
- if: "startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'"
+ if: "startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main || github.ref == 'refs/heads/KRB-909-rette-feil-med-native-executable'" #debug
steps:
- name: Checkout
diff --git a/pom.xml b/pom.xml
index 83828e83..ed645db6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
17
UTF-8
UTF-8
- 2.15.1.Final
+ 2.16.0.Final
true
3.0.0-M7
3.0.0-M7
@@ -163,6 +163,16 @@
jackson-module-kotlin
2.14.1
+
+ org.bouncycastle
+ bcprov-jdk15on
+ 1.70
+
+
+ org.bouncycastle
+ bcpkix-jdk15on
+ 1.70
+
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index bfd20e57..fdd1c4fd 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -41,3 +41,10 @@
# OIDC Configuration
kravbank.frontend.link=https://anskaffelser.no/kravbank/
#quarkus.hibernate-orm.log.sql=true
+##-------------
+## NATIVE
+##-------------
+#quarkus.native.native-image-xmx=10G
+quarkus.native.additional-build-args=--initialize-at-run-time=org.bouncycastle.jcajce.provider.drbg.DRBG$Default,\
+--initialize-at-run-time=org.bouncycastle.jcajce.provider.drbg.DRBG$NonceAndIV,\
+--trace-object-instantiation=sun.security.provider.NativePRNG