Created
May 18, 2021 12:31
-
-
Save DevSrSouza/63b9b96694eeb3ed23d222019d6df41a to your computer and use it in GitHub Desktop.
Compose compiler in a Maven Project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns="http://maven.apache.org/POM/4.0.0" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<artifactId>mainModule</artifactId> | |
<groupId>me.devsrsouza</groupId> | |
<version>1.0</version> | |
<packaging>jar</packaging> | |
<name>mainModule</name> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<kotlin.code.style>official</kotlin.code.style> | |
<kotlin.compiler.jvmTarget>11</kotlin.compiler.jvmTarget> | |
<compose.version>0.3.2</compose.version> | |
<kotlin.version>1.4.31</kotlin.version> | |
</properties> | |
<repositories> | |
<repository> | |
<id>mavenCentral</id> | |
<url>https://repo1.maven.org/maven2/</url> | |
</repository> | |
<repository> | |
<id>jetbrains-compose</id> | |
<url>https://maven.pkg.jetbrains.space/public/p/compose/dev</url> | |
</repository> | |
</repositories> | |
<build> | |
<sourceDirectory>src/main/kotlin</sourceDirectory> | |
<testSourceDirectory>src/test/kotlin</testSourceDirectory> | |
<plugins> | |
<plugin> | |
<groupId>org.jetbrains.kotlin</groupId> | |
<artifactId>kotlin-maven-plugin</artifactId> | |
<version>${kotlin.version}</version> | |
<executions> | |
<execution> | |
<id>compile</id> | |
<phase>compile</phase> | |
<goals> | |
<goal>compile</goal> | |
</goals> | |
</execution> | |
<execution> | |
<id>test-compile</id> | |
<phase>test-compile</phase> | |
<goals> | |
<goal>test-compile</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<args> | |
<arg>-Xuse-ir</arg> | |
<arg>-Xplugin=/home/YOUR_USER/path/to/the/compiler/compiler-hosted-0.3.2.jar</arg> | |
</args> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
<dependencies> | |
<dependency> | |
<groupId>org.jetbrains.kotlin</groupId> | |
<artifactId>kotlin-stdlib-jdk8</artifactId> | |
<version>${kotlin.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.jetbrains.compose.runtime</groupId> | |
<artifactId>runtime-desktop</artifactId> | |
<version>${compose.version}</version> | |
</dependency> | |
</dependencies> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment