atlantafx/styles/pom.xml

108 lines
4.5 KiB
XML
Raw Normal View History

2022-07-21 04:58:01 -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>
<parent>
<groupId>io.github.mkpaz</groupId>
<artifactId>atlantafx-parent</artifactId>
2023-02-10 07:33:30 -05:00
<version>1.2.0</version>
2022-07-21 04:58:01 -04:00
</parent>
<artifactId>atlantafx-styles</artifactId>
<properties>
<scss.inputDir>${project.basedir}/src</scss.inputDir>
<css.outputDir>${project.basedir}/dist</css.outputDir>
</properties>
2022-07-21 04:58:01 -04:00
<build>
<resources>
<!-- include SASS sources to the resulting JAR file -->
<resource>
<directory>src</directory>
<targetPath>atlantafx/styles</targetPath>
<filtering>false</filtering>
</resource>
</resources>
2022-07-21 04:58:01 -04:00
<plugins>
<!-- compile SCSS -->
<plugin>
<groupId>us.hebi.sass</groupId>
<artifactId>sass-cli-maven-plugin</artifactId>
2022-07-21 04:58:01 -04:00
<configuration>
<args>
<arg>${scss.inputDir}/primer-light.scss:${css.outputDir}/primer-light.css</arg>
<arg>${scss.inputDir}/primer-dark.scss:${css.outputDir}/primer-dark.css</arg>
<arg>${scss.inputDir}/nord-light.scss:${css.outputDir}/nord-light.css</arg>
<arg>${scss.inputDir}/nord-dark.scss:${css.outputDir}/nord-dark.css</arg>
2023-02-14 10:06:42 -05:00
<arg>${scss.inputDir}/cupertino-light.scss:${css.outputDir}/cupertino-light.css</arg>
<arg>${scss.inputDir}/cupertino-dark.scss:${css.outputDir}/cupertino-dark.css</arg>
2023-02-16 01:27:36 -05:00
<arg>${scss.inputDir}/dracula.scss:${css.outputDir}/dracula.css</arg>
<arg>--no-source-map</arg>
</args>
2022-07-21 04:58:01 -04:00
</configuration>
<executions>
<execution>
<id>run-sass</id>
2022-07-21 04:58:01 -04:00
<phase>generate-resources</phase>
<goals>
<goal>run</goal>
2022-07-21 04:58:01 -04:00
</goals>
</execution>
</executions>
</plugin>
2022-07-21 04:58:01 -04:00
<!-- compress resulting CSS into archive for distribution -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
<attach>false</attach>
<appendAssemblyId>false</appendAssemblyId>
<tarLongFileMode>posix</tarLongFileMode>
</configuration>
2022-07-21 04:58:01 -04:00
<executions>
<execution>
<id>assemble-themes</id>
<phase>package</phase>
2022-07-21 04:58:01 -04:00
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>${app.name}-${app.version}-themes</finalName>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
<execution>
<id>assemble-scenebuilder</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>${app.name}-${app.version}-scenebuilder</finalName>
<descriptors>
<descriptor>scenebuilder.xml</descriptor>
</descriptors>
</configuration>
</execution>
2022-07-21 04:58:01 -04:00
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>dev</id>
<properties>
<css.outputDir>${project.basedir}/../sampler/target/classes/atlantafx/sampler/theme-test</css.outputDir>
<sass.watch>true</sass.watch>
</properties>
</profile>
</profiles>
2022-07-21 04:58:01 -04:00
</project>