Skip to content

Commit b3695ef

Browse files
committed
Add license, security, support, and code of conduct sections to README.md
0 parents  commit b3695ef

28 files changed

Lines changed: 1693 additions & 0 deletions

.devcontainer/devcontainer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "Java in Codespaces",
3+
"image": "mcr.microsoft.com/devcontainers/java:25",
4+
"features": {
5+
"ghcr.io/devcontainers/features/java:1": {
6+
"version": "25",
7+
"installMaven": "true"
8+
},
9+
"ghcr.io/devcontainers/features/github-cli:1": {
10+
"version": "2"
11+
},
12+
"ghcr.io/devcontainers/features/common-utils:2": {}
13+
},
14+
"customizations": {
15+
"vscode": {
16+
"extensions": [
17+
"vscjava.vscode-java-pack",
18+
"GitHub.copilot",
19+
"GitHub.vscode-github-actions"
20+
]
21+
}
22+
},
23+
"forwardPorts": [
24+
8080
25+
],
26+
"postCreateCommand": "cd ./sample-app && mvn dependency:resolve --quiet",
27+
"hostRequirements": {
28+
"memory": "4gb",
29+
"cpus": 2
30+
},
31+
"portsAttributes": {
32+
"8080": {
33+
"label": "Weather App",
34+
"onAutoForward": "notify"
35+
}
36+
}
37+
}

.devcontainer/icon.svg

Lines changed: 10 additions & 0 deletions
Loading

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"
12+

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build:
13+
name: Build
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v6
19+
20+
- name: Setup Java
21+
uses: actions/setup-java@v5
22+
with:
23+
distribution: 'temurin'
24+
java-version: '25'
25+
cache: 'maven'
26+
27+
- name: Build
28+
run: mvn verify -f sample-app/pom.xml

.gitignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Compiled class files
2+
*.class
3+
4+
# Log files
5+
*.log
6+
7+
# Package files
8+
*.jar
9+
*.war
10+
*.nar
11+
*.ear
12+
*.zip
13+
*.tar.gz
14+
*.rar
15+
16+
# Build directories
17+
target/
18+
19+
# IDE files
20+
.idea/
21+
*.iml
22+
*.iws
23+
*.ipr
24+
.classpath
25+
.project
26+
.settings/
27+
.factorypath
28+
29+
# VS Code
30+
.vscode/*
31+
!.vscode/settings.json
32+
!.vscode/tasks.json
33+
!.vscode/launch.json
34+
!.vscode/extensions.json
35+
36+
# Maven
37+
.mvn/timing.properties
38+
.mvn/wrapper/maven-wrapper.jar
39+
40+
# OS files
41+
.DS_Store
42+
Thumbs.db
43+
44+
# Environment
45+
.env

.vscode/launch.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"configurations": [
3+
{
4+
"type": "java",
5+
"name": "Debug Java Program",
6+
"request": "launch",
7+
"mainClass": "com.example.app.Application",
8+
"vmArgs": "--add-modules jdk.httpserver",
9+
"classPaths": [
10+
"${workspaceFolder}/sample-app/target/classes"
11+
]
12+
}
13+
]
14+
}

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"java.configuration.updateBuildConfiguration": "automatic"
3+
}

.vscode/tasks.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build",
6+
"type": "shell",
7+
"command": "mvn",
8+
"args": [
9+
"verify",
10+
"-f",
11+
"${workspaceFolder}/sample-app/pom.xml"
12+
],
13+
"problemMatcher": []
14+
},
15+
{
16+
"label": "package",
17+
"type": "shell",
18+
"command": "mvn",
19+
"args": [
20+
"package",
21+
"-DskipTests",
22+
"-f",
23+
"${workspaceFolder}/sample-app/pom.xml"
24+
],
25+
"problemMatcher": []
26+
}
27+
]
28+
}

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @brunoborges

CODE_OF_CONDUCT.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at <opensource@github.com>. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at [http://contributor-covenant.org/version/1/4][version]
72+
73+
[homepage]: http://contributor-covenant.org
74+
[version]: http://contributor-covenant.org/version/1/4/

0 commit comments

Comments
 (0)