~cpn-gui/tapaal/typeChecker

« back to all changes in this revision

Viewing changes to build.gradle

  • Committer: Kenneth Yrke Jørgensen
  • Date: 2018-07-10 18:02:32 UTC
  • mto: This revision was merged to the branch mainline in revision 969.
  • Revision ID: kenneth@yrke.dk-20180710180232-lcqcv80p34fla063
added gradle files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
plugins {
 
2
    id 'java'
 
3
    id 'application'
 
4
}
 
5
 
 
6
group 'net.tapaal'
 
7
version '3.4-SNAPSHOT'
 
8
 
 
9
sourceCompatibility = 1.6
 
10
targetCompatibility = 1.6
 
11
 
 
12
repositories {
 
13
    mavenCentral()
 
14
}
 
15
 
 
16
//Set the soruce and resource dir
 
17
sourceSets {
 
18
    main {
 
19
        java {
 
20
            srcDirs = ['src/']
 
21
            exclude("resources/")
 
22
        }
 
23
        resources {
 
24
            //Resources should be in folder called resources, so only add the resources folder
 
25
            //adding srv/resources will places content of the folder in root of jar file
 
26
            srcDirs = ['src/']
 
27
            include("resources/")
 
28
        }
 
29
        //test {
 
30
        //    srcDirs = ['tests']
 
31
        //}
 
32
    }
 
33
}
 
34
 
 
35
mainClassName = 'TAPAAL'
 
36
 
 
37
jar {
 
38
    exclude 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.MF'
 
39
 
 
40
    //Sets the main call for the Jar, you can double click to run the jar file
 
41
    manifest {
 
42
        attributes 'Main-Class': 'TAPAAL'
 
43
    }
 
44
    //The following lines makes libs a part of the build jar file (standalone jar)
 
45
    //from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
 
46
}
 
47
 
 
48
dependencies {
 
49
    //compile group: 'commons-cli', name: 'commons-cli', version: '1.4'
 
50
    //compile group: 'org.swinglabs.swingx', name: 'swingx-all', version: '1.6.3'
 
51
    //compile group: 'net.java.dev.jna', name: 'jna', version: '4.5.1'
 
52
    //compile group: 'com.apple', name: 'AppleJavaExtensions', version: '1.4' // Not working
 
53
 
 
54
    //Add jars from libs dir
 
55
    compile fileTree(dir: 'libs', include: ['*.jar'])
 
56
    testCompile group: 'junit', name: 'junit', version: '4.12'
 
57
}