aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
blob: 1a664990a34eafb15e7cbaf98ac0475070738b9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
group 'org.glavo'
version '0.1.1'

apply plugin: 'java'

sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
    mavenCentral()
}

dependencies {
    compile group: 'org.ow2.asm', name: 'asm', version: '6.1.1'

    testCompile group: 'junit', name: 'junit', version: '4.12'
}

jar {
    manifest {
        attributes 'Implementation-Version': '1.2',
                'Main-Class': 'org.glavo.javah.HeaderGenerator'
    }
}

task fatJar(type: Jar) {
    baseName = project.name + '-all'
    description = 'Assembles a jar archive containing the main classes and all the dependencies.'
    from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
    manifest {
        attributes 'Implementation-Version': '1.2',
                'Main-Class': 'org.glavo.javah.HeaderGenerator'
    }
    with jar
}