Browse Subversion Repository
Contents of /hammer-markdown/trunk/build.gradle
Parent Directory
| Revision Log
Revision 66 -
( show annotations)
( download)
Thu Mar 8 10:36:23 2018 UTC
(6 years ago)
by hirukawa_ryo
File size: 1170 byte(s)
* hammer-markdown 0.7.6
リソースのコピーでNoSuchFileExceptionが発生しても無視するようにしました。
| 1 |
apply plugin: 'java' |
| 2 |
apply plugin: 'eclipse' |
| 3 |
|
| 4 |
archivesBaseName = 'hammer-markdown' |
| 5 |
version = '0.7.6' |
| 6 |
|
| 7 |
compileJava.options.encoding = 'UTF-8' |
| 8 |
|
| 9 |
repositories { |
| 10 |
jcenter { url "http://jcenter.bintray.com" } |
| 11 |
} |
| 12 |
|
| 13 |
defaultTasks 'clean', 'exewrap' |
| 14 |
|
| 15 |
dependencies { |
| 16 |
compile fileTree(dir: 'lib', |
| 17 |
includes: ['**/*.jar'], |
| 18 |
excludes: ['**/*-sources.jar', '**/*-javadoc.jar']) |
| 19 |
} |
| 20 |
|
| 21 |
jar { |
| 22 |
manifest { |
| 23 |
attributes "Specification-Version": "${version}" |
| 24 |
attributes "Main-Class" : "hammer.viewer.Application" |
| 25 |
attributes "Class-Path": configurations.compile.collect { relativePath(it) }.join(' ') |
| 26 |
} |
| 27 |
exclude ("icon/**") |
| 28 |
} |
| 29 |
|
| 30 |
task exewrap(type: Exec, dependsOn: 'jar') { |
| 31 |
setGroup("build") |
| 32 |
setDescription('Assembles the executable.') |
| 33 |
executable "${projectDir}/exewrap.exe" |
| 34 |
args "-A", "x86", |
| 35 |
"-g", |
| 36 |
"-t", "1.8.0.40", |
| 37 |
"-L", "lib/hammer;lib/pegdown;lib/freemarker;lib/yamlbeans;lib/prantuml;lib/juniversalchardet;lib/jsch;lib/jcifs", |
| 38 |
"-e", "SHARED", |
| 39 |
"-j", "${libsDir}/${jar.archiveName}", |
| 40 |
"-i", "src/main/resources/icon/icon.ico", |
| 41 |
"-o", "${buildDir}/${archivesBaseName}.exe", |
| 42 |
"-d", "hammer-markdown", |
| 43 |
"-p", "hammer-markdown", |
| 44 |
"-V", "${version}", |
| 45 |
"-v", "${version}" |
| 46 |
} |
| |