version = '0.2'
apply plugin: 'java'
apply plugin: 'java-library-distribution'
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.fxmisc.richtext', name: 'richtextfx', version: '0.6.10'
compile group: 'com.miglayout', name: 'miglayout-javafx', version: '5.0'
compile group: 'de.jensd', name: 'fontawesomefx', version: '8.9'
compile group: 'org.pegdown', name: 'pegdown', version: '1.6.0'
compile group: 'org.fxmisc.flowless', name: 'flowless', version: '0.4.4'
}
sourceCompatibility = 1.8
jar {
baseName = 'markdown-writer-fx'
manifest {
attributes 'Main-Class': 'org.markdownwriterfx.MarkdownWriterFXApp',
'Class-Path': configurations.compile.collect { 'lib/' + it.getName() }.join(' ')
}
}
distributions {
main {
baseName = 'markdown-writer-fx'
contents {
from { ['LICENSE', 'README.md'] }
into( 'images' ) {
from { 'images' }
}
}
}
}