Skip to content

Commit 73e7420

Browse files
authored
[JAVA-34851] Converted to maven module (#932)
* [JAVA-34851] Converted to maven module * [JAVA-34851] Clean up
1 parent 5adbc29 commit 73e7420

File tree

6 files changed

+87
-44
lines changed

6 files changed

+87
-44
lines changed

core-kotlin-modules/core-kotlin-lang-oop-4/build.gradle.kts

Lines changed: 0 additions & 35 deletions
This file was deleted.

core-kotlin-modules/core-kotlin-lang-oop-4/gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<artifactId>core-kotlin-lang-oop-4</artifactId>
7+
<name>core-kotlin-lang-oop-4</name>
8+
<packaging>jar</packaging>
9+
10+
<parent>
11+
<groupId>com.baeldung</groupId>
12+
<artifactId>core-kotlin-modules</artifactId>
13+
<version>1.0.0-SNAPSHOT</version>
14+
</parent>
15+
16+
<repositories>
17+
<repository>
18+
<id>central</id>
19+
<url>https://repo.maven.apache.org/maven2</url>
20+
</repository>
21+
<repository>
22+
<id>jitpack</id>
23+
<url>https://jitpack.io</url>
24+
</repository>
25+
</repositories>
26+
27+
<dependencies>
28+
<dependency>
29+
<groupId>com.github.LunarWatcher</groupId>
30+
<artifactId>KClassUnpacker</artifactId>
31+
<version>${KClassUnpacker.version}</version>
32+
<scope>compile</scope>
33+
</dependency>
34+
</dependencies>
35+
36+
<build>
37+
<plugins>
38+
<plugin>
39+
<groupId>org.jetbrains.kotlin</groupId>
40+
<artifactId>kotlin-maven-plugin</artifactId>
41+
<version>${kotlin.version}</version>
42+
<executions>
43+
<execution>
44+
<id>compile</id>
45+
<phase>compile</phase>
46+
<goals>
47+
<goal>compile</goal>
48+
</goals>
49+
</execution>
50+
<execution>
51+
<id>test-compile</id>
52+
<phase>test-compile</phase>
53+
<goals>
54+
<goal>test-compile</goal>
55+
</goals>
56+
</execution>
57+
<execution>
58+
<id>kapt</id>
59+
<goals>
60+
<goal>kapt</goal>
61+
</goals>
62+
<configuration>
63+
<sourceDirs>
64+
<sourceDir>src/main/kotlin</sourceDir>
65+
<sourceDir>src/main/java</sourceDir>
66+
</sourceDirs>
67+
<annotationProcessorPaths>
68+
<annotationProcessorPath>
69+
<groupId>com.github.LunarWatcher</groupId>
70+
<artifactId>KClassUnpacker</artifactId>
71+
<version>${KClassUnpacker.version}</version>
72+
</annotationProcessorPath>
73+
</annotationProcessorPaths>
74+
</configuration>
75+
</execution>
76+
</executions>
77+
</plugin>
78+
</plugins>
79+
</build>
80+
81+
<properties>
82+
<KClassUnpacker.version>v1.0.2</KClassUnpacker.version>
83+
</properties>
84+
85+
</project>

core-kotlin-modules/core-kotlin-lang-oop-4/settings.gradle.kts

Lines changed: 0 additions & 2 deletions
This file was deleted.

core-kotlin-modules/core-kotlin-lang-oop-4/src/test/kotlin/IteratePropertiesOfDataClassUnitTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import com.baeldung.iteratePropertiesOfDataClass.Person
22
import com.baeldung.iteratePropertiesOfDataClass.getFields
3-
import kotlin.test.Test
3+
import org.junit.jupiter.api.Test
44
import kotlin.test.assertEquals
55

66
class IteratePropertiesOfDataClassUnitTest {

core-kotlin-modules/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
<module>core-kotlin-lang-oop</module>
5959
<module>core-kotlin-lang-oop-2</module>
6060
<module>core-kotlin-lang-oop-3</module>
61+
<module>core-kotlin-lang-oop-4</module>
6162
<module>core-kotlin-numbers</module>
6263
<module>core-kotlin-numbers-2</module>
6364
<module>core-kotlin-strings</module>

0 commit comments

Comments
 (0)