-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new updates from sb2 to sb3, export applied directly from updateF…
…ile method (#342)
- Loading branch information
1 parent
80fa00c
commit d063455
Showing
16 changed files
with
107 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/main/java/co/com/bancolombia/factory/upgrades/actions/UpgradeY2023M02D13Gradle.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package co.com.bancolombia.factory.upgrades.actions; | ||
|
||
import static co.com.bancolombia.Constants.MainFiles.APP_BUILD_GRADLE; | ||
import static co.com.bancolombia.Constants.MainFiles.MAIN_GRADLE; | ||
|
||
import co.com.bancolombia.factory.ModuleBuilder; | ||
import co.com.bancolombia.factory.upgrades.UpdateUtils; | ||
import co.com.bancolombia.factory.upgrades.UpgradeAction; | ||
import lombok.SneakyThrows; | ||
|
||
public class UpgradeY2023M02D13Gradle implements UpgradeAction { | ||
|
||
@Override | ||
@SneakyThrows | ||
public boolean up(ModuleBuilder builder) { | ||
return builder.updateFile( | ||
MAIN_GRADLE, | ||
content -> { | ||
String res = | ||
UpdateUtils.replace( | ||
content, | ||
"tasks.withType(JavaCompile) {", | ||
"tasks.withType(JavaCompile).configureEach {"); | ||
res = | ||
UpdateUtils.replace( | ||
res, | ||
"task jacocoMergedReport(type: JacocoReport) {", | ||
"tasks.register('jacocoMergedReport', JacocoReport) {"); | ||
res = | ||
UpdateUtils.replace( | ||
res, | ||
"reportsDirectory = file(\"$buildDir/reports\")", | ||
"reportsDirectory.set(file(\"$buildDir/reports\"))"); | ||
return res; | ||
}) | ||
| builder.updateFile( | ||
APP_BUILD_GRADLE, | ||
content -> | ||
UpdateUtils.replace( | ||
content, | ||
"task explodedJar(type: Copy) {", | ||
"tasks.register('explodedJar', Copy) {")); | ||
} | ||
|
||
@Override | ||
public String name() { | ||
return "2.4.10->3.0.0"; | ||
} | ||
|
||
@Override | ||
public String description() { | ||
return "Update gradle tasks"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters