This commit is contained in:
hlq07 2018-05-09 14:21:14 +08:00
commit 2346c96999
8 changed files with 143 additions and 0 deletions

19
.gitignore vendored Normal file
View File

@ -0,0 +1,19 @@
# Java class files
*.class
# Generated files
build/
out/
# Gradle files
.gradle/
gradle/
gradlew
gradlew.bat
# Intellij
*.iml
.idea/
# Log Files
*.log

1
app/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build/

5
app/build.gradle Normal file
View File

@ -0,0 +1,5 @@
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile 'com.google.code.gson:gson:2.8.4'
}

View File

@ -0,0 +1,20 @@
package org.cutem;
/**
* a sample class
*
* @author hlq07
*/
public class SampleMain {
/**
* main method
*
* @param args cmd line arguments
*/
public static void main(String[] args) {
System.out.println("hello world");
}
}

View File

@ -0,0 +1,62 @@
{
"year": "2018",
"holiday": [
{
"name": "yuandan",
"zh_name": "元旦",
"holiday_time": "2018-01-01",
"start_time": "2018-01-01",
"end_time": "2018-01-01"
},
{
"name": "chunjie",
"zh_name": "春节",
"holiday_time": "2018-02-16",
"start_time": "2018-02-15",
"end_time": "2018-02-21"
},
{
"name": "qingming",
"zh_name": "清明节",
"holiday_time": "2018-04-05",
"start_time": "2018-04-05",
"end_time": "2018-04-07"
},
{
"name": "laodong",
"zh_name": "劳动节",
"holiday_time": "2018-05-01",
"start_time": "2018-04-29",
"end_time": "2018-05-01"
},
{
"name": "duanwu",
"zh_name": "端午节",
"holiday_time": "2018-06-18",
"start_time": "2018-06-16",
"end_time": "2018-06-18"
},
{
"name": "zhongqiu",
"zh_name": "中秋节",
"holiday_time": "2018-09-24",
"start_time": "2018-09-22",
"end_time": "2018-09-24"
},
{
"name": "guoqing",
"zh_name": "国庆节",
"holiday_time": "2018-10-01",
"start_time": "2018-10-01",
"end_time": "2018-10-07"
}
],
"workday": [
"2018-02-11",
"2018-02-24",
"2018-04-08",
"2018-04-28",
"2018-09-29",
"2018-09-30"
]
}

View File

@ -0,0 +1,21 @@
package org.cutem;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class SampleMainTest {
@Before
public void setUp() {
}
@After
public void tearDown() {
}
@Test
public void main() {
SampleMain.main(new String[]{"nihao"});
}
}

14
build.gradle Normal file
View File

@ -0,0 +1,14 @@
subprojects {
apply plugin: 'java'
sourceCompatibility = 1.8
javadoc.options.locale "en_US"
repositories {
jcenter()
}
}
allprojects {
group = "org.cutem"
version = "1.0.0.lab4"
}

1
settings.gradle Normal file
View File

@ -0,0 +1 @@
include ':app'