Skip to content

Instantly share code, notes, and snippets.

@pluto-atom-4
Created August 20, 2016 19:36
Show Gist options
  • Save pluto-atom-4/abcb1bdd49e7da52ba5befa903e297ee to your computer and use it in GitHub Desktop.
Save pluto-atom-4/abcb1bdd49e7da52ba5befa903e297ee to your computer and use it in GitHub Desktop.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'com.google.closure-stylesheets', name: 'closure-stylesheets', version: '20160212'
}
}
plugins {
id 'java'
id 'war'
}
group 'internal.example'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.7
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
}
task runCSS(type: JavaExec) {
classpath = buildscript.configurations.classpath
main = 'com.google.common.css.compiler.commandline.ClosureCommandLineCompiler'
// arguments to pass to the application
args = ['--pretty-print',
'--output-file', 'dialog.css',
'--output-renaming-map-format', 'CLOSURE_COMPILED',
'--rename', 'CLOSURE',
'--output-renaming-map', 'renaming_map.js',
"$projectDir/src/custom/css/file1.css", "$projectDir/src/custom/css/file2.css"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment