<plugin>
<groupId>io.staticcdn.sdk</groupId>
<artifactId>staticcdn-sdk-maven-plugin</artifactId>
<version>0.1.26</version>
<executions>
<execution>
<goals>
<goal>optimize</goal>
</goals>
<configuration>
<apiKey>***</apiKey>
<apiSecret>***</apiSecret>
<inputWwwRoots>
<inputWwwRoot>${project.basedir}/target/generated-resource</inputWwwRoot>
<inputWwwRoot>${project.basedir}</inputWwwRoot>
</inputWwwRoots>
<outputWwwRoot>${project.basedir}/target/classes</outputWwwRoot>
<inputFilePathPatterns>
<inputFilePathPattern>/static/include/css/.*inc</inputFilePathPattern>
<inputFilePathPattern>/static/include/js/.*inc</inputFilePathPattern>
</inputFilePathPatterns>
</configuration>
</execution>
</executions>
</plugin>
buildscript {
dependencies {
classpath 'io.staticcdn.sdk:staticcdn-sdk-gradle-plugin:0.1.26'
}
}
apply plugin: 'groovy'
apply plugin: 'statico'
statico {
apiKey='***'
apiSecret='***'
inputWwwRoots=['wwwroot/']
outputWwwRoot='build/optimized-wwwroot'
inputFilePathPatterns=[
'^.*html$',
]
optimizerOptions=[
autoEmbedCss:true,
autoDataUrlMaxFileSize:1000
]
}