-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0cd5401
commit 12c54d6
Showing
2 changed files
with
114 additions
and
21 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
...n/src/main/java/org/eclipse/dataspacetck/gradle/plugins/tckgen/TckGeneratorExtension.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package org.eclipse.dataspacetck.gradle.plugins.tckgen; | ||
|
||
import org.gradle.api.provider.Property; | ||
|
||
public abstract class TckGeneratorExtension { | ||
private String imageFormat = "svg"; | ||
private boolean forceConversion = true; | ||
|
||
public void setImageFormat(String imageFormat) { | ||
this.imageFormat = imageFormat; | ||
} | ||
|
||
public void setForceConversion(boolean forceConversion) { | ||
this.forceConversion = forceConversion; | ||
} | ||
|
||
/** | ||
* SemVer string that indicates the version of the Test Plan Generator module (org.eclipse.dataspacetck:test-plan-generator) | ||
* to use. This should typically be the same version as the other TCK libraries | ||
* <p> | ||
* The default is the same version as the plugin | ||
*/ | ||
public abstract Property<String> getGeneratorVersion(); | ||
|
||
/** | ||
* Whether Mermaid/PlantUML diagrams should be converted - and embedded as - images in the Test Plan document. | ||
* Note that this may involve remote calls to third-party services! | ||
* <p> | ||
* The default is {@code true} | ||
*/ | ||
public boolean forceConversion() { | ||
return forceConversion; | ||
} | ||
|
||
/** | ||
* The image format for conversion. Can be "svg" or "png" and is only relevant if {@code forceConversion} is set to {@code true} | ||
* <p> | ||
* The default is "svg" | ||
*/ | ||
public String getImageFormat() { | ||
return imageFormat; | ||
} | ||
|
||
/** | ||
* Output directory of the generated Test Plan. | ||
* <p> | ||
* The default is {@code {rootProject}/build} | ||
*/ | ||
public abstract Property<String> getOutputDirectory(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters