-
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.
* Rewire source sets and tasks via intermediate file collections. Add "compile", "import", "include" and "link" collections to consume the corresponding type. Rename the resolvable providers to "compilables", ""importables", "includables" and "linkables". * Update nomenclature and remove obsolete properties. * Remove MetalApplication.archive
- Loading branch information
1 parent
cb3d258
commit bf2ed76
Showing
27 changed files
with
492 additions
and
510 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
75 changes: 75 additions & 0 deletions
75
plugins/src/main/java/br/dev/pedrolamarao/gradle/metal/asm/MetalAsmSourceSet.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,75 @@ | ||
package br.dev.pedrolamarao.gradle.metal.asm; | ||
|
||
import br.dev.pedrolamarao.gradle.metal.base.MetalSourceSet; | ||
import org.gradle.api.NonNullApi; | ||
import org.gradle.api.file.ConfigurableFileCollection; | ||
import org.gradle.api.file.FileCollection; | ||
import org.gradle.api.provider.ListProperty; | ||
|
||
import javax.inject.Inject; | ||
|
||
/** | ||
* Assembler source set. | ||
*/ | ||
@NonNullApi | ||
public abstract class MetalAsmSourceSet extends MetalSourceSet | ||
{ | ||
private final FileCollection linkables; | ||
|
||
private final String name; | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param linkables linkable elements | ||
* @param name source set name | ||
*/ | ||
@Inject | ||
public MetalAsmSourceSet (FileCollection linkables, String name) | ||
{ | ||
this.linkables = linkables; | ||
this.name = name; | ||
} | ||
|
||
/** | ||
* Compile options. | ||
* | ||
* @return property | ||
*/ | ||
public abstract ListProperty<String> getCompileOptions (); | ||
|
||
/** | ||
* Include dependencies. | ||
* | ||
* @return configurable collection | ||
*/ | ||
public abstract ConfigurableFileCollection getInclude (); | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
@Override | ||
public String getName () | ||
{ | ||
return name; | ||
} | ||
|
||
/** | ||
* Link elements. | ||
* | ||
* @return collection | ||
*/ | ||
public FileCollection getLinkables () | ||
{ | ||
return linkables; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
@Override | ||
public String toString () | ||
{ | ||
return "MetalAsmSourceSet[%s]".formatted(name); | ||
} | ||
} |
79 changes: 0 additions & 79 deletions
79
plugins/src/main/java/br/dev/pedrolamarao/gradle/metal/asm/MetalAsmSources.java
This file was deleted.
Oops, something went wrong.
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.