File tree Expand file tree Collapse file tree 16 files changed +154
-190
lines changed
bulk-model-sync-gradle-test
model-api-gen-gradle-test
mps-model-adapters-plugin Expand file tree Collapse file tree 16 files changed +154
-190
lines changed Original file line number Diff line number Diff line change
1
+ plugins {
2
+ `kotlin- dsl`
3
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2024.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ dependencyResolutionManagement {
17
+ repositories.gradlePluginPortal()
18
+ versionCatalogs {
19
+ create(" libs" ) {
20
+ from(files(" ../gradle/libs.versions.toml" ))
21
+ }
22
+ }
23
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2024.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ // For some projects we need to redeclare repositories on project level
18
+ // because plugins like npm and intellij may override our settings
19
+ repositories {
20
+ val modelixRegex = " org\\ .modelix.*"
21
+ mavenLocal {
22
+ content {
23
+ includeGroupByRegex(modelixRegex)
24
+ }
25
+ }
26
+ gradlePluginPortal {
27
+ content {
28
+ excludeGroupByRegex(modelixRegex)
29
+ }
30
+ }
31
+ maven {
32
+ url = uri(" https://artifacts.itemis.cloud/repository/maven-mps/" )
33
+ content {
34
+ includeGroupByRegex(modelixRegex)
35
+ includeGroup(" com.jetbrains" )
36
+ }
37
+ }
38
+ mavenCentral {
39
+ content {
40
+ excludeGroupByRegex(modelixRegex)
41
+ }
42
+ }
43
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2024.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ val modelixRegex = " org\\ .modelix.*"
18
+ pluginManagement {
19
+ repositories {
20
+ mavenLocal {
21
+ content {
22
+ includeGroupByRegex(modelixRegex)
23
+ }
24
+ }
25
+ gradlePluginPortal {
26
+ content {
27
+ excludeGroupByRegex(modelixRegex)
28
+ }
29
+ }
30
+ mavenCentral {
31
+ content {
32
+ excludeGroupByRegex(modelixRegex)
33
+ }
34
+ }
35
+ maven {
36
+ url = uri(" https://artifacts.itemis.cloud/repository/maven-mps/" )
37
+ content {
38
+ includeGroupByRegex(modelixRegex)
39
+ }
40
+ }
41
+ }
42
+ }
43
+ dependencyResolutionManagement {
44
+ repositoriesMode.set(RepositoriesMode .PREFER_PROJECT )
45
+ repositories {
46
+ gradlePluginPortal {
47
+ content {
48
+ excludeGroupByRegex(modelixRegex)
49
+ }
50
+ }
51
+ mavenCentral {
52
+ content {
53
+ excludeGroupByRegex(modelixRegex)
54
+ }
55
+ }
56
+ maven {
57
+ url = uri(" https://artifacts.itemis.cloud/repository/maven-mps/" )
58
+ content {
59
+ includeGroupByRegex(modelixRegex)
60
+ includeGroup(" com.jetbrains" )
61
+ }
62
+ }
63
+ }
64
+ }
File renamed without changes.
Original file line number Diff line number Diff line change @@ -171,27 +171,6 @@ subprojects {
171
171
}
172
172
173
173
allprojects {
174
- repositories {
175
- val modelixRegex = " org\\ .modelix.*"
176
- mavenLocal {
177
- content {
178
- includeGroupByRegex(modelixRegex)
179
- }
180
- }
181
- maven {
182
- url = uri(" https://artifacts.itemis.cloud/repository/maven-mps/" )
183
- content {
184
- includeGroupByRegex(modelixRegex)
185
- includeGroup(" com.jetbrains" ) // for our mps dependencies
186
- }
187
- }
188
- mavenCentral {
189
- content {
190
- excludeGroupByRegex(modelixRegex)
191
- }
192
- }
193
- }
194
-
195
174
publishing {
196
175
repositories {
197
176
maven {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,27 +19,6 @@ plugins {
19
19
id(" org.modelix.bulk-model-sync" )
20
20
}
21
21
22
- repositories {
23
- val modelixRegex = " org\\ .modelix.*"
24
- gradlePluginPortal {
25
- content {
26
- excludeGroupByRegex(modelixRegex)
27
- }
28
- }
29
- maven {
30
- url = uri(" https://artifacts.itemis.cloud/repository/maven-mps/" )
31
- content {
32
- includeGroupByRegex(modelixRegex)
33
- includeGroup(" com.jetbrains" )
34
- }
35
- }
36
- mavenCentral {
37
- content {
38
- excludeGroupByRegex(modelixRegex)
39
- }
40
- }
41
- }
42
-
43
22
val kotlinGenDir = project.layout.buildDirectory.dir(" metamodel/kotlin" ).get().asFile.apply { mkdirs() }
44
23
45
24
dependencies {
Original file line number Diff line number Diff line change 16
16
17
17
pluginManagement {
18
18
includeBuild(" .." )
19
- val modelixRegex = " org\\ .modelix.*"
20
- repositories {
21
- gradlePluginPortal {
22
- content {
23
- excludeGroupByRegex(modelixRegex)
24
- }
25
- }
26
- maven {
27
- url = uri(" https://artifacts.itemis.cloud/repository/maven-mps/" )
28
- content {
29
- includeGroupByRegex(modelixRegex)
30
- }
31
- }
32
- mavenCentral {
33
- content {
34
- excludeGroupByRegex(modelixRegex)
35
- }
36
- }
37
- }
19
+ includeBuild(" ../build-logic" )
38
20
dependencyResolutionManagement {
39
21
versionCatalogs {
40
22
create(" libs" ) {
41
23
from(files(" ../gradle/libs.versions.toml" ))
42
24
}
43
25
}
44
- repositories {
45
- gradlePluginPortal {
46
- content {
47
- excludeGroupByRegex(modelixRegex)
48
- }
49
- }
50
- maven {
51
- url = uri(" https://artifacts.itemis.cloud/repository/maven-mps/" )
52
- content {
53
- includeGroupByRegex(modelixRegex)
54
- includeGroup(" com.jetbrains" )
55
- }
56
- }
57
- mavenCentral {
58
- content {
59
- excludeGroupByRegex(modelixRegex)
60
- }
61
- }
62
- }
63
26
}
64
27
}
65
28
29
+ plugins {
30
+ id(" modelix-repositories" )
31
+ }
32
+
66
33
includeBuild(" .." )
67
34
include(" graph-lang-api" )
Original file line number Diff line number Diff line change @@ -7,32 +7,6 @@ plugins {
7
7
}
8
8
9
9
subprojects {
10
- repositories {
11
- val modelixRegex = " org\\ .modelix.*"
12
- mavenLocal {
13
- content {
14
- includeGroupByRegex(modelixRegex)
15
- }
16
- }
17
- gradlePluginPortal {
18
- content {
19
- excludeGroupByRegex(modelixRegex)
20
- }
21
- }
22
- maven {
23
- url = uri(" https://artifacts.itemis.cloud/repository/maven-mps/" )
24
- content {
25
- includeGroupByRegex(modelixRegex)
26
- includeGroup(" com.jetbrains" )
27
- }
28
- }
29
- mavenCentral {
30
- content {
31
- excludeGroupByRegex(modelixRegex)
32
- }
33
- }
34
- }
35
-
36
10
plugins.withType<NodePlugin > {
37
11
project.extensions.configure<NodeExtension > {
38
12
version.set(libs.versions.node)
You can’t perform that action at this time.
0 commit comments