this repo has no description
at master 5.9 kB view raw
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 7 <groupId>tech.lenooby09</groupId> 8 <artifactId>age-vanity</artifactId> 9 <version>1.0-SNAPSHOT</version> 10 11 <properties> 12 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 13 <kotlin.code.style>official</kotlin.code.style> 14 <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget> 15 <main.class>MainKt</main.class> 16 </properties> 17 18 <repositories> 19 <repository> 20 <id>mavenCentral</id> 21 <url>https://repo1.maven.org/maven2/</url> 22 </repository> 23 </repositories> 24 25 <build> 26 <sourceDirectory>src/main/kotlin</sourceDirectory> 27 <testSourceDirectory>src/test/kotlin</testSourceDirectory> 28 <plugins> 29 <plugin> 30 <groupId>org.jetbrains.kotlin</groupId> 31 <artifactId>kotlin-maven-plugin</artifactId> 32 <version>2.2.0</version> 33 <executions> 34 <execution> 35 <id>compile</id> 36 <phase>compile</phase> 37 <goals> 38 <goal>compile</goal> 39 </goals> 40 </execution> 41 <execution> 42 <id>test-compile</id> 43 <phase>test-compile</phase> 44 <goals> 45 <goal>test-compile</goal> 46 </goals> 47 </execution> 48 </executions> 49 </plugin> 50 <plugin> 51 <artifactId>maven-surefire-plugin</artifactId> 52 <version>2.22.2</version> 53 </plugin> 54 <plugin> 55 <artifactId>maven-failsafe-plugin</artifactId> 56 <version>2.22.2</version> 57 </plugin> 58 <plugin> 59 <groupId>org.codehaus.mojo</groupId> 60 <artifactId>exec-maven-plugin</artifactId> 61 <version>1.6.0</version> 62 <configuration> 63 <mainClass>${main.class}</mainClass> 64 </configuration> 65 </plugin> 66 <plugin> 67 <groupId>org.apache.maven.plugins</groupId> 68 <artifactId>maven-shade-plugin</artifactId> 69 <version>3.4.1</version> 70 <executions> 71 <execution> 72 <phase>package</phase> 73 <goals> 74 <goal>shade</goal> 75 </goals> 76 <configuration> 77 <createDependencyReducedPom>false</createDependencyReducedPom> 78 <transformers> 79 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> 80 <mainClass>${main.class}</mainClass> 81 </transformer> 82 </transformers> 83 </configuration> 84 </execution> 85 </executions> 86 </plugin> 87 </plugins> 88 </build> 89 90 <dependencies> 91 <dependency> 92 <groupId>org.jetbrains.kotlin</groupId> 93 <artifactId>kotlin-test-junit5</artifactId> 94 <version>2.2.0</version> 95 <scope>test</scope> 96 </dependency> 97 <dependency> 98 <groupId>org.junit.jupiter</groupId> 99 <artifactId>junit-jupiter</artifactId> 100 <version>5.10.0</version> 101 <scope>test</scope> 102 </dependency> 103 <dependency> 104 <groupId>org.jetbrains.kotlin</groupId> 105 <artifactId>kotlin-stdlib</artifactId> 106 <version>2.2.0</version> 107 </dependency> 108 <dependency> 109 <groupId>org.jetbrains.kotlinx</groupId> 110 <artifactId>kotlinx-coroutines-core</artifactId> 111 <version>1.8.1</version> 112 </dependency> 113 </dependencies> 114 115 <profiles> 116 <profile> 117 <id>native</id> 118 <build> 119 <plugins> 120 <plugin> 121 <groupId>org.codehaus.mojo</groupId> 122 <artifactId>exec-maven-plugin</artifactId> 123 <version>1.6.0</version> 124 <executions> 125 <execution> 126 <id>native-image</id> 127 <phase>package</phase> 128 <goals> 129 <goal>exec</goal> 130 </goals> 131 <configuration> 132 <executable>native-image</executable> 133 <arguments> 134 <argument>-H:Name>${project.artifactId}</argument> 135 <argument>-H:Path=${project.build.directory}</argument> 136 <argument>--no-fallback</argument> 137 <argument>-jar</argument> 138 <argument>${project.build.directory}/${project.artifactId}-${project.version}-shaded.jar</argument> 139 </arguments> 140 </configuration> 141 </execution> 142 </executions> 143 </plugin> 144 </plugins> 145 </build> 146 </profile> 147 </profiles> 148 149</project>