Skip to content

Commit cd3f590

Browse files
Add JitPack Support
1 parent 32f50f3 commit cd3f590

File tree

5 files changed

+144
-20
lines changed

5 files changed

+144
-20
lines changed

.gitignore

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
### Rust template
2+
# Compiled files
3+
*.o
4+
*.so
5+
*.rlib
6+
*.dll
7+
8+
# Executables
9+
*.exe
10+
11+
# Generated by Cargo
12+
/target/
13+
### Example user template template
14+
### Example user template
15+
16+
# IntelliJ project files
17+
.idea
18+
*.iml
19+
out
20+
gen### Java template
21+
*.class
22+
23+
# Mobile Tools for Java (J2ME)
24+
.mtj.tmp/
25+
26+
# Package Files #
27+
*.jar
28+
*.war
29+
*.ear
30+
31+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
32+
hs_err_pid*
33+
### C template
34+
# Object files
35+
*.o
36+
*.ko
37+
*.obj
38+
*.elf
39+
40+
# Precompiled Headers
41+
*.gch
42+
*.pch
43+
44+
# Libraries
45+
*.lib
46+
*.a
47+
*.la
48+
*.lo
49+
50+
# Shared objects (inc. Windows DLLs)
51+
*.dll
52+
*.so
53+
*.so.*
54+
*.dylib
55+
56+
# Executables
57+
*.exe
58+
*.out
59+
*.app
60+
*.i*86
61+
*.x86_64
62+
*.hex
63+
64+
# Debug files
65+
*.dSYM/
66+
67+
# Created by .ignore support plugin (hsz.mobi)

.idea/jsLibraryMappings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

toolkits/pom.xml

Lines changed: 52 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,51 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>wx</groupId>
5-
<artifactId>javacs</artifactId>
5+
<artifactId>toolkits</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0-SNAPSHOT</version>
8-
<name>javacs</name>
7+
<version>0.0.1</version>
8+
<name>WXJavaToolkits</name>
99
<url>http://maven.apache.org</url>
10+
11+
<!--编译控制-->
12+
<build>
13+
<!--通用插件-->
14+
<plugins>
15+
<plugin>
16+
<groupId>org.apache.maven.plugins</groupId>
17+
<artifactId>maven-compiler-plugin</artifactId>
18+
<version>3.0</version>
19+
<configuration>
20+
<source>1.8</source>
21+
<target>1.8</target>
22+
<testSource>1.8</testSource>
23+
<testTarget>1.8</testTarget>
24+
</configuration>
25+
</plugin>
26+
</plugins>
27+
28+
<!--資源-->
29+
<resources>
30+
<resource>
31+
<directory>src/main/resources</directory>
32+
</resource>
33+
</resources>
34+
35+
</build>
36+
37+
<!--全局变量定义-->
38+
<properties>
39+
<spring.version>4.2.2.RELEASE</spring.version>
40+
</properties>
41+
42+
<repositories>
43+
<repository>
44+
<id>jitpack.io</id>
45+
<url>https://jitpack.io</url>
46+
</repository>
47+
</repositories>
48+
49+
<!--依赖-->
1050
<dependencies>
1151

1252
<!--TestRelease-->
@@ -47,21 +87,15 @@
4787
<version>2.2.4</version>
4888
</dependency>
4989

90+
<!--Advanced-->
91+
<dependency>
92+
<groupId>com.alibaba</groupId>
93+
<artifactId>fastjson</artifactId>
94+
<version>1.2.7</version>
95+
</dependency>
96+
97+
5098
</dependencies>
5199

52-
<build>
53-
<plugins>
54-
<plugin>
55-
<groupId>org.apache.maven.plugins</groupId>
56-
<artifactId>maven-compiler-plugin</artifactId>
57-
<version>3.0</version>
58-
<configuration>
59-
<source>1.8</source>
60-
<target>1.8</target>
61-
<testSource>1.8</testSource>
62-
<testTarget>1.8</testTarget>
63-
</configuration>
64-
</plugin>
65-
</plugins>
66-
</build>
100+
67101
</project>

toolkits/src/main/java/wx/App.java

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,27 @@
44
* Hello world!
55
*
66
*/
7-
public class App
7+
public class App
88
{
9+
private String appName = "appName";
10+
11+
public void set(){
12+
InnerClass innerClass = new InnerClass();
13+
innerClass.print();
14+
}
15+
16+
public class InnerClass{
17+
18+
public void print(){
19+
System.out.print(appName);
20+
}
21+
}
22+
923
public static void main( String[] args )
1024
{
11-
System.out.println( "Hello World!" );
25+
26+
App app = new App();
27+
app.set();
28+
1229
}
1330
}

toolkits/src/main/java/wx/toolkits/advanced/serialization/json/fastjson/model/User.java

Whitespace-only changes.

0 commit comments

Comments
 (0)