Skip to content

Commit

Permalink
fix(bulk-model-sync-gradle): change includedModules property type to set
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuster23 committed Nov 6, 2023
1 parent 25ce160 commit a08eb31
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import kotlinx.coroutines.runBlocking
import org.gradle.api.DefaultTask
import org.gradle.api.file.DirectoryProperty
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.ListProperty
import org.gradle.api.provider.Property
import org.gradle.api.provider.SetProperty
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.Optional
import org.gradle.api.tasks.OutputDirectory
Expand Down Expand Up @@ -62,10 +62,10 @@ abstract class ExportFromModelServer @Inject constructor(of: ObjectFactory) : De
val outputDir: DirectoryProperty = of.directoryProperty()

@Input
val includedModules: ListProperty<String> = of.listProperty(String::class.java)
val includedModules: SetProperty<String> = of.setProperty(String::class.java)

@Input
val includedModulePrefixes: ListProperty<String> = of.listProperty(String::class.java)
val includedModulePrefixes: SetProperty<String> = of.setProperty(String::class.java)

@TaskAction
fun export() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package org.modelix.model.sync.bulk.gradle.tasks
import org.gradle.api.DefaultTask
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.ListProperty
import org.gradle.api.provider.Property
import org.gradle.api.provider.SetProperty
import org.gradle.api.tasks.CacheableTask
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.Optional
Expand Down Expand Up @@ -55,10 +55,10 @@ abstract class GenerateAntScriptForMps @Inject constructor(of: ObjectFactory) :
val antScriptFile: RegularFileProperty = of.fileProperty()

@Input
val includedModules: ListProperty<String> = of.listProperty(String::class.java)
val includedModules: SetProperty<String> = of.setProperty(String::class.java)

@Input
val includedModulePrefixes: ListProperty<String> = of.listProperty(String::class.java)
val includedModulePrefixes: SetProperty<String> = of.setProperty(String::class.java)

@Optional
@Input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import kotlinx.coroutines.runBlocking
import org.gradle.api.DefaultTask
import org.gradle.api.file.DirectoryProperty
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.ListProperty
import org.gradle.api.provider.Property
import org.gradle.api.provider.SetProperty
import org.gradle.api.tasks.Input
Expand Down Expand Up @@ -58,10 +57,10 @@ abstract class ImportIntoModelServer @Inject constructor(of: ObjectFactory) : De
val registeredLanguages: SetProperty<ILanguage> = of.setProperty(ILanguage::class.java)

@Input
val includedModules: ListProperty<String> = of.listProperty(String::class.java)
val includedModules: SetProperty<String> = of.setProperty(String::class.java)

@Input
val includedModulePrefixes: ListProperty<String> = of.listProperty(String::class.java)
val includedModulePrefixes: SetProperty<String> = of.setProperty(String::class.java)

@TaskAction
fun import() {
Expand Down

0 comments on commit a08eb31

Please sign in to comment.