source: apps/i2ptunnel/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: 1004 bytes
Line 
1apply plugin: 'war'
2
3sourceSets {
4    main {
5        java {
6            srcDir 'java/src'
7            include 'net/i2p/i2ptunnel/web/EditBean.java'
8            include 'net/i2p/i2ptunnel/web/IndexBean.java'
9        }
10    }
11    jar {
12        java {
13            srcDir 'java/src'
14            exclude 'net/i2p/i2ptunnel/web/EditBean.java'
15            exclude 'net/i2p/i2ptunnel/web/IndexBean.java'
16        }
17    }
18    test {
19        java {
20            srcDir 'java/test/junit'
21        }
22    }
23}
24
25dependencies {
26    jarCompile project(':core')
27    jarCompile project(':apps:ministreaming')
28    providedCompile sourceSets.jar.output
29    providedCompile project(':apps:jetty')
30}
31
32task i2ptunnelJar(type: Jar) {
33    from sourceSets.jar.output
34    manifest {
35        attributes 'Main-Class': 'net.i2p.i2ptunnel.I2PTunnel'
36        attributes 'Class-Path': 'i2p.jar mstreaming.jar'
37    }
38}
39
40artifacts {
41    archives i2ptunnelJar
42}
43
44war {
45    from 'jsp'
46    exclude 'jsp/web.xml'
47    webXml = file('jsp/web.xml')
48}
Note: See TracBrowser for help on using the repository browser.