DependencySpec

public final class DependencySpec

You can configure the dependencies of Mindustry and Arc. NOTE: remember to call mindustryRepo and importMindustry in your build.gradle(.kts)

Constructors

Link copied to clipboard
public DependencySpec DependencySpec(Project target)

Types

Link copied to clipboard
public final class ArcSpec

To configure Arc dependency

Link copied to clipboard
public final class MindustrySpec

To configure Mindustry dependency

Functions

Link copied to clipboard
public final Unit arc(String version)
public final Unit arc(Map<String, Object> map)

Fetch the Arc from arc jitpack.

Link copied to clipboard
public final Dependency ArcDependency(String version)

Declare an Arc dependency from arc jitpack.

Link copied to clipboard
public final Unit arcLatestCommit()

Fetch the latest Arc from arc jitpack.

Link copied to clipboard
public final Unit arcLatestTag()

Fetch the latest Arc from arc jitpack.

Link copied to clipboard
public final Dependency Dependency(String fullName, String version)

Declare a dependency.

Link copied to clipboard
public final DependencySpec.ArcSpec getArc()
Link copied to clipboard
public final Property<IDependency> getArcDependency()

Import v135 as default for now. DO NOT trust this behavior, it may change later.

Link copied to clipboard
public final String getArcRepo()
Link copied to clipboard
public final LatestNotation getLatest()
Link copied to clipboard
public final LatestReleaseNotation getLatestRelease()
Link copied to clipboard
public final LatestReleaseNotation getLatestTag()
Link copied to clipboard
public final DependencySpec.MindustrySpec getMindustry()
Link copied to clipboard
public final Property<IDependency> getMindustryDependency()

The dependency notation of Mindustry.

Link copied to clipboard
public final String getMindustryMirrorRepo()
Link copied to clipboard
public final String getMindustryRepo()
Link copied to clipboard
public final Project getTarget()
Link copied to clipboard
public final Unit mindustry(String version)
public final Unit mindustry(Map<String, Object> map)

Fetch the Mindustry from mindustry jitpack.

Link copied to clipboard
public final Dependency MindustryDependency(String version)

Declare a Mindustry dependency from mindustry jitpack.

Link copied to clipboard
public final Unit mindustryLatestRelease()

Fetch the latest Mindustry from mindustry jitpack.

Link copied to clipboard
public final Unit mindustryMirror(String version)

Fetch the Mindustry from mindustry jitpack mirror.

public final Unit mindustryMirror(Map<String, Object> map)

Fetch the dependency of Mindustry from mindustry jitpack mirror.

Link copied to clipboard
public final Unit mindustryMirrorLatestCommit()

Fetch the latest mindustry jitpack mirror.

Link copied to clipboard
public final MirrorJitpackDependency MirrorDependency(String version)

Declare a Mindustry dependency from mindustry jitpack mirror.

Properties

Link copied to clipboard
private final DependencySpec.ArcSpec arc
Link copied to clipboard
@DefaultValue(default = "on "v135"")
private final Property<IDependency> arcDependency

Import v135 as default for now. DO NOT trust this behavior, it may change later.

Link copied to clipboard
private final String ArcRepo
Link copied to clipboard
private final LatestNotation latest

A notation represents the latest version.

Link copied to clipboard
private final LatestReleaseNotation latestRelease

A notation represents the latest release.

Link copied to clipboard
private final LatestReleaseNotation latestTag

A notation represents the latest tag.

Link copied to clipboard
private final DependencySpec.MindustrySpec mindustry
Link copied to clipboard
@DefaultValue(default = "on "v135"")
private final Property<IDependency> mindustryDependency

The dependency notation of Mindustry.

Link copied to clipboard
private final String MindustryMirrorRepo
Link copied to clipboard
private final String MindustryRepo
Link copied to clipboard
private final Project target