Skip to content

Commit

Permalink
fix reference error
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed Dec 8, 2024
1 parent ed2f9c4 commit 0d6f80b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ open class GenerateSekretBuildScriptTask : DefaultTask() {
@get:Input
open val targets: ListProperty<Target> = project.objects.listProperty(Target::class.java)

@get:Input
open val kotlinTargets: ListProperty<KotlinTarget> = project.objects.listProperty(KotlinTarget::class.java)

@get:Input
open val sourceSets: ListProperty<String> = project.objects.listProperty(String::class.java)

Expand All @@ -65,7 +62,6 @@ open class GenerateSekretBuildScriptTask : DefaultTask() {

val allTargets = listOf(
targets.get(),
Target.fromKotlinTargets(kotlinTargets.get()),
Target.fromSourceSetNames(sourceSets.get())
).flatten().filterNotNull()

Expand All @@ -81,7 +77,6 @@ open class GenerateSekretBuildScriptTask : DefaultTask() {
enabled.set(extension.properties.enabled)
packageName.set(extension.properties.packageName)
targets.set(project.targetsMapped)
kotlinTargets.set(project.allTargets)
sourceSets.set(project.sourceSets.map { it.name })
outputDirectory.set(project.findProject("sekret")?.projectDir ?: File(project.projectDir, "sekret"))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ open class GenerateSekretTask : DefaultTask() {
@get:Input
open val targets: SetProperty<Target> = project.objects.setProperty(Target::class.java)

@get:Input
open val kotlinTargets: ListProperty<KotlinTarget> = project.objects.listProperty(KotlinTarget::class.java)

@get:Input
open val sourceSets: ListProperty<String> = project.objects.listProperty(String::class.java)

Expand Down Expand Up @@ -74,7 +71,6 @@ open class GenerateSekretTask : DefaultTask() {

val allTargets = listOf(
targets.get(),
Target.fromKotlinTargets(kotlinTargets.get()),
Target.fromSourceSetNames(sourceSets.get())
).flatten().filterNotNull()

Expand Down Expand Up @@ -129,7 +125,6 @@ open class GenerateSekretTask : DefaultTask() {
enabled.set(extension.properties.enabled)
packageName.set(extension.properties.packageName)
targets.set(project.targetsMapped)
kotlinTargets.set(project.allTargets)
sourceSets.set(project.sourceSets.map { it.name })
encryptionKey.set(extension.properties.encryptionKey)
outputDirectory.set(project.findProject("sekret")?.projectDir ?: File(project.projectDir, "sekret"))
Expand Down

0 comments on commit 0d6f80b

Please sign in to comment.