Merge pull request 'ci' (#39) from ci into main

Reviewed-on: https://src.ossez.com/cwiki-us-docs/java-tutorials/pulls/39
This commit is contained in:
honeymoose 2022-06-18 07:41:52 -04:00
commit 5b3ef027b1
17 changed files with 52 additions and 27 deletions

27
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,27 @@
pipeline {
agent any
tools {
maven 'maven 3.8.4'
jdk 'OpenJDK-11'
}
stages {
stage('Build') {
steps {
echo 'Building..'
sh 'mvn clean package'
}
}
stage('Test') {
steps {
echo 'Testing..'
}
}
stage('Deploy') {
steps {
echo 'Deploying....'
}
}
}
}

View File

@ -11,7 +11,6 @@
<groupId>com.ossez.core-java-modules</groupId>
<artifactId>core-java-modules</artifactId>
<version>0.0.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<dependencies>
@ -34,6 +33,7 @@
<properties>
<jol-core.version>0.10</jol-core.version>
<commons-exec.version>1.3</commons-exec.version>
</properties>
</project>

View File

@ -1,4 +1,4 @@
package com.ossez.collections.collections.arraylistvsvector;
package com.ossez.collections.arraylistvsvector;
import org.openjdk.jmh.annotations.*;
import org.openjdk.jmh.runner.Runner;

View File

@ -1,4 +1,4 @@
package com.ossez.collections.collections.arraylistvsvector;
package com.ossez.collections.arraylistvsvector;
public class Employee {

View File

@ -1,4 +1,4 @@
package com.ossez.collections.collections.arraylistvsvector;
package com.ossez.collections.arraylistvsvector;
import java.util.Enumeration;
import java.util.Iterator;

View File

@ -1,4 +1,4 @@
package com.ossez.collections.collections.containsperformance;
package com.ossez.collections.containsperformance;
import org.openjdk.jmh.annotations.*;
import org.openjdk.jmh.runner.Runner;

View File

@ -1,4 +1,4 @@
package com.ossez.collections.collections.containsperformance;
package com.ossez.collections.containsperformance;
public class Employee {

View File

@ -1,4 +1,4 @@
package com.ossez.collections.collections.iterators;
package com.ossez.collections.iterators;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -1,4 +1,4 @@
package com.ossez.collections.collections.removeallperformance;
package com.ossez.collections.removeallperformance;
import java.util.ArrayList;
import java.util.HashSet;
@ -6,7 +6,7 @@ import java.util.List;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import com.ossez.collections.collections.containsperformance.Employee;
import com.ossez.collections.containsperformance.Employee;
import org.apache.commons.lang3.RandomStringUtils;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;

View File

@ -1,4 +1,4 @@
package com.ossez.collections.collections.sortingcomparison;
package com.ossez.collections.sortingcomparison;
import java.util.Arrays;
import java.util.concurrent.TimeUnit;

View File

@ -1,8 +1,8 @@
package com.ossez.collections.iterators;
import static com.ossez.collections.collections.iterators.Iterators.failFast1;
import static com.ossez.collections.collections.iterators.Iterators.failFast2;
import static com.ossez.collections.collections.iterators.Iterators.failSafe1;
import static com.ossez.collections.iterators.Iterators.failFast1;
import static com.ossez.collections.iterators.Iterators.failFast2;
import static com.ossez.collections.iterators.Iterators.failSafe1;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;

View File

@ -1,6 +1,6 @@
## Java 数字Number
这个模块中包含有关 Java 数字Number有关的文章。
模块中包含有关 Java 数字Number有关的文章。
### 相关文章
- [理解 Java 中的 NumberFormatException 异常](https://www.ossez.com/t/java-numberformatexception/13986)

View File

@ -8,10 +8,9 @@
<packaging>jar</packaging>
<parent>
<groupId>com.ossez</groupId>
<artifactId>parent-modules</artifactId>
<groupId>com.ossez.core-java-modules</groupId>
<artifactId>core-java-modules</artifactId>
<version>0.0.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<dependencies>
@ -49,7 +48,7 @@
<properties>
<icu4j.version>61.1</icu4j.version>
<maven.compiler.release>15</maven.compiler.release>
<maven.compiler.release>11</maven.compiler.release>
</properties>
</project>

View File

@ -1,6 +1,6 @@
## Java 字符串Strings
This module contains articles about strings in Java.
本模块中包含有关 Java 字符串String有关的文章。
### 相关文章
- [Use char[] Array over a String for Manipulating Passwords in Java?](https://www.baeldung.com/java-storing-passwords)

View File

@ -8,10 +8,9 @@
<packaging>jar</packaging>
<parent>
<groupId>com.ossez</groupId>
<artifactId>parent-modules</artifactId>
<groupId>com.ossez.core-java-modules</groupId>
<artifactId>core-java-modules</artifactId>
<version>0.0.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<dependencies>
@ -49,7 +48,7 @@
<properties>
<icu4j.version>61.1</icu4j.version>
<maven.compiler.release>15</maven.compiler.release>
<maven.compiler.release>11</maven.compiler.release>
</properties>
</project>

View File

@ -6,13 +6,13 @@ import java.util.List;
import java.util.Locale;
public class App {
/**
* Runs all available formatter
* @throws ParseException
*
* @param args inputs
*/
public static void main(String[] args) {
List<Locale> locales = Arrays.asList(new Locale[] { Locale.UK, Locale.ITALY, Locale.FRANCE, Locale.forLanguageTag("pl-PL") });
List<Locale> locales = Arrays.asList(new Locale[]{Locale.UK, Locale.ITALY, Locale.FRANCE, Locale.forLanguageTag("pl-PL")});
Localization.run(locales);
JavaSEFormat.run(locales);
ICUFormat.run(locales);

View File

@ -341,7 +341,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.3.2</version>
<version>3.4.0</version>
<executions>
<execution>
<id>attach-javadocs</id>