Skip to content

Commit 5b4844b

Browse files
authored
Merge pull request #137 from mendix/run/3602-add-migration-file
[RUN-3602] Generate migration file when exporting module
2 parents 6cca2e7 + 58cd15b commit 5b4844b

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

build.gradle

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
plugins {
77
id 'java'
8-
id 'com.mendix.gradle.publish-module-plugin' version '1.12'
8+
id 'com.mendix.gradle.publish-module-plugin' version '1.13'
99
id 'net.researchgate.release' version '2.8.1'
1010
}
1111

@@ -23,6 +23,7 @@ mxMarketplace {
2323
moduleLicense = 'Apache V2'
2424
appDirectory = "src/CommunityCommons"
2525
versionPathPrefix = "_Version " // the path prefix within the module to the version folder
26+
createMigrationFile = true
2627
}
2728

2829
def userLibDir = "$projectDir/src/CommunityCommons/userlib"
@@ -36,6 +37,12 @@ repositories {
3637
}
3738
}
3839

40+
configurations {
41+
implementation {
42+
canBeResolved = true
43+
}
44+
}
45+
3946
dependencies {
4047
testImplementation(
4148
[group: 'com.mendix', name: 'public-api', version: "$mendixPublicApiVersion"],
@@ -86,12 +93,6 @@ task copyAllToUserlib(type: Copy) {
8693
eachFile { fileCopyDetails -> new File(destinationDir, "${fileCopyDetails.name}.${project.name}.RequiredLib").write '' }
8794
}
8895

89-
task copyRuntimeToUserlib(type: Copy) {
90-
from configurations.runtimeClasspath
91-
into userLibDir
92-
eachFile { fileCopyDetails -> new File(destinationDir, "${fileCopyDetails.name}.${project.name}.RequiredLib").write '' }
93-
}
94-
9596
tasks.named('mxBuild') {
9697
dependsOn copyAllToUserlib
9798
}
@@ -104,10 +105,6 @@ clean {
104105
delete "$userLibDir"
105106
}
106107

107-
tasks.named('exportModule') {
108-
dependsOn 'copyRuntimeToUserlib'
109-
}
110-
111108
release {
112109
tagTemplate = '$name-$version'
113110
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Include a migration file for the Java dependencies.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)