Skip to content

Commit

Permalink
fix: mistaken auto import of File for github release script
Browse files Browse the repository at this point in the history
  • Loading branch information
2BAB committed May 11, 2022
1 parent 88d9b94 commit e1510c0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions buildSrc/src/main/kotlin/github-release.gradle.kts
@@ -1,18 +1,23 @@

import com.github.breadmoirai.githubreleaseplugin.GithubReleaseTask
import org.gradle.internal.component.external.model.ComponentVariant
import java.util.*

val taskName = "releaseArtifactsToGithub"
val artifacts = mutableListOf<ComponentVariant.File>()
val artifacts = mutableListOf<File>()
listOf("koncat-compile-contract",
"koncat-gradle-plugin",
"koncat-processor",
"koncat-processor-api",
"koncat-runtime",
"koncat-runtime-model",
"koncat-runtime-stub").forEach {
val libs = ComponentVariant.File(listOf(it, "build", "libs").joinToString(ComponentVariant.File.separator))
val libs = File(
listOf(
it,
"build",
"libs"
).joinToString(File.separator)
)
artifacts.add(libs)
}

Expand All @@ -36,7 +41,7 @@ val releaseNotes = ""
createGithubReleaseTaskInternal(artifacts, token, repo, tagBranch, koncatVer, releaseNotes)

fun createGithubReleaseTaskInternal(
artifacts: List<ComponentVariant.File>,
artifacts: List<File>,
token: String,
repo: String,
tagBranch: String,
Expand Down

0 comments on commit e1510c0

Please sign in to comment.