Skip to content

Commit 63882ed

Browse files
committed
Fixing project structure
0 parents  commit 63882ed

14 files changed

+1901
-0
lines changed

CONTRIBUTING.md

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# Contributing
2+
3+
When contributing to this repository, please first discuss the change you wish to make via issue,
4+
email, or any other method with the owners of this repository before making a change.
5+
6+
Please note we have a code of conduct, please follow it in all your interactions with the project.
7+
8+
## Pull Request Process
9+
10+
1. Ensure any install or build dependencies are removed before the end of the layer when doing a
11+
build.
12+
2. Update the README.md with details of changes to the interface, this includes new environment
13+
variables, exposed ports, useful file locations and container parameters.
14+
3. Increase the version numbers in any examples files and the README.md to the new version that this
15+
Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/).
16+
4. You may merge the Pull Request in once you have the sign-off of two other developers, or if you
17+
do not have permission to do that, you may request the second reviewer to merge it for you.
18+
19+
## Code of Conduct
20+
21+
### Our Pledge
22+
23+
In the interest of fostering an open and welcoming environment, we as
24+
contributors and maintainers pledge to making participation in our project and
25+
our community a harassment-free experience for everyone, regardless of age, body
26+
size, disability, ethnicity, gender identity and expression, level of experience,
27+
nationality, personal appearance, race, religion, or sexual identity and
28+
orientation.
29+
30+
### Our Standards
31+
32+
Examples of behavior that contributes to creating a positive environment
33+
include:
34+
35+
* Using welcoming and inclusive language
36+
* Being respectful of differing viewpoints and experiences
37+
* Gracefully accepting constructive criticism
38+
* Focusing on what is best for the community
39+
* Showing empathy towards other community members
40+
41+
Examples of unacceptable behavior by participants include:
42+
43+
* The use of sexualized language or imagery and unwelcome sexual attention or
44+
advances
45+
* Trolling, insulting/derogatory comments, and personal or political attacks
46+
* Public or private harassment
47+
* Publishing others' private information, such as a physical or electronic
48+
address, without explicit permission
49+
* Other conduct which could reasonably be considered inappropriate in a
50+
professional setting
51+
52+
### Our Responsibilities
53+
54+
Project maintainers are responsible for clarifying the standards of acceptable
55+
behavior and are expected to take appropriate and fair corrective action in
56+
response to any instances of unacceptable behavior.
57+
58+
Project maintainers have the right and responsibility to remove, edit, or
59+
reject comments, commits, code, wiki edits, issues, and other contributions
60+
that are not aligned to this Code of Conduct, or to ban temporarily or
61+
permanently any contributor for other behaviors that they deem inappropriate,
62+
threatening, offensive, or harmful.
63+
64+
### Scope
65+
66+
This Code of Conduct applies both within project spaces and in public spaces
67+
when an individual is representing the project or its community. Examples of
68+
representing a project or community include using an official project e-mail
69+
address, posting via an official social media account, or acting as an appointed
70+
representative at an online or offline event. Representation of a project may be
71+
further defined and clarified by project maintainers.
72+
73+
### Enforcement
74+
75+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
76+
reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
77+
complaints will be reviewed and investigated and will result in a response that
78+
is deemed necessary and appropriate to the circumstances. The project team is
79+
obligated to maintain confidentiality with regard to the reporter of an incident.
80+
Further details of specific enforcement policies may be posted separately.
81+
82+
Project maintainers who do not follow or enforce the Code of Conduct in good
83+
faith may face temporary or permanent repercussions as determined by other
84+
members of the project's leadership.
85+
86+
### Attribution
87+
88+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
89+
available at [http://contributor-covenant.org/version/1/4][version]
90+
91+
[homepage]: http://contributor-covenant.org
92+
[version]: http://contributor-covenant.org/version/1/4/

README.md

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# com.twelfthmile.yuga.Yuga
2+
3+
Parses text for any date format and returns the date object. No need to know format type.
4+
5+
## Getting Started
6+
7+
Its the simplest API, just pass the text, we will return the Date object.
8+
9+
### Prerequisites
10+
11+
None. You can call it from anything which runs Java.
12+
13+
14+
### Usage
15+
16+
```
17+
Response response = com.twelfthmile.yuga.Yuga.parse("Friday, 22nd September 4:30 PM");
18+
Date date = response.getDate();
19+
```
20+
21+
## Built With
22+
23+
* [java](https://www.oracle.com/in/java/index.html) - Java
24+
25+
## Contributing
26+
27+
Please read [CONTRIBUTING.md](https://gist.github.com/johnjoseph/b6aeea8ff859964ac325896bf9eeb2c7) for details on our code of conduct, and the process for submitting pull requests to us.
28+
29+
## Versioning
30+
31+
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).
32+
33+
## Authors
34+
35+
* [John Joseph](https://github.com/johnjoseph)
36+
* [Glen Martin](https://github.com/glenkalarikkal)
37+
38+
See also the list of [contributors](https://github.com/messai-engineering/contributors) who participated in this project.
39+
40+
## License
41+
42+
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
43+
44+
## Acknowledgments
45+
46+
This project owes thanks to few good people. You know who you are.
47+
We love you.

build.gradle

+105
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
2+
buildscript {
3+
repositories {
4+
mavenLocal()
5+
mavenCentral()
6+
jcenter()
7+
}
8+
}
9+
10+
plugins {
11+
id "com.jfrog.bintray" version "1.7.3"
12+
id "maven-publish"
13+
id "java"
14+
}
15+
repositories {
16+
mavenLocal()
17+
mavenCentral()
18+
jcenter()
19+
}
20+
21+
task sourcesJar(type: Jar, dependsOn: classes) {
22+
classifier = 'sources'
23+
from sourceSets.main.allSource
24+
}
25+
26+
//javadoc.failOnError = false
27+
//task javadocJar(type: Jar, dependsOn: javadoc) {
28+
// classifier = 'javadoc'
29+
// from javadoc.destinationDir
30+
//}
31+
32+
artifacts {
33+
archives sourcesJar
34+
// archives javadocJar
35+
}
36+
37+
def pomConfig = {
38+
licenses {
39+
license {
40+
name "The Apache Software License, Version 2.0"
41+
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
42+
distribution "repo"
43+
}
44+
}
45+
developers {
46+
developer {
47+
id "glenkalarikkal"
48+
name "Glen Martin"
49+
50+
}
51+
}
52+
53+
scm {
54+
url "https://github.com/messai-engineering/Yuga"
55+
}
56+
}
57+
58+
publishing {
59+
publications {
60+
mavenPublication(MavenPublication) {
61+
from components.java
62+
artifact sourcesJar{
63+
classifier "sources"
64+
}
65+
groupId 'in.messai'
66+
artifactId 'yuga'
67+
version '1.0.1'
68+
pom.withXml {
69+
def root = asNode()
70+
root.appendNode('description', 'Parses text for any date format and returns the date object. No need to know format type.')
71+
root.appendNode('name', 'yuga')
72+
root.appendNode('url', 'https://github.com/messai-engineering/Yuga')
73+
root.children().last() + pomConfig
74+
}
75+
}
76+
}
77+
}
78+
79+
bintray {
80+
user = System.getProperty('bintray.user')
81+
key = System.getProperty('bintray.key')
82+
publications = ['mavenPublication']
83+
84+
filesSpec {
85+
from 'build/libs/'
86+
into '.'
87+
}
88+
89+
pkg {
90+
repo = 'yuga'
91+
name = 'yuga'
92+
userOrg = 'messai'
93+
licenses = ['Apache-2.0']
94+
vcsUrl = 'https://github.com/messai-engineering/Yuga.git'
95+
version {
96+
name = '1.0.1'
97+
desc = '1.0.1'
98+
released = new Date()
99+
}
100+
}
101+
102+
}
103+
104+
version = '1.0.1'
105+

settings.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rootProject.name = 'yuga'
2+

0 commit comments

Comments
 (0)