Skip to content

Commit 1449e5d

Browse files
committed
Initail commit
0 parents  commit 1449e5d

13 files changed

+1066
-0
lines changed

.editorconfig

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Windows-style newlines with a newline ending every file
5+
[**]
6+
end_of_line = lf
7+
insert_final_newline = true
8+
9+
# 4 space indentation
10+
[**.java]
11+
charset = utf-8
12+
indent_style = space
13+
indent_size = 4
14+
trim_trailing_whitespace=true
15+
16+
# 4 space indentation
17+
[**.jsx]
18+
charset = utf-8
19+
indent_style = space
20+
indent_size = 2
21+
trim_trailing_whitespace=true
22+
23+
[pom.xml]
24+
charset = utf-8
25+
indent_style = space
26+
indent_size = 4

.github/.m2/settings.xml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version='1.0' encoding='UTF-8' ?>
2+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
5+
http://maven.apache.org/xsd/settings-1.0.0.xsd">
6+
7+
<activeProfiles>
8+
<activeProfile>github</activeProfile>
9+
</activeProfiles>
10+
11+
<profiles>
12+
<profile>
13+
<id>github</id>
14+
<repositories>
15+
<repository>
16+
<id>central</id>
17+
<url>https://repo1.maven.org/maven2</url>
18+
<releases>
19+
<enabled>true</enabled>
20+
</releases>
21+
<snapshots>
22+
<enabled>true</enabled>
23+
</snapshots>
24+
</repository>
25+
<repository>
26+
<id>github</id>
27+
<name>GitHub Apache Maven Packages</name>
28+
<url>https://maven.pkg.github.com/navikt/fp-bom/</url>
29+
</repository>
30+
</repositories>
31+
</profile>
32+
</profiles>
33+
34+
35+
<servers>
36+
<server>
37+
<id>github</id>
38+
<username>x-access-token</username>
39+
<password>${env.GITHUB_TOKEN}</password>
40+
</server>
41+
</servers>
42+
</settings>

.github/dependabot.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: 2
2+
registries:
3+
fp-felles: # Gir tilgang til registre innad i nav med fp-felles som inngang (PATen bestemmer)
4+
type: maven-repository
5+
url: https://maven.pkg.github.com/navikt/fp-bom
6+
username: x-access-token
7+
password: ${{ secrets.PAT }}
8+
9+
updates:
10+
- package-ecosystem: github-actions
11+
directory: "/"
12+
schedule:
13+
interval: daily
14+
open-pull-requests-limit: 10
15+
- package-ecosystem: maven
16+
directory: "/"
17+
registries:
18+
- fp-bom
19+
schedule:
20+
interval: daily
21+
open-pull-requests-limit: 20

.github/release-drafter.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name-template: $NEXT_PATCH_VERSION
2+
tag-template: $NEXT_PATCH_VERSION
3+
change-template: '- $TITLE (#$NUMBER) @$AUTHOR'
4+
categories:
5+
- title: '🚀 Features'
6+
labels:
7+
- 'feature'
8+
- 'enhancement'
9+
- title: '⚠️ Breaking Changes'
10+
labels:
11+
- 'breaking'
12+
- title: '🐛 Bug Fixes'
13+
labels:
14+
- 'fix'
15+
- 'bugfix'
16+
- 'bug'
17+
- title: '🧰 Maintenance'
18+
labels:
19+
- 'chore'
20+
- title: '⬆️ Dependency upgrades'
21+
labels:
22+
- 'bump'
23+
- 'dependencies'
24+
exclude-labels:
25+
- 'skip-changelog'
26+
template: |
27+
## What's Changed
28+
$CHANGES

.github/workflows/build-pr.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Bygg pull request
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
paths-ignore:
8+
- '**.md'
9+
- '**.MD'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Build
17+
run: |
18+
echo "Verifying"
19+
mvn verify -e --batch-mode --settings .github/.m2/settings.xml
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Bygg og deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master # Push events on master branch
7+
paths-ignore:
8+
- '**.md'
9+
- '**.MD'
10+
- '.gitignore'
11+
- 'LICENCE'
12+
- 'CODEOWNERS'
13+
- 'dev/**'
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
fetch-depth: "0"
22+
23+
- name: Bygg
24+
shell: bash
25+
run: |
26+
mvn verify -e --batch-mode --settings .github/.m2/settings.xml -DtrimStackTrace=false
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
30+
- name: Release Drafter
31+
uses: release-drafter/release-drafter@v5
32+
if: success()
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish release
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish-release:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout latest code
12+
uses: actions/checkout@v3
13+
with:
14+
ref: 'master'
15+
16+
- name: Publish artifact
17+
env:
18+
NEW_VERSION: ${{ github.event.release.tag_name }}
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
run: |
21+
mvn -B --settings .github/.m2/settings.xml versions:set -DnewVersion=${NEW_VERSION}
22+
mvn -B --settings .github/.m2/settings.xml clean deploy

.gitignore

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
secrets.env
2+
.settings
3+
.wtpmodules
4+
target
5+
.project
6+
.classpath
7+
outdated-dependencies.txt
8+
bin
9+
*.iml
10+
.idea
11+
_*.sh
12+
*.local
13+
*.localz
14+
es.properties
15+
es-local.properties
16+
es.properties.backup
17+
*.zip
18+
*.versionsBackup
19+
*.log
20+
*.db
21+
mqjms.log*
22+
maven-eclipse.xml
23+
.externalToolBuilders
24+
dep.txt
25+
/docs/asciidoc/index.html
26+
.eslint-loader-cache
27+
.mvn/maven.config
28+
.mvn/jvm.config
29+
.flattened*
30+
.flattened
31+
*.patch
32+
/.mvn/
33+
target/
34+
vl-foreldrepenger/logback.xml
35+
keystore.jks
36+
truststore.jts
37+
truststore.jks
38+
.DS_Store
39+
.env
40+
.factorypath
41+

CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @navikt/teamforeldrepenger

LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2022 NAV (Arbeids- og velferdsdirektoratet) - The Norwegian Labour and Welfare Administration
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# fp-bom
2+
3+
Inneholder en felles Bill of Material (BOM) som brukes av alle biblioteker/applikasjoner laget av #teamforeldrepenger.

fp-bom.iml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_17">
4+
<output url="file://$MODULE_DIR$/target/classes" />
5+
<output-test url="file://$MODULE_DIR$/target/test-classes" />
6+
<content url="file://$MODULE_DIR$">
7+
<excludeFolder url="file://$MODULE_DIR$/target" />
8+
</content>
9+
<orderEntry type="inheritedJdk" />
10+
<orderEntry type="sourceFolder" forTests="false" />
11+
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.36" level="project" />
12+
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.4.3.Final" level="project" />
13+
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.11" level="project" />
14+
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.11" level="project" />
15+
<orderEntry type="library" scope="RUNTIME" name="Maven: org.slf4j:jcl-over-slf4j:1.7.36" level="project" />
16+
<orderEntry type="library" scope="RUNTIME" name="Maven: org.slf4j:jul-to-slf4j:1.7.36" level="project" />
17+
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-engine:5.8.2" level="project" />
18+
<orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-engine:1.8.2" level="project" />
19+
<orderEntry type="library" scope="TEST" name="Maven: org.apiguardian:apiguardian-api:1.1.2" level="project" />
20+
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-api:5.8.2" level="project" />
21+
<orderEntry type="library" scope="TEST" name="Maven: org.opentest4j:opentest4j:1.2.0" level="project" />
22+
<orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-commons:1.8.2" level="project" />
23+
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-params:5.8.2" level="project" />
24+
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-junit-jupiter:4.4.0" level="project" />
25+
<orderEntry type="library" scope="TEST" name="Maven: org.assertj:assertj-core:3.22.0" level="project" />
26+
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-core:4.4.0" level="project" />
27+
<orderEntry type="library" scope="TEST" name="Maven: net.bytebuddy:byte-buddy:1.12.8" level="project" />
28+
<orderEntry type="library" scope="TEST" name="Maven: net.bytebuddy:byte-buddy-agent:1.12.8" level="project" />
29+
<orderEntry type="library" scope="TEST" name="Maven: org.objenesis:objenesis:3.2" level="project" />
30+
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-inline:4.4.0" level="project" />
31+
</component>
32+
</module>

0 commit comments

Comments
 (0)