Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
a02abd3394 | ||
|
ea817b2520 | ||
|
d954557000 |
@ -11,4 +11,4 @@ global:
|
|||||||
repository: null
|
repository: null
|
||||||
sc: git
|
sc: git
|
||||||
deploy:
|
deploy:
|
||||||
artifact: build/ROOT.war
|
artifact: service/build/ROOT.war
|
||||||
|
@ -12,6 +12,8 @@ buildscript {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
import static com.jdbernard.gradle.ExecUtil.*
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile localGroovy()
|
compile localGroovy()
|
||||||
compile 'ch.qos.logback:logback-classic:1.1.8'
|
compile 'ch.qos.logback:logback-classic:1.1.8'
|
||||||
|
@ -11,7 +11,8 @@ public class NLSongsContext {
|
|||||||
public static String mediaBaseUrl
|
public static String mediaBaseUrl
|
||||||
|
|
||||||
public static String makeUrl(Service service, Song song) {
|
public static String makeUrl(Service service, Song song) {
|
||||||
return mediaBaseUrl + '/' + service.localDate.toString('yyyy-MM-dd') + '_' +
|
return mediaBaseUrl + '/' + service.localDate.toString('yyyy') + "/" +
|
||||||
|
service.localDate.toString('yyyy-MM-dd') + '_' +
|
||||||
service.serviceType.name().toLowerCase() + '_' +
|
service.serviceType.name().toLowerCase() + '_' +
|
||||||
song.name.replaceAll(/[\s'"\\\/\?!]/, '') + '.mp3' }
|
song.name.replaceAll(/[\s'"\\\/\?!]/, '') + '.mp3' }
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ task writeVersionFile(
|
|||||||
group: 'build',
|
group: 'build',
|
||||||
description: 'Write the version to VERSION.txt') { doLast {
|
description: 'Write the version to VERSION.txt') { doLast {
|
||||||
|
|
||||||
(new File('build/classes/main/VERSION.txt')).text = version
|
(new File("${buildDir}/classes/main/VERSION.txt")).text = version
|
||||||
} }
|
} }
|
||||||
|
|
||||||
build.dependsOn writeVersionFile
|
build.dependsOn writeVersionFile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user