Skip to content

Commit 646a624

Browse files
authored
Merge pull request #51 from Microservice-API-Patterns/maintenance/xtextupdate2024
Maintenance/xtextupdate2024
2 parents ecd1705 + abc5151 commit 646a624

File tree

151 files changed

+819
-1767
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+819
-1767
lines changed

README.md

+14-4

changelog.md

+8

docs/index.md

+5-3

docs/updates/README.md

+2-2

docs/updates/artifacts.jar

-4.7 KB
Binary file not shown.

docs/updates/artifacts.xml.xz

-3.93 KB
Binary file not shown.

docs/updates/content.jar

-27.2 KB
Binary file not shown.

docs/updates/content.xml.xz

-13.4 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

docs/updates/p2.index

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Tue Feb 01 15:17:48 CET 2022
1+
#Tue Sep 03 12:32:38 CEST 2024
22
artifact.repository.factory.order=artifacts.xml.xz,artifacts.xml,\!
3-
version=1
43
metadata.repository.factory.order=content.xml.xz,content.xml,\!
4+
version=1
Binary file not shown.
Binary file not shown.
Binary file not shown.
-8.72 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-115 KB
Binary file not shown.
-152 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-244 KB
Binary file not shown.
Binary file not shown.
-618 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

dsl-core/README.md

+5-3

dsl-core/build.gradle

+66-84
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,88 @@
11
buildscript {
2-
repositories {
3-
mavenCentral()
4-
jcenter()
5-
}
6-
dependencies {
7-
classpath 'org.xtext:xtext-gradle-plugin:2.0.8'
8-
}
2+
repositories {
3+
mavenCentral()
4+
maven {
5+
url "https://plugins.gradle.org/m2/"
6+
}
7+
}
8+
dependencies {
9+
classpath 'org.xtext:xtext-gradle-plugin:4.0.0'
10+
}
911
}
1012

13+
14+
1115
def pomXml = new XmlSlurper().parse('pom.xml')
1216

1317
subprojects {
14-
ext.xtextVersion = '2.21.0'
15-
repositories {
16-
jcenter()
17-
}
18-
19-
apply plugin: 'java'
20-
apply plugin: 'maven-publish'
21-
apply plugin: 'org.xtext.xtend'
22-
apply from: "${rootDir}/gradle/maven-deployment.gradle"
23-
apply plugin: 'eclipse'
24-
apply plugin: 'jacoco'
25-
apply plugin: 'signing'
26-
27-
group = 'io.mdsl'
28-
version = pomXml.version
29-
30-
sourceCompatibility = '1.8'
31-
targetCompatibility = '1.8'
32-
33-
configurations.all {
34-
exclude group: 'asm'
35-
}
36-
37-
/*
18+
ext.xtextVersion = '2.35.0'
19+
20+
apply plugin: 'java-library'
21+
apply plugin: 'maven-publish'
22+
apply plugin: 'org.xtext.xtend'
23+
apply plugin: 'eclipse'
24+
apply plugin: 'jacoco'
25+
apply plugin: 'signing'
26+
27+
dependencies {
28+
implementation platform("org.eclipse.xtext:xtext-dev-bom:${xtextVersion}")
29+
}
30+
31+
group = 'io.mdsl'
32+
version = pomXml.version
33+
34+
java {
35+
sourceCompatibility = JavaVersion.VERSION_17
36+
targetCompatibility = JavaVersion.VERSION_17
37+
}
38+
39+
configurations.all {
40+
exclude group: 'asm'
41+
}
42+
43+
repositories {
44+
mavenCentral()
45+
maven {
46+
url "https://plugins.gradle.org/m2/"
47+
}
48+
}
49+
3850
// causes my local build to fail:
3951
signing {
40-
sign configurations.archives
52+
sign configurations.archives
4153
}
42-
*/
4354

44-
uploadArchives {
55+
publishing {
4556
repositories {
46-
mavenDeployer {
47-
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
48-
49-
repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") {
50-
// needed, from https://github.com/NeuronRobotics/nrjavaserial/issues/123
51-
authentication(userName: hasProperty('ossrhUsername')?ossrhUsername:'', password: hasProperty('ossrhPassword')?ossrhPassword:'')
57+
maven {
58+
def releasesRepoUrl = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
59+
def snapshotsRepoUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
60+
url = "${project.version}".endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
61+
credentials {
62+
username = project.findProperty('ossrhTokenUsername') ?: ""
63+
password = project.findProperty('ossrhTokenPassword') ?: ""
5264
}
53-
54-
snapshotRepository(url: "https://s01.oss.sonatype.org/content/repositories/snapshots/") {
55-
// needed, from https://github.com/NeuronRobotics/nrjavaserial/issues/123
56-
authentication(userName: hasProperty('ossrhUsername')?ossrhUsername:'', password: hasProperty('ossrhPassword')?ossrhPassword:'')
57-
}
58-
59-
60-
pom.project {
61-
name 'io.mdsl:io.mdsl.parent'
62-
description 'A domain-specific language to specify (micro-)service contracts, data representations and endpoints.'
63-
url 'https://microservice-api-patterns.github.io/MDSL-Specification/'
64-
65-
scm {
66-
connection 'scm:git:https://github.com/Microservice-API-Patterns/MDSL-Specification.git'
67-
developerConnection 'scm:git:ssh://github.com:Microservice-API-Patterns/MDSL-Specification.git'
68-
url 'https://github.com/Microservice-API-Patterns/MDSL-Specification/tree/master'
69-
}
70-
71-
licenses {
72-
license {
73-
name 'The Apache License, Version 2.0'
74-
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
75-
}
76-
}
77-
78-
developers {
79-
developer {
80-
name 'socadk'
81-
82-
}
83-
}
84-
}
8565
}
8666
}
8767
}
68+
69+
8870
// workaround for XText+Gradle build problems: https://github.com/eclipse/xtext/issues/1976#issuecomment-862141814
89-
configurations.all {
90-
resolutionStrategy {
91-
eachDependency { DependencyResolveDetails details ->
92-
if (details.requested.group == 'org.eclipse.platform' && details.requested.name == 'org.eclipse.core.runtime') {
93-
details.useVersion "3.19.0"
94-
}
95-
if (details.requested.group == 'org.eclipse.platform' && details.requested.name == 'org.eclipse.equinox.common') {
96-
details.useVersion("3.13.0")
97-
}
98-
}
99-
}
71+
configurations.all {
72+
resolutionStrategy {
73+
eachDependency { DependencyResolveDetails details ->
74+
if (details.requested.group == 'org.eclipse.platform' && details.requested.name == 'org.eclipse.core.runtime') {
75+
details.useVersion "3.19.0"
76+
}
77+
if (details.requested.group == 'org.eclipse.platform' && details.requested.name == 'org.eclipse.equinox.common') {
78+
details.useVersion("3.13.0")
79+
}
80+
}
81+
}
10082
}
10183
}
10284

10385

10486
configure(subprojects.findAll {it.name != 'mdsl-cli'}) {
105-
apply from: "${rootDir}/gradle/source-layout.gradle"
87+
apply from: "${rootDir}/gradle/source-layout.gradle"
10688
}

dsl-core/gradle/maven-deployment.gradle

-11
This file was deleted.

dsl-core/gradle/source-layout.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ if (name.endsWith("-tests")) {
55
resources.srcDirs = []
66
}
77
test {
8-
java.srcDirs = ['src', 'src-gen']
8+
java.srcDirs = ['src', 'src-gen', 'xtend-gen']
99
resources.srcDirs = ['src', 'src-gen']
10-
xtendOutputDir = 'xtend-gen'
10+
xtend.outputDir = 'xtend-gen'
1111
}
1212
}
1313
} else {
1414
sourceSets {
1515
main {
16-
java.srcDirs = ['src', 'src-gen']
16+
java.srcDirs = ['src', 'src-gen', 'xtend-gen']
1717
resources.srcDirs = ['src', 'src-gen']
18-
xtendOutputDir = 'xtend-gen'
18+
xtend.outputDir = 'xtend-gen'
1919
}
2020
test {
2121
java.srcDirs = []
-15 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)