Fix doc descriptor server url

This commit is contained in:
Andrea Boriero 2022-05-06 16:52:11 +02:00 committed by Andrea Boriero
parent 81d6fef345
commit 26cd9d27ff
2 changed files with 11 additions and 1 deletions

View File

@ -27,6 +27,7 @@ public class DocumentationPublishing {
private final DirectoryProperty stagingDirectory;
private final Property<String> docServerUrl;
private final Property<String> docDescriptorServerUrl;
private final RegularFileProperty updatedJsonFile;
@ -43,6 +44,11 @@ public class DocumentationPublishing {
.property( String.class )
.convention( "filemgmt-prod-sync.jboss.org:/docs_htdocs/hibernate/orm" );
docDescriptorServerUrl = project.getObjects()
.property( String.class )
.convention( "filemgmt-prod-sync.jboss.org:/docs_htdocs/hibernate" );
updatedJsonFile = project.getObjects()
.fileProperty()
.convention( project.getLayout().getBuildDirectory().file( "doc-pub/orm.json" ) );
@ -64,6 +70,10 @@ public class DocumentationPublishing {
return docServerUrl;
}
public Property<String> getDocDescriptorServerUrl() {
return docDescriptorServerUrl;
}
public DirectoryProperty getStagingDirectory() {
return stagingDirectory;
}

View File

@ -28,7 +28,7 @@ public abstract class PublishDescriptorTask extends DefaultTask {
setGroup( "Release" );
setDescription( "Publishes the documentation publication descriptor (JSON)" );
docServerUrl = config.getDocServerUrl();
docServerUrl = config.getDocDescriptorServerUrl();
jsonFile = config.getUpdatedJsonFile();
}