Skip to content

Commit 7a25248

Browse files
authored
Merge pull request #7 from CrissNamon/dev
Added sonatype
2 parents 62f2821 + 4c3734d commit 7a25248

File tree

6 files changed

+139
-2
lines changed

6 files changed

+139
-2
lines changed

CONTRIBUTING.md

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

LEARN.md

Whitespace-only changes.

aide-all/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<version>1.1</version>
1616
</dependency>
1717
</dependencies>
18+
<packaging>pom</packaging>
1819

1920
<modelVersion>4.0.0</modelVersion>
2021

aide-all/src/main/java/tech/hiddenproject/aide/example/Main.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
package tech.hiddenproject.aide.example;
22

3+
import java.lang.invoke.CallSite;
4+
import java.lang.invoke.LambdaMetafactory;
5+
import java.lang.invoke.MethodHandle;
6+
import java.lang.invoke.MethodHandles;
7+
import java.lang.invoke.MethodType;
8+
import java.lang.reflect.Method;
9+
import tech.hiddenproject.aide.example.ReflectionExample.TestClass;
10+
import tech.hiddenproject.aide.reflection.util.ReflectionUtil;
11+
312
/**
413
* @author Danila Rassokhin
514
*/

aide-all/src/main/java/tech/hiddenproject/aide/example/ReflectionExample.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import tech.hiddenproject.aide.reflection.MethodHolder;
1010
import tech.hiddenproject.aide.reflection.WrapperHolder;
1111
import tech.hiddenproject.aide.reflection.annotation.ExactInvoker;
12+
import tech.hiddenproject.aide.reflection.annotation.Invoker;
1213
import tech.hiddenproject.aide.reflection.matcher.ArgumentMatcherHolder;
1314
import tech.hiddenproject.aide.reflection.signature.LambdaMetadata;
1415
import tech.hiddenproject.aide.reflection.signature.MatcherSignature;
@@ -77,7 +78,7 @@ public ReflectionExample() {
7778
// Find constructor of TestClass
7879
Constructor<TestClass> constructorMethod = ReflectionUtil.getConstructor(TestClass.class);
7980
// Wrap constructor
80-
MethodHolder<LambdaWrapper, ReflectionExample, TestClass> constructor =
81+
MethodHolder<LambdaWrapper, Void, TestClass> constructor =
8182
lambdaWrapperHolder.wrapSafe(constructorMethod);
8283
// Call constructor
8384
caller = constructor.invokeStatic();
@@ -125,6 +126,9 @@ public interface TestInterface {
125126

126127
@ExactInvoker
127128
String exact(Object caller, int id);
129+
130+
@Invoker
131+
Object get(Object caller);
128132
}
129133

130134
public static class TestClass {

pom.xml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,40 @@
33
xmlns="http://maven.apache.org/POM/4.0.0"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<artifactId>aide</artifactId>
6-
6+
<profiles>
7+
<profile>
8+
<build>
9+
<plugins>
10+
<plugin>
11+
<artifactId>maven-gpg-plugin</artifactId>
12+
<executions>
13+
<execution>
14+
<goals>
15+
<goal>sign</goal>
16+
</goals>
17+
<id>sign-artifacts</id>
18+
<phase>verify</phase>
19+
</execution>
20+
</executions>
21+
<groupId>org.apache.maven.plugins</groupId>
22+
<version>3.0.1</version>
23+
</plugin>
24+
<plugin>
25+
<artifactId>nexus-staging-maven-plugin</artifactId>
26+
<configuration>
27+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
28+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
29+
<serverId>ossrh</serverId>
30+
</configuration>
31+
<extensions>true</extensions>
32+
<groupId>org.sonatype.plugins</groupId>
33+
<version>1.6.13</version>
34+
</plugin>
35+
</plugins>
36+
</build>
37+
<id>deploy</id>
38+
</profile>
39+
</profiles>
740
<build>
841
<defaultGoal>package</defaultGoal>
942
<plugins>
@@ -145,7 +178,14 @@
145178
<module>aide-optional</module>
146179
<module>aide-all</module>
147180
</modules>
181+
<name>${project.groupId}:${project.artifactId}</name>
148182
<packaging>pom</packaging>
183+
<scm>
184+
<connection>scm:git:git:/github.com/CrissNamon/aide.git</connection>
185+
<developerConnection>scm:git:ssh://github.com:CrissNamon/aide.git</developerConnection>
186+
<url>https://github.com/CrissNamon/aide/tree/main</url>
187+
</scm>
188+
<url>https://github.com/CrissNamon/aide</url>
149189
<properties>
150190
<maven.compiler.source>8</maven.compiler.source>
151191
<maven.compiler.target>8</maven.compiler.target>

0 commit comments

Comments
 (0)