source: apps/i2psnark/build.gradle @ 8de0c0b

Last change on this file since 8de0c0b was 8de0c0b, checked in by str4d <str4d@…>, 6 years ago

Correct Jar/War? split for addressbook, snark and i2ptunnel

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