Skip to content

Commit b254831

Browse files
Adds updated wrapper jars for grails 3 and 4 (See: apache/grails-wrapper#7)
1 parent 7f03b2d commit b254831

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
121f9336c8933a2ada9bd236d10fb876 grails-wrapper.jar
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
f41358fa6f48c8e84d50ca88702aed37 grails-wrapper.jar

buildSrc/src/main/groovy/org/grails/gradle/CopyAssetsTask.groovy

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class CopyAssetsTask extends DefaultTask {
1616
static final String[] JAVASCRIPT_EXTENSIONS = ["*.js"] as String[]
1717
static final String[] CSS_EXTENSIONS = ["*.css"] as String[]
1818
static final String[] IMAGE_EXTENSIONS = ["*.ico", "*.png", "*.svg", "*.jpg", "*.jpeg", "*.gif"]
19+
static final String[] FILE_EXTENSIONS = ["*.jar", "*.md5"]
1920

2021
@InputDirectory
2122
final Property<File> assets = project.objects.property(File)
@@ -29,6 +30,7 @@ class CopyAssetsTask extends DefaultTask {
2930
copyCss()
3031
copyJavascripts()
3132
copyFonts()
33+
copyFiles()
3234
}
3335

3436
File dist() {
@@ -96,4 +98,18 @@ class CopyAssetsTask extends DefaultTask {
9698
}
9799
})
98100
}
101+
102+
void copyFiles() {
103+
File outputFiles = new File(dist().absolutePath + '/files')
104+
outputFiles.mkdir()
105+
File files = new File(assets.get().absolutePath + '/files')
106+
project.copy(new Action<CopySpec>() {
107+
@Override
108+
void execute(CopySpec copySpec) {
109+
copySpec.from(files)
110+
copySpec.into(outputFiles)
111+
copySpec.include(recursiveIncludes(FILE_EXTENSIONS))
112+
}
113+
})
114+
}
99115
}

0 commit comments

Comments
 (0)