-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #372 from asciidoctor/development-2.0
Release 2.2.0
- Loading branch information
Showing
89 changed files
with
1,880 additions
and
867 deletions.
There are no files selected for viewing
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
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
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
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
48 changes: 48 additions & 0 deletions
48
...-gradle-base/src/main/groovy/org/asciidoctor/gradle/base/AsciidoctorModuleDefinition.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,48 @@ | ||
/* | ||
* Copyright 2013-2019 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.asciidoctor.gradle.base; | ||
|
||
/** Describes a converter. | ||
* | ||
* @since 2.2.0 | ||
*/ | ||
public interface AsciidoctorModuleDefinition { | ||
/** Use the default version of this component | ||
* | ||
*/ | ||
void use(); | ||
|
||
/** Set the version of the component to use. | ||
* | ||
* @param o Any object can can be converted to a String using | ||
* {@code org.ysb33r.grolifant.api.StringUtils.stringize} | ||
*/ | ||
void setVersion(Object o); | ||
|
||
/** Declarative way in DSL to set the version of the component to use. | ||
* | ||
* @param o Any object can can be converted to a String using | ||
* {@code org.ysb33r.grolifant.api.StringUtils.stringize} | ||
*/ | ||
void version(Object o); | ||
|
||
/** Version of the component | ||
* | ||
* @return Returns version to use, or {@code null} if no version was set. | ||
* The latter usually implies that the specific component is not needed. | ||
*/ | ||
String getVersion(); | ||
} |
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
Oops, something went wrong.