Skip to content

Commit 6c84b59

Browse files
authored
Merge pull request #1 from IBM/test
mhub/zh#1915 First release of Eventstreams admin rest SDK for Java.
2 parents 959070a + ce8599d commit 6c84b59

File tree

76 files changed

+8039
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+8039
-0
lines changed

.bumpversion.cfg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[bumpversion]
2+
current_version = 0.0.1
3+
commit = True
4+
message = Update version {current_version} -> {new_version}
5+
6+
[bumpversion:file:README.md]
7+
search = {current_version}
8+
replace = {new_version}
9+

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.enc binary
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Bug report
3+
about: Create a bug report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
List the steps that can be used to demonstrate the bug. Include the name of the service and operation that you're trying to invoke, if applicable. Be sure to describe any relevant info regarding parameter values used with your API invocation.
15+
16+
**Expected behavior**
17+
A clear and concise description of what you expected to happen.
18+
19+
**Screenshots**
20+
If applicable, add screenshots to help explain your problem.
21+
22+
**Must gather (please complete the following information):**
23+
- SDK Version [e.g. 1.2.1]
24+
- Java Version [e.g. openjdk 8]
25+
- Name of service that you're trying to use (if applicable)
26+
- Name of operation that you're trying to invoke (if applicable)
27+
28+
**Additional context**
29+
Add any other context about the problem here.
30+
Were you able to avoid the problem by changing your application code slightly?
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/pull_request_template.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## PR summary
2+
<!-- please include a brief summary of the changes in this PR -->
3+
4+
**Fixes:** <! -- link to issue -->
5+
6+
## PR Checklist
7+
Please make sure that your PR fulfills the following requirements:
8+
- [ ] The commit message follows the [Angular Commit Message Guidelines](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-commit-message-guidelines).
9+
- [ ] Tests for the changes have been added (for bug fixes / features)
10+
- [ ] Docs have been added / updated (for bug fixes / features)
11+
12+
## PR Type
13+
<!-- Please check the one that applies to this PR using "x". -->
14+
- [ ] Bugfix
15+
- [ ] Feature
16+
- [ ] Code style update (formatting, local variables)
17+
- [ ] Refactoring (no functional changes, no api changes)
18+
- [ ] New tests
19+
- [ ] Build/CI related changes
20+
- [ ] Documentation content changes
21+
- [ ] Other (please describe)
22+
23+
## What is the current behavior?
24+
<!-- Please describe the current behavior that you are modifying. -->
25+
26+
## What is the new behavior?
27+
<!-- Please describe the new behavior after your change. -->
28+
29+
## Does this PR introduce a breaking change?
30+
- [ ] Yes
31+
- [ ] No
32+
33+
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
34+
35+
## Other information
36+
<!-- Please add any additional information that would help reviewers evaluate your PR -->

.gitignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Compiled class file
2+
*.class
3+
4+
# Log file
5+
*.log
6+
7+
# BlueJ files
8+
*.ctxt
9+
10+
# Mobile Tools for Java (J2ME)
11+
.mtj.tmp/
12+
13+
# Package Files #
14+
*.jar
15+
*.war
16+
*.nar
17+
*.ear
18+
*.zip
19+
*.tar.gz
20+
*.rar
21+
*.key
22+
23+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
24+
hs_err_pid*
25+
26+
/**/target/
27+
/**/test-output/
28+
.settings/
29+
.classpath
30+
.project
31+
.factorypath
32+
*-apiref.json
33+
34+
.idea
35+
.openapi-generator/
36+
.openapi-generator-ignore
37+
38+
# credentials files
39+
*.env
40+
41+
package-lock.json
42+
43+
# Examples depedency file
44+
/**/dependency-reduced-pom.xml

.releaserc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"debug": true,
3+
"branches": [ "main" ],
4+
"tagFormat": "${version}",
5+
"plugins": [
6+
"@semantic-release/commit-analyzer",
7+
"@semantic-release/release-notes-generator",
8+
"@semantic-release/changelog",
9+
[
10+
"@semantic-release/exec",
11+
{
12+
"prepareCmd": "bump2version --allow-dirty --current-version ${lastRelease.version} --new-version ${nextRelease.version} patch"
13+
}
14+
],
15+
[
16+
"@semantic-release/git",
17+
{
18+
"message": "chore(release): ${nextRelease.version} release notes\n\n${nextRelease.notes}"
19+
}
20+
],
21+
"@semantic-release/github"
22+
]
23+
}

.travis.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
language: java
3+
dist: xenial
4+
5+
jdk:
6+
- openjdk8
7+
8+
notifications:
9+
email: true
10+
11+
branches:
12+
except:
13+
- gh-pages
14+
15+
cache:
16+
directories:
17+
- "$HOME/.m2"
18+
19+
env:
20+
global:
21+
- MVN_ARGS="--settings build/.travis.settings.xml"
22+
23+
stages:
24+
- name: Build-Test
25+
# Uncomment these stages when you're ready to use them.
26+
# - name: Semantic-Release
27+
# if: branch = main AND type = push AND fork = false
28+
# - name: Publish-Release
29+
# if: tag IS present
30+
31+
before_install:
32+
- sudo apt-get update
33+
- env | grep TRAVIS
34+
35+
jobs:
36+
include:
37+
- stage: Build-Test
38+
jdk: openjdk8
39+
install:
40+
- curl -s https://codecov.io/bash > $HOME/codecov-bash.sh && chmod +x $HOME/codecov-bash.sh
41+
script:
42+
- build/setMavenVersion.sh
43+
- mvn verify -fae -DskipITs $MVN_ARGS
44+
after_success:
45+
- build/publishCodeCoverage.sh
46+
47+
# Uncomment these stages when you're ready to use them.
48+
# - stage: Semantic-Release
49+
# install:
50+
# - sudo apt-get install python
51+
# - nvm install 12
52+
# - npm install -g [email protected]
53+
# - pip install --user bump2version
54+
# - npm install @semantic-release/changelog
55+
# - npm install @semantic-release/exec
56+
# - npm install @semantic-release/git
57+
# - npm install @semantic-release/github
58+
# script:
59+
# - npx semantic-release
60+
# after_success:
61+
# - echo "Semantic release has successfully created a new tagged-release"
62+
#
63+
# - stage: Publish-Release
64+
# jdk: openjdk8
65+
# name: Publish-Javadoc
66+
# install: true
67+
# script:
68+
# - build/setMavenVersion.sh
69+
# - mvn clean javadoc:aggregate $MVN_ARGS
70+
# - build/publishJavadoc.sh
71+
# after_success:
72+
# - echo "Javadocs successfully published to gh-pages!"
73+
#
74+
# - jdk: openjdk8
75+
# name: Publish-To-Maven-Central
76+
# install: true
77+
# script:
78+
# - build/setupSigning.sh
79+
# - build/setMavenVersion.sh
80+
# - mvn deploy $MVN_ARGS -DskipTests -P central
81+
# after_success:
82+
# - echo "Maven artifacts successfully published to Maven Central!"

CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and 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 [email protected]. 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 https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Questions
2+
If you are having problems using this SDK or have a question about IBM Cloud services,
3+
please ask a question at
4+
[Stack Overflow](http://stackoverflow.com/questions/ask?tags=ibm-cloud).
5+
6+
# Issues
7+
If you encounter an issue with the project, you are welcome to submit a
8+
[bug report](https://github.com/IBM/eventstreams-java-sdk/issues).
9+
Before that, please search for similar issues. It's possible that someone has already reported the problem.
10+
11+
# General Information
12+
For general guidance on contributing to this project, please see
13+
[this link](https://github.com/IBM/ibm-cloud-sdk-common/blob/main/CONTRIBUTING_java.md)

0 commit comments

Comments
 (0)