Skip to content

Commit 8eb613b

Browse files
authored
Merge pull request eugenp#6739 from CROSP/core-kotlin-io
Create Core Kotlin IO module
2 parents 3d193b8 + 5e6a5ae commit 8eb613b

File tree

7 files changed

+93
-0
lines changed

7 files changed

+93
-0
lines changed

core-kotlin-io/.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/bin/
2+
3+
#ignore gradle
4+
.gradle/
5+
6+
7+
#ignore build and generated files
8+
build/
9+
node/
10+
target/
11+
out/

core-kotlin-io/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Relevant articles:
2+
3+
- [InputStream to String in Kotlin](https://www.baeldung.com/kotlin-inputstream-to-string)

core-kotlin-io/pom.xml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<artifactId>core-kotlin-io</artifactId>
6+
<name>core-kotlin-io</name>
7+
<packaging>jar</packaging>
8+
9+
<parent>
10+
<groupId>com.baeldung</groupId>
11+
<artifactId>parent-kotlin</artifactId>
12+
<version>1.0.0-SNAPSHOT</version>
13+
<relativePath>../parent-kotlin</relativePath>
14+
</parent>
15+
16+
<dependencies>
17+
<dependency>
18+
<groupId>org.jetbrains.kotlin</groupId>
19+
<artifactId>kotlin-stdlib-jdk8</artifactId>
20+
<version>${kotlin.version}</version>
21+
</dependency>
22+
<dependency>
23+
<groupId>org.junit.platform</groupId>
24+
<artifactId>junit-platform-runner</artifactId>
25+
<version>${junit.platform.version}</version>
26+
<scope>test</scope>
27+
</dependency>
28+
<dependency>
29+
<groupId>org.assertj</groupId>
30+
<artifactId>assertj-core</artifactId>
31+
<version>${assertj.version}</version>
32+
<scope>test</scope>
33+
</dependency>
34+
<dependency>
35+
<groupId>org.jetbrains.kotlin</groupId>
36+
<artifactId>kotlin-test</artifactId>
37+
<version>${kotlin.version}</version>
38+
<scope>test</scope>
39+
</dependency>
40+
</dependencies>
41+
42+
<build>
43+
<plugins>
44+
<plugin>
45+
<groupId>org.jetbrains.kotlin</groupId>
46+
<artifactId>kotlin-maven-plugin</artifactId>
47+
<version>${kotlin.version}</version>
48+
<executions>
49+
<execution>
50+
<id>compile</id>
51+
<phase>compile</phase>
52+
<goals>
53+
<goal>compile</goal>
54+
</goals>
55+
</execution>
56+
<execution>
57+
<id>test-compile</id>
58+
<phase>test-compile</phase>
59+
<goals>
60+
<goal>test-compile</goal>
61+
</goals>
62+
</execution>
63+
</executions>
64+
<configuration>
65+
<jvmTarget>1.8</jvmTarget>
66+
</configuration>
67+
</plugin>
68+
</plugins>
69+
</build>
70+
71+
<properties>
72+
<kotlin.version>1.2.71</kotlin.version>
73+
<junit.platform.version>1.1.1</junit.platform.version>
74+
<junit.vintage.version>5.2.0</junit.vintage.version>
75+
<assertj.version>3.10.0</assertj.version>
76+
</properties>
77+
78+
</project>

core-kotlin-2/src/main/kotlin/com/baeldung/inputstream/InputStreamExtension.kt renamed to core-kotlin-io/src/main/kotlin/com/baeldung/inputstream/InputStreamExtension.kt

File renamed without changes.

core-kotlin-2/src/test/kotlin/com/baeldung/inputstream/InputStreamToStringTest.kt renamed to core-kotlin-io/src/test/kotlin/com/baeldung/inputstream/InputStreamToStringTest.kt

File renamed without changes.

core-kotlin-2/src/test/resources/inputstream2string.txt renamed to core-kotlin-io/src/test/resources/inputstream2string.txt

File renamed without changes.

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,7 @@
953953
<module>core-java-concurrency-advanced</module> <!-- very long running? -->
954954
<module>core-kotlin</module> <!-- long running? -->
955955
<module>core-kotlin-2</module>
956+
<module>core-kotlin-io</module>
956957

957958
<module>jenkins/hello-world</module>
958959
<module>jws</module>

0 commit comments

Comments
 (0)