io.staticcdn.sdk:staticcdn-sdk-maven-plugin

Software Development Kits to work with staticcdn.io. It provide java client/maven plugin/gradle plugin.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

io.staticcdn.sdk
ArtifactId

ArtifactId

staticcdn-sdk-maven-plugin
Last Version

Last Version

0.1.26
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Software Development Kits to work with staticcdn.io. It provide java client/maven plugin/gradle plugin.

Download staticcdn-sdk-maven-plugin

How to add to project

<plugin>
    <groupId>io.staticcdn.sdk</groupId>
    <artifactId>staticcdn-sdk-maven-plugin</artifactId>
    <version>0.1.26</version>
</plugin>

Dependencies

compile (4)

Group / Artifact Type Version
io.staticcdn.sdk : staticcdn-sdk-client jar 0.1.26
org.apache.maven : maven-plugin-api jar 2.0
org.apache.maven : maven-project jar 2.0.11
org.codehaus.plexus : plexus-utils jar 3.0.8

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.2

Project Modules

There are no modules declared in this project.

Static CDN SDK

Documentation

Maven Sample

<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>

Gradle Sample

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
    ]
}

SDK Build Commands

(cd /opt/staticcdn/src/staticcdn-sdk && mvn clean install)

export MAVEN_OPTS="-Dhttps.protocols=SSLv3 -Dforce.http.jre.executor=true"
(cd /opt/staticcdn/src/staticcdn-sdk && mvn release:clean && mvn release:prepare && mvn release:perform)

Versions

Version
0.1.26
0.1.23
0.1.22
0.1.21
0.1.17
0.1.16
0.1.15
0.1.14
0.1.13
0.1.12
0.1.11
0.1.9
0.1.8
0.1.7
0.1.5
0.1.3
0.1.2