Skip to content

Commit

Permalink
shared spigot
Browse files Browse the repository at this point in the history
  • Loading branch information
IzzelAliz committed Jan 21, 2021
1 parent 8ad296f commit 028b1e9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'io.izzel.arclight'
version '1.11'
version '1.12'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class ArclightExtension {
private boolean wipeVersion = false
private boolean reobfVersion = false
private List<String> installerInfo = new ArrayList<>()
private boolean sharedSpigot = true

ArclightExtension(Project project) {
this.project = project
Expand Down Expand Up @@ -72,4 +73,12 @@ class ArclightExtension {
void setReobfVersion(boolean reobfVersion) {
this.reobfVersion = reobfVersion
}

boolean getSharedSpigot() {
return sharedSpigot
}

void setSharedSpigot(boolean sharedSpigot) {
this.sharedSpigot = sharedSpigot
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ArclightGradlePlugin implements Plugin<Project> {
def arclightExt = project.extensions.create('arclight', ArclightExtension, project)
def conf = project.configurations.create('arclight')
project.configurations.compile.extendsFrom(conf)
def buildTools = project.file("${project.buildDir}/arclight_cache/buildtools")
def buildTools = project.file("${arclightExt.sharedSpigot ? project.buildDir : project.rootProject.buildDir}/arclight_cache/buildtools")
def buildToolsFile = new File(buildTools, 'BuildTools.jar')
def downloadSpigot = project.tasks.create('downloadBuildTools', DownloadBuildToolsTask, {
it.output = buildToolsFile
Expand Down

0 comments on commit 028b1e9

Please sign in to comment.