In the main .adoc file where it includes other .adoc files, it is possible to declare globally just once the following sentence:
:imagesdir: ./figures/
How to accomplish the same goal, to declare globally just once that all the paragraphs in the document should be justified? - Yes, the final document is going to be exported to HTML and PDF formats.
Otherwise, practically is mandatory to declare for each paragraph [.text-center], it according with:
AsciiDoc is a content markup language, not a presentation markup language. Whether content is justified left, right, or center is a presentation concern.
What you describe is an attribute definition, not a sentence.
You can customize your presentation to reflect values in attributes. However, the standard AsciiDoc approach is to apply roles to blocks or inline runs, and those roles get converted to CSS classes for HTML or PDF "styles" for Asciidoctor PDF.
If you need to customize your HTML to apply justification, you can use Docinfo files to add custom CSS (and JavaScript).
For example, given the following document:
And the file
docinfo.htmlin the same folder as the document:The result is that all paragraphs on the page become justified:
For Asciidoctor PDF, your theme could specify: