Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private Schema<?> get(final Class<?> cls, final Cache<Class<?>, Schema<?>> cache
* acquire Schema with class.
*
* @param clazz Class
* @return Schema<?>
* @return Schema
*/
public Schema<?> get(final Class<?> clazz) {
return get(clazz, cache);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* @author xiaoyu
*/
@SuppressWarnings("all")
public class DefaultValueUtils {
public final class DefaultValueUtils {

private static final int ZERO = 0;

/**
* return default object.
*
* @param clazz class
* @return Object
* @return Object obj
*/
public static Object getDefaultValue(final Class clazz) throws IllegalAccessException, InvocationTargetException, InstantiationException {
if (boolean.class.equals(clazz) || Boolean.class.equals(clazz)) {
Expand Down
2 changes: 1 addition & 1 deletion myth-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<modules>
<module>myth-spring-boot-starter-dubbo</module>
<module>myth-spring-boot-starter-springcloud</module>
<module>myth-spring-boot-starter-motan</module>
<!-- <module>myth-spring-boot-starter-motan</module>-->
<module>myth-spring-boot-starter-parent</module>
</modules>

Expand Down
135 changes: 86 additions & 49 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<module>myth-common</module>
<module>myth-core</module>
<module>myth-annotation</module>
<module>myth-demo</module>
<!-- <module>myth-demo</module>-->
<module>myth-rpc</module>
<module>myth-mq</module>
<module>myth-admin</module>
Expand All @@ -26,6 +26,11 @@
<version>1.5.9.RELEASE</version>
</parent>

<organization>
<name>dromara</name>
<url>http://www.dromara.org</url>
</organization>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
Expand All @@ -35,8 +40,16 @@
</licenses>
<scm>
<url>https://github.com/yu199195/myth.git</url>
<connection>scm:git:https://github.com/yu199195/myth</connection>
<developerConnection>scm:git:git@github.com:yu199195/myth</developerConnection>
<tag>${project.version}</tag>
</scm>

<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/yu199195/myth/issues</url>
</issueManagement>

<developers>
<developer>
<id>xiaoyu</id>
Expand Down Expand Up @@ -530,52 +543,76 @@
</dependencies>
</dependencyManagement>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<tagNameFormat>v@{project.version}</tagNameFormat>
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.5</version>
</plugin>
</plugins>
</build>

<pluginRepositories>
<pluginRepository>
<id>spring-releases</id>
<url>https://repo.spring.io/libs-release</url>
</pluginRepository>
</pluginRepositories>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.3</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>


<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

</profile>
</profiles>
</project>