File tree Expand file tree Collapse file tree 4 files changed +4
-18
lines changed
bulk-model-sync-gradle/src/main/kotlin/org/modelix/model/sync/bulk/gradle
docs/global/modules/core/pages/reference Expand file tree Collapse file tree 4 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,6 @@ class ModelSyncGradlePlugin : Plugin<Project> {
152
152
val importIntoModelServer = project.tasks.register(importTaskName, ImportIntoModelServer ::class .java) {
153
153
it.dependsOn(previousTask)
154
154
it.inputDir.set(jsonDir)
155
- it.registeredLanguages.set(syncDirection.registeredLanguages)
156
155
val serverTarget = syncDirection.target as ServerTarget
157
156
158
157
it.url.set(serverTarget.url)
Original file line number Diff line number Diff line change 17
17
package org.modelix.model.sync.bulk.gradle.config
18
18
19
19
import org.gradle.api.Action
20
+ import org.modelix.kotlin.utils.DeprecationInfo
20
21
import org.modelix.model.api.ILanguage
21
22
import java.io.File
22
23
@@ -40,7 +41,6 @@ data class SyncDirection(
40
41
internal var source : SyncEndpoint ? = null ,
41
42
internal var target : SyncEndpoint ? = null ,
42
43
internal val includedModules : Set <String > = mutableSetOf(),
43
- internal val registeredLanguages : Set <ILanguage > = mutableSetOf(),
44
44
internal val includedModulePrefixes : Set <String > = mutableSetOf(),
45
45
internal var continueOnError : Boolean = false ,
46
46
) {
@@ -76,9 +76,9 @@ data class SyncDirection(
76
76
(includedModulePrefixes as MutableSet ).add(prefix)
77
77
}
78
78
79
- fun registerLanguage ( language : ILanguage ) {
80
- (registeredLanguages as MutableSet ).add(language )
81
- }
79
+ @Deprecated( " Registering languages is not necessary. This call can be safely removed. " , ReplaceWith ( " " ))
80
+ @DeprecationInfo(since = " 2024-01-08 " )
81
+ fun registerLanguage ( language : ILanguage ) { }
82
82
83
83
fun enableContinueOnError (state : Boolean ) {
84
84
continueOnError = state
Original file line number Diff line number Diff line change @@ -28,8 +28,6 @@ import org.gradle.api.tasks.PathSensitive
28
28
import org.gradle.api.tasks.PathSensitivity
29
29
import org.gradle.api.tasks.TaskAction
30
30
import org.modelix.model.ModelFacade
31
- import org.modelix.model.api.ILanguage
32
- import org.modelix.model.api.ILanguageRepository
33
31
import org.modelix.model.api.INode
34
32
import org.modelix.model.api.PNodeAdapter
35
33
import org.modelix.model.client2.ModelClientV2
@@ -57,9 +55,6 @@ abstract class ImportIntoModelServer @Inject constructor(of: ObjectFactory) : De
57
55
@Input
58
56
val url: Property <String > = of.property(String ::class .java)
59
57
60
- @Input
61
- val registeredLanguages: SetProperty <ILanguage > = of.setProperty(ILanguage ::class .java)
62
-
63
58
@Input
64
59
val includedModules: SetProperty <String > = of.setProperty(String ::class .java)
65
60
@@ -74,10 +69,6 @@ abstract class ImportIntoModelServer @Inject constructor(of: ObjectFactory) : De
74
69
75
70
@TaskAction
76
71
fun import () {
77
- registeredLanguages.get().forEach {
78
- ILanguageRepository .default.registerLanguage(it)
79
- }
80
-
81
72
val inputDir = inputDir.get().asFile
82
73
val repoId = RepositoryId (repositoryId.get())
83
74
Original file line number Diff line number Diff line change @@ -63,10 +63,6 @@ This means that only a minimal amount of write operations is used to update the
63
63
|Action<LocalTarget>
64
64
|Defines a local target (MPS).
65
65
66
- |`registerLanguage`
67
- |ILanguage
68
- |Registers the given language and all of its concepts for the synchronisation process.
69
-
70
66
|`includeModule`
71
67
|String
72
68
|Includes the module specified by the given fully qualified name in the synchronisation process.
You can’t perform that action at this time.
0 commit comments