SBuild Https Plugin

An SBuild Plugin that provides an HTTPS Scheme Handler.

License

License

GroupId

GroupId

org.sbuild
ArtifactId

ArtifactId

org.sbuild.plugins.https
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

SBuild Https Plugin
An SBuild Plugin that provides an HTTPS Scheme Handler.
Project URL

Project URL

https://github.com/SBuild-org/sbuild-https-plugin
Source Code Management

Source Code Management

https://github.com/SBuild-org/sbuild-https-plugin

Download org.sbuild.plugins.https

How to add to project

<!-- https://jarcasting.com/artifacts/org.sbuild/org.sbuild.plugins.https/ -->
<dependency>
    <groupId>org.sbuild</groupId>
    <artifactId>org.sbuild.plugins.https</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.sbuild/org.sbuild.plugins.https/
implementation 'org.sbuild:org.sbuild.plugins.https:0.1.0'
// https://jarcasting.com/artifacts/org.sbuild/org.sbuild.plugins.https/
implementation ("org.sbuild:org.sbuild.plugins.https:0.1.0")
'org.sbuild:org.sbuild.plugins.https:jar:0.1.0'
<dependency org="org.sbuild" name="org.sbuild.plugins.https" rev="0.1.0">
  <artifact name="org.sbuild.plugins.https" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.sbuild', module='org.sbuild.plugins.https', version='0.1.0')
)
libraryDependencies += "org.sbuild" % "org.sbuild.plugins.https" % "0.1.0"
[org.sbuild/org.sbuild.plugins.https "0.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

SBuild HTTPS Plugin

This SBuild Plugin provides an HTTPS SchemeHandler for SBuild.

Download

The SBuild HTTPS Plugin can be downloaded from Maven Central.

To include it in your SBuild build file use the @classpath annotation:

@classpath("mvn:org.sbuild:org.sbuild.plugins.https:0.1.0")

Building from Source

If you want to build this plugin from source, you need at least SBuild 0.7.1.

git clone https://github.com/SBuild-org/sbuild-https-plugin.git
cd sbuild-sbuild-plugin/org.sbuild.plugins.https
sbuild jar

You will find the built jar in the directory org.sbuild.plugins.https/target.

Configuration

All configurable properties are documented via ScalaDoc. See file Https.scala.

In it’s default configuration, this plugin will register a https scheme, which will store all downloaded resources under .sbuild/https.

Named plugin instances will register a scheme identical to the plugin instance name.

Examples

Just using the default configuration:

import de.tototec.sbuild._

@version("0.7.9010.0.8.0-M1")
@classpath("mvn:org.sbuild:org.sbuild.plugins.https:0.1.0")
class SBuild(implicit _project: Project) {

  Plugin[org.sbuild.plugins.https.Https]

  Target("phony:download") dependsOn "https://raw.github.com/SBuild-org/sbuild-jbake/master/README.adoc"

}

Registering an unsafeHttps scheme and disable trust management, to allow connections to sites with self signed certificates.

import de.tototec.sbuild._

@version("0.7.9010.0.8.0-M1")
@classpath("mvn:org.sbuild:org.sbuild.plugins.https:0.1.0")
class SBuild(implicit _project: Project) {

  Plugin[org.sbuild.plugins.https.Https]("unsafeHttps") configure { _.copy(
    disableTrustManager = true
  )}

  // sbuild.tototec.de uses a self signed certificate.
  Target("phony:download") dependsOn "unsafeHttps://sbuild.tototec.de/sbuild/attachments/download/88/de.tototec.sbuild-0.7.1.jar"

}

Changelog

Compatibility Matrix

Https Plugin Version SBuild Version

0.1.0

>= 0.8.0-M1 (0.7.9010)

sbuild-https-plugin 0.1.0

  • Initial Release

  • Requires SBuild 0.8.0-M1 (0.7.9010)

org.sbuild

SBuild

A magic-free yet powerful Scala-based build tool

Versions

Version
0.1.0