forked from QuiltMC/quilt-mappings
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
name AbstractArchiveTask subclass tasks using its archive name compos…
…ition methods make the default ArtifactFileTask destination build/libs eliminate MappingsProjectPlugin#getLibsDir (its already the default for all tasks it was used for) add QuiltMappingsArtifactTask, implement it on all tasks that used ARCHIVE_FILE_NAME_PREFIX, and configure implementing tasks' baseName and version in QuiltMappingsBasePlugin improve som javadocs
- Loading branch information
1 parent
6f3bcc0
commit 7d4c13e
Showing
14 changed files
with
123 additions
and
51 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
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
22 changes: 22 additions & 0 deletions
22
buildSrc/src/main/java/quilt/internal/tasks/QuiltMappingsArtifactTask.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,22 @@ | ||
package quilt.internal.tasks; | ||
|
||
import org.gradle.api.Action; | ||
import org.gradle.api.Task; | ||
import org.gradle.api.tasks.TaskCollection; | ||
import org.gradle.api.tasks.bundling.AbstractArchiveTask; | ||
import quilt.internal.plugin.QuiltMappingsBasePlugin; | ||
|
||
/** | ||
* A task that creates an artifact whose name uses Quilt Mappings' name and version. | ||
* <p> | ||
* Has no effect if the implementing task isn't a subclass of either | ||
* {@link ArtifactFileTask} or {@link AbstractArchiveTask}. | ||
* <p> | ||
* {@link QuiltMappingsBasePlugin} {@linkplain TaskCollection#configureEach(Action) configures} | ||
* the base name and the version. | ||
*/ | ||
public interface QuiltMappingsArtifactTask extends MappingsTask { | ||
static boolean isInstance(Task task) { | ||
return task instanceof QuiltMappingsArtifactTask; | ||
} | ||
} |
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
11 changes: 11 additions & 0 deletions
11
buildSrc/src/main/java/quilt/internal/tasks/build/IntermediaryMappingsV2JarTask.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
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
Oops, something went wrong.
7d4c13e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No difference between head and target.
7d4c13e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With commit 7d4c13e, 11 file(s) were updated with 24 line(s) added and 24 removed compared to the latest Quilt Mappings version.
View the diff here: