Compare commits

...

5 Commits
0.2 ... master

Author SHA1 Message Date
8ec6027bf7 Fixed and update 2020-06-09 12:33:40 +07:00
cf94913aea Add readme and update file 2020-06-09 12:33:12 +07:00
b9fb24efb5 Add String helper 2020-06-09 11:56:55 +07:00
2bcd46b73c Add println 2020-06-09 09:59:31 +07:00
dd9c4f260c Updated main 2020-06-09 09:40:12 +07:00
4 changed files with 50 additions and 2 deletions

19
README.md Normal file
View File

@ -0,0 +1,19 @@
### Sample Module Gradle
[![](https://jitpack.io/v/com.cubetiqs.git.CUBETIQ/sample-module-gradle.svg)](https://jitpack.io/#com.cubetiqs.git.CUBETIQ/sample-module-gradle)
#### Gradle
<b>Step 1</b>. Add the JitPack repository to your build file.
```groovy
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
```
<b>Step 2</b>. Add the dependency.
```groovy
dependencies {
implementation 'com.cubetiqs.git.CUBETIQ:sample-module-gradle:0.0.1-SNAPSHOT'
}
```

View File

@ -1,2 +1 @@
rootProject.name = 'sample-module-gradle'
rootProject.name = 'sample-module-gradle'

View File

@ -10,6 +10,16 @@ public class Print {
public static final String ID = "PRINT";
public static void print(String message) {
System.out.print(ID + " : " + message);
}
public static void println(String message) {
System.out.println(ID + " : " + message);
}
}
class Main {
public static void main(String[] args) {
Print.print("Hello");
}
}

View File

@ -0,0 +1,20 @@
package com.cubetiqs.util;
/**
* String util helper
*
* @author sombochea
* @since 1.0
*/
public final class StringHelper {
public static String getOrDefault(String text, String fallback) {
if (text == null || text.isEmpty()) {
return fallback;
}
return text;
}
public static String getOrEmpty(String text) {
return getOrDefault(text, "");
}
}