source: apps/i2psnark/build.gradle @ c2e2cc2

Last change on this file since c2e2cc2 was 56c1739d, checked in by str4d <str4d@…>, 18 months ago

Gradle: Use plugins DSL where possible

  • Property mode set to 100644
File size: 902 bytes
Line 
1plugins {
2    id 'war'
3}
4
5sourceSets {
6    main {
7        java {
8            srcDir 'java/src'
9        }
10    }
11}
12
13dependencies {
14    compile project(':core')
15    compile project(':apps:systray')
16    compile 'gnu.getopt:java-getopt:1.0.13'
17    providedCompile project(':apps:ministreaming')
18    providedCompile project(':apps:jetty')
19}
20
21task i2psnarkJar(type: Jar) {
22    from sourceSets.main.output
23    exclude 'org/klomp/snark/standalone/**'
24    exclude 'org/klomp/snark/web/**'
25    manifest {
26        attributes 'Main-Class': 'org.klomp.snark.Snark'
27        attributes 'Class-Path': 'i2p.jar mstreaming.jar streaming.jar'
28    }
29}
30
31// TODO: standalone jar.  This is rather involved!
32
33artifacts {
34    archives i2psnarkJar
35}
36
37war {
38    into '.icons', {
39        from 'icons'
40    }
41    webInf {
42        into 'classes/org/klomp/snark/web'
43        from 'mime.properties'
44    }
45    webXml = file('web.xml')
46}
Note: See TracBrowser for help on using the repository browser.