123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- buildscript {
- repositories {
- jcenter()
- }
- dependencies {
- classpath 'gradle.plugin.edu.sc.seis.gradle:launch4j:2.3.0'
- }
- }
- plugins {
- id 'edu.sc.seis.launch4j' version '2.3.0'
- }
- apply plugin: 'java'
- apply plugin: 'eclipse'
- apply plugin: 'application'
- apply plugin: 'edu.sc.seis.launch4j'
- version = '2.1'
- mainClassName = 'ui.view.Main'
- def projectName = 'holeg'
- def mainClass = 'ui.view.Main'
- task fatJar(type: Jar) {
- manifest {
- attributes 'Implmenetation-Title': projectName,
- 'Implementation-Version': version,
- 'Main-Class': mainClass
- }
- baseName = projectName + '-all'
- from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
- with jar
- }
- jar {
- manifest {
- attributes 'Main-Class': mainClass
- }
- baseName = projectName
- }
- sourceSets {
- test {
- java {
- srcDir 'tests'
- }
- resources {
- srcDir 'res'
- }
- }
- main {
- java {
- srcDir 'src'
- }
- resources {
- srcDir 'res'
- }
- }
- }
- repositories {
- mavenCentral()
- jcenter()
- }
- dependencies {
-
-
- compile group: 'org.apache.commons', name: 'commons-compress', version: '1.13'
-
- compile group: 'com.google.code.gson', name: 'gson', version: '2.8.2'
-
- testCompile group: 'junit', name: 'junit', version: '4.12'
- compile group: 'junit', name: 'junit', version: '4.12'
-
- compile fileTree(dir: 'jars/commons-compress-1.13', include: ['*.jar'])
- compile fileTree(dir: 'jars', include: ['*.jar'])
- testCompile group: 'junit', name: 'junit', version: '4.+'
- }
- launch4j {
- mainClassName='ui.view.Main'
-
- bundledJrePath = 'jre8'
-
- bundledJre64Bit = true
-
- productName = projectName
- outfile = projectName + '.exe'
- }
|