theme.atlantafx.turquoise/pom.xml

133 lines
5.1 KiB
XML
Raw Normal View History

2024-04-30 17:50:26 -04:00
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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>
<groupId>sh.tablet</groupId>
<artifactId>atlantafx-turquoise-theme</artifactId>
<packaging>jar</packaging>
<version>1.0.0</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<sass.version>1.54.4</sass.version>
<atlantafx.version>2.0.1</atlantafx.version>
<scss.inputDir>${project.basedir}/src</scss.inputDir>
<css.outputDir>${project.basedir}/src/main/resources/sh/tablet/theme/turquoise</css.outputDir>
</properties>
<dependencies>
<dependency>
<groupId>io.github.mkpaz</groupId>
<artifactId>atlantafx-styles</artifactId>
<version>${atlantafx.version}</version>
</dependency>
<dependency>
<groupId>io.github.mkpaz</groupId>
<artifactId>atlantafx-base</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>RELEASE</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- unpack SASS sources from atlantafx-styles jar -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>unpack</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>io.github.mkpaz</groupId>
<artifactId>atlantafx-styles</artifactId>
<version>${atlantafx.version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<!-- build custom theme -->
<plugin>
<groupId>us.hebi.sass</groupId>
<artifactId>sass-cli-maven-plugin</artifactId>
<version>1.0.1</version>
<executions>
<execution>
<id>run-sass</id>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<args>
<arg>${scss.inputDir}/style.scss:${css.outputDir}/turquoise-light.css</arg>
<arg>--no-source-map</arg>
</args>
</configuration>
</execution>
<execution>
<id>run-sass-dark</id>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<args>
<arg>${scss.inputDir}/style-dark.scss:${css.outputDir}/turquoise-dark.css</arg>
<arg>--no-source-map</arg>
</args>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>watch</id>
<properties>
<sass.watch>true</sass.watch>
</properties>
</profile>
</profiles>
<repositories>
<repository>
<id>gitea</id>
<url>https://git.tablet.sh/api/packages/tablet/maven</url>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>gitea</id>
<url>https://git.tablet.sh/api/packages/tablet/maven</url>
</repository>
<snapshotRepository>
<id>gitea</id>
<url>https://git.tablet.sh/api/packages/tablet/maven</url>
</snapshotRepository>
</distributionManagement>
</project>