Skip to content

Commit

Permalink
prepping
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Jun 14, 2024
1 parent 1b75d68 commit 5f131cd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import java.nio.file.StandardCopyOption
import java.nio.file.Files
import java.text.SimpleDateFormat
import java.util.Date

Expand Down Expand Up @@ -218,7 +220,16 @@ task buildRuntime( type: Copy ){
include "box.json"
}
destinationDir = file( 'build/forgebox' )

doLast {
file( "build/evergreen" ).mkdirs()
if( branch == 'development' ){
Files.copy( file( "build/distributions/boxlang-servlet-${version}.war" ).toPath(), file( "build/evergreen/boxlang-servlet-snapshot.war" ).toPath(), StandardCopyOption.REPLACE_EXISTING )
Files.copy( file( "build/distributions/boxlang-servlet-${version}-all.jar" ).toPath(), file( "build/evergreen/boxlang-servlet-snapshot-all.jar" ).toPath(), StandardCopyOption.REPLACE_EXISTING )
} else {
Files.copy( file( "build/distributions/boxlang-servlet-${version}.zip" ).toPath(), file( "build/evergreen/boxlang-servlet-latest.zip" ).toPath(), StandardCopyOption.REPLACE_EXISTING )
}

println "+ CommandBox Engine created in the build/forgebox folder, ready for publishing"
}
}
Expand Down

0 comments on commit 5f131cd

Please sign in to comment.