Skip to content

Commit

Permalink
Include licence in jar file
Browse files Browse the repository at this point in the history
  • Loading branch information
Nianna committed Jul 14, 2023
1 parent a3ed97e commit 0b87776
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<junit.version>5.9.2</junit.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
Expand All @@ -58,6 +59,15 @@
</dependencies>

<build>
<resources>
<resource>
<directory>.</directory>
<targetPath>/META-INF</targetPath>
<includes>
<include>LICENSE</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
8 changes: 6 additions & 2 deletions src/main/java/io/github/nianna/api/HyphenatedText.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,23 @@
*/
public record HyphenatedText(List<HyphenatedToken> hyphenatedTokens) {

/**
* Default separator used between tokens
*/
public static final String DEFAULT_TOKEN_SEPARATOR = " ";

/**
* Default separator used between syllables of a single token
*/
public static final String DEFAULT_SYLLABLE_SEPARATOR = "-";


/**
* @return String representation of hyphenated text. Tokens are separated by space, syllables by hyphen.
*/
public String read() {
return read(DEFAULT_TOKEN_SEPARATOR, DEFAULT_SYLLABLE_SEPARATOR);
}


/**
* @param tokenSeparator separator to be used between tokens
* @param syllableSeparator separator to be used between syllables
Expand Down

0 comments on commit 0b87776

Please sign in to comment.