Version 0.9.8

This commit is contained in:
Erik C. Thauvin 2024-05-26 21:18:29 -07:00
parent 10fd25ebf6
commit 1bdbe86519
Signed by: erik
GPG key ID: 776702A6A2DA330E
4 changed files with 7 additions and 4 deletions

View file

@ -38,7 +38,7 @@ for all available configuration options.
To generate the Javadoc using [Dokka](https://github.com/Kotlin/dokka): To generate the Javadoc using [Dokka](https://github.com/Kotlin/dokka):
```java ```java
@BuildCommand(summary = "Generates Javadoc for the project") @Override
public void javadoc() throws ExitStatusException, IOException, InterruptedException { public void javadoc() throws ExitStatusException, IOException, InterruptedException {
new DokkaOperation() new DokkaOperation()
.fromProject(this) .fromProject(this)

View file

@ -1,6 +1,6 @@
bld.downloadExtensionJavadoc=false bld.downloadExtensionJavadoc=false
bld.downloadExtensionSources=true bld.downloadExtensionSources=true
bld.extensions=com.uwyn.rife2:bld-kotlin:0.9.7 bld.extensions=com.uwyn.rife2:bld-kotlin:0.9.8
bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
bld.downloadLocation= bld.downloadLocation=
bld.sourceDirectories= bld.sourceDirectories=

View file

@ -33,9 +33,10 @@ public class CompileKotlinOperationBuild extends Project {
public CompileKotlinOperationBuild() { public CompileKotlinOperationBuild() {
pkg = "rife.bld.extension"; pkg = "rife.bld.extension";
name = "bld-kotlin"; name = "bld-kotlin";
version = version(0, 9, 8, "SNAPSHOT"); version = version(0, 9, 8);
javaRelease = 17; javaRelease = 17;
downloadSources = true; downloadSources = true;
autoDownloadPurge = true; autoDownloadPurge = true;
repositories = List.of(MAVEN_LOCAL, MAVEN_CENTRAL, RIFE2_RELEASES); repositories = List.of(MAVEN_LOCAL, MAVEN_CENTRAL, RIFE2_RELEASES);

View file

@ -69,7 +69,7 @@ public class DokkaOperation extends AbstractProcessOperation<DokkaOperation> {
private static String encodeJson(final String json) { private static String encodeJson(final String json) {
var sb = new StringBuilder(json); var sb = new StringBuilder(json);
if (!json.startsWith("{") || !json.endsWith("}")) { if (!json.startsWith("{") || !json.endsWith("}")) {
sb.insert(0, "{").append("}"); sb.insert(0, "{").append('}');
} }
return StringUtils.encodeJson(sb.toString()); return StringUtils.encodeJson(sb.toString());
} }
@ -489,6 +489,8 @@ public class DokkaOperation extends AbstractProcessOperation<DokkaOperation> {
/** /**
* Sets the output directory path, {@code ./dokka} by default. * Sets the output directory path, {@code ./dokka} by default.
* <p>
* The directory to where documentation is generated, regardless of output format.
* *
* @param outputDir the output directory * @param outputDir the output directory
* @return this operation instance * @return this operation instance