Skip to content

Commit 91f8127

Browse files
CSAppUtil refactored
1 parent c96d5ed commit 91f8127

File tree

3 files changed

+110
-94
lines changed

3 files changed

+110
-94
lines changed

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Contentstack-java.iml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<module type="JAVA_MODULE" version="4">
3-
<component name="NewModuleRootManager" inherit-compiler-output="true">
4-
<exclude-output />
2+
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
4+
<output url="file://$MODULE_DIR$/target/classes" />
5+
<output-test url="file://$MODULE_DIR$/target/test-classes" />
56
<content url="file://$MODULE_DIR$">
6-
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8+
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
9+
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
10+
<excludeFolder url="file://$MODULE_DIR$/target" />
711
</content>
812
<orderEntry type="inheritedJdk" />
913
<orderEntry type="sourceFolder" forTests="false" />
10-
<orderEntry type="library" name="contentstack-java" level="project" />
11-
<orderEntry type="library" name="test-lib" level="project" />
14+
<orderEntry type="library" exported="" name="org.json:json:20131018" level="project" />
15+
<orderEntry type="library" exported="" name="junit:junit:4.12" level="project" />
16+
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
17+
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
18+
<orderEntry type="library" name="Maven: org.json:json:20131018" level="project" />
1219
</component>
1320
</module>

pom.xml

Lines changed: 96 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,20 @@
66
<modelVersion>4.0.0</modelVersion>
77
<groupId>com.contentstack.sdk</groupId>
88
<artifactId>java</artifactId>
9-
<version>1.2.0</version>
9+
<version>1.0.2</version>
10+
<build>
11+
<plugins>
12+
<plugin>
13+
<groupId>org.apache.maven.plugins</groupId>
14+
<artifactId>maven-compiler-plugin</artifactId>
15+
<version>2.3.2</version>
16+
<configuration>
17+
<source>8</source>
18+
<target>8</target>
19+
</configuration>
20+
</plugin>
21+
</plugins>
22+
</build>
1023
<packaging>jar</packaging>
1124

1225

@@ -31,7 +44,7 @@
3144

3245
<developers>
3346
<developer>
34-
<name>contentstack-java</name>
47+
<name>contentstack</name>
3548
<email>mobile@contentstack.com</email>
3649
<organization>contentstack</organization>
3750
<organizationUrl>https://www.contentstack.com/</organizationUrl>
@@ -70,91 +83,87 @@
7083
</properties>
7184

7285

73-
74-
<build>
75-
<pluginManagement>
76-
<plugins>
77-
78-
<plugin>
79-
<groupId>org.apache.maven.plugins</groupId>
80-
<artifactId>maven-compiler-plugin</artifactId>
81-
<configuration>
82-
<source>1.8</source>
83-
<target>1.8</target>
84-
</configuration>
85-
</plugin>
86-
87-
<plugin>
88-
<groupId>org.apache.maven.plugins</groupId>
89-
<artifactId>maven-source-plugin</artifactId>
90-
<version>2.2.1</version>
91-
<executions>
92-
<execution>
93-
<id>attach-sources</id>
94-
<goals>
95-
<goal>jar-no-fork</goal>
96-
</goals>
97-
</execution>
98-
</executions>
99-
</plugin>
100-
101-
<plugin>
102-
<groupId>org.apache.maven.plugins</groupId>
103-
<artifactId>maven-javadoc-plugin</artifactId>
104-
<version>2.9.1</version>
105-
<executions>
106-
<execution>
107-
<id>attach-javadocs</id>
108-
<goals>
109-
<goal>jar</goal>
110-
</goals>
111-
</execution>
112-
</executions>
113-
</plugin>
114-
115-
<plugin>
116-
<groupId>org.apache.maven.plugins</groupId>
117-
<artifactId>maven-gpg-plugin</artifactId>
118-
<version>1.5</version>
119-
<executions>
120-
<execution>
121-
<id>sign-artifacts</id>
122-
<phase>verify</phase>
123-
<goals>
124-
<goal>sign</goal>
125-
</goals>
126-
</execution>
127-
</executions>
128-
</plugin>
129-
130-
<plugin>
131-
<groupId>org.apache.maven.plugins</groupId>
132-
<artifactId>maven-release-plugin</artifactId>
133-
<version>2.5.3</version>
134-
<configuration>
135-
<autoVersionSubmodules>true</autoVersionSubmodules>
136-
<useReleaseProfile>false</useReleaseProfile>
137-
<releaseProfiles>release</releaseProfiles>
138-
<goals>deploy</goals>
139-
</configuration>
140-
</plugin>
141-
142-
<plugin>
143-
<groupId>org.sonatype.plugins</groupId>
144-
<artifactId>nexus-staging-maven-plugin</artifactId>
145-
<version>1.6.7</version>
146-
<extensions>true</extensions>
147-
<configuration>
148-
<serverId>ossrh</serverId>
149-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
150-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
151-
</configuration>
152-
</plugin>
153-
154-
</plugins>
155-
</pluginManagement>
156-
</build>
157-
86+
<profiles>
87+
<profile>
88+
<id>release</id>
89+
<build>
90+
<plugins>
91+
<plugin>
92+
<groupId>org.apache.maven.plugins</groupId>
93+
<artifactId>maven-source-plugin</artifactId>
94+
<version>2.2.1</version>
95+
<executions>
96+
<execution>
97+
<id>attach-sources</id>
98+
<goals>
99+
<goal>jar-no-fork</goal>
100+
</goals>
101+
</execution>
102+
</executions>
103+
</plugin>
104+
<plugin>
105+
<groupId>org.apache.maven.plugins</groupId>
106+
<artifactId>maven-javadoc-plugin</artifactId>
107+
<version>2.9.1</version>
108+
<executions>
109+
<execution>
110+
<id>attach-javadocs</id>
111+
<goals>
112+
<goal>jar</goal>
113+
</goals>
114+
</execution>
115+
</executions>
116+
</plugin>
117+
<plugin>
118+
<groupId>org.apache.maven.plugins</groupId>
119+
<artifactId>maven-gpg-plugin</artifactId>
120+
<version>1.5</version>
121+
<executions>
122+
<execution>
123+
<id>sign-artifacts</id>
124+
<phase>verify</phase>
125+
<goals>
126+
<goal>sign</goal>
127+
</goals>
128+
</execution>
129+
</executions>
130+
</plugin>
131+
<plugin>
132+
<groupId>org.apache.maven.plugins</groupId>
133+
<artifactId>maven-compiler-plugin</artifactId>
134+
<version>3.6.1</version>
135+
<configuration>
136+
<source>8</source>
137+
<target>8</target>
138+
</configuration>
139+
</plugin>
140+
<plugin>
141+
<groupId>org.apache.maven.plugins</groupId>
142+
<artifactId>maven-release-plugin</artifactId>
143+
<version>2.5.3</version>
144+
<configuration>
145+
<autoVersionSubmodules>true</autoVersionSubmodules>
146+
<useReleaseProfile>false</useReleaseProfile>
147+
<releaseProfiles>release</releaseProfiles>
148+
<goals>deploy</goals>
149+
</configuration>
150+
</plugin>
151+
152+
<plugin>
153+
<groupId>org.sonatype.plugins</groupId>
154+
<artifactId>nexus-staging-maven-plugin</artifactId>
155+
<version>1.6.8</version>
156+
<extensions>true</extensions>
157+
<configuration>
158+
<serverId>ossrh</serverId>
159+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
160+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
161+
</configuration>
162+
</plugin>
163+
</plugins>
164+
</build>
165+
</profile>
166+
</profiles>
158167

159168
<dependencies>
160169

0 commit comments

Comments
 (0)