Verified Commit 266e8431 authored by Christof Lendl's avatar Christof Lendl
Browse files

Moving the creation of the 'CubeTools' distribution to it's own task.

The standard Gradle lifecycle tasks will not longer create the CubeTools
distribution along with the GIPPtools distribution. In the future the
new task 'assembleCubeTools' must be used for the CubeTools.

The usual 'build' and 'assemble' tasks will continue to build the
GIPPtools distribution (only).
parent ad2dfeaf
......@@ -23,10 +23,10 @@ plugins {
id 'java'
// Load and apply 'download' task to access up-to-date leap second
// information.
// information. (Used by task 'downloadLeapSecondList'.)
id "de.undercouch.download" version "4.1.+"
// Load and apply 'asciidoctor' for generating documentation.
// Load and apply 'asciidoctor' used for generating documentation.
id 'org.asciidoctor.jvm.convert' version '3.3.+'
id 'org.asciidoctor.jvm.pdf' version '3.3.+'
}
......@@ -51,7 +51,7 @@ dependencies {
}
// --- GIPPtools release info ---
// Automatically determine the release string based on todays date.
// Automatically determine the release string based on today's date.
import java.text.SimpleDateFormat
......@@ -140,7 +140,7 @@ task processStartScripts( type: CreateStartScripts ) {
import org.asciidoctor.gradle.jvm.AsciidoctorTask
// Define some settings common to all asciidoctor tasks.
// Define some settings common to all AsciiDoctor tasks.
tasks.withType( AsciidoctorTask ) {
docTask ->
logDocuments false
......@@ -198,12 +198,13 @@ task generateManpage( type: AsciidoctorTask ) {
// There are two "distributions" of this projects: GIPPtools and CubeTools.
//
// * The "GIPPtools" distributed by GFZ-Potsdam containing all assets of
// this project.
// this project. This is the default.
//
// * The "CubeTools" distributed by DiGOS (www.digos.eu). This is a subset
// of the GIPPtools containing only utilities, documentation, etc.
// related to the Cube data logger. Other than that the functionality
// is identical to the GIPPtools.
// Use the 'assembleCubeTools' task to build this distribution.
//
// In addition, each distribution comes in following formats:
//
......@@ -215,7 +216,7 @@ task generateManpage( type: AsciidoctorTask ) {
//
// Warning: The following does NOT use the standard Gradle 'distribution'
// plugin! However, the various distribution tasks are added as
// dependency to the standard "assemble" task.
// dependency to the standard "assemble" lifecycle task.
def commonGipptoolsSpec = copySpec {
from( jar ) {
......@@ -256,8 +257,17 @@ def commonCubetoolsSpec = copySpec {
}
}
task assembleCubeTools() {
description( "Prepare 'CubeTools' distribution files." )
}
assemble.dependsOn {
tasks.findAll {task -> task.name.endsWith( 'Dist' )
tasks.findAll {task -> (task.name.startsWith( 'gipptools' ) && task.name.endsWith( 'Dist' ))
}
}
assembleCubeTools.dependsOn {
tasks.findAll {task -> (task.name.startsWith( 'cubetools' ) && task.name.endsWith( 'Dist' ))
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment