source: apps/i2ptunnel/build.gradle @ 0dbc809

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

Gradle: Use plugins DSL where possible

  • Property mode set to 100644
File size: 1.2 KB
Line 
1plugins {
2    id 'war'
3}
4
5sourceSets {
6    main {
7        java {
8            srcDir 'java/src'
9        }
10    }
11    test {
12        java {
13            srcDir 'java/test/junit'
14        }
15    }
16}
17
18dependencies {
19    compile project(':core')
20    compile project(':apps:ministreaming')
21    compile 'gnu.getopt:java-getopt:1.0.13'
22    providedCompile project(':apps:jetty')
23}
24
25task i2ptunnelJar(type: Jar) {
26    from sourceSets.main.output
27    exclude '**/ui/*.class'
28    exclude '**/EditBean.class'
29    exclude '**/IndexBean.class'
30    manifest {
31        attributes 'Main-Class': 'net.i2p.i2ptunnel.I2PTunnel'
32        attributes 'Class-Path': 'i2p.jar mstreaming.jar'
33    }
34}
35
36task tempBeansJar(type: Jar) {
37    from sourceSets.main.output
38    include '**/EditBean.class'
39    include '**/ui/*.class'
40    include '**/IndexBean.class'
41    baseName = 'temp-beans'
42}
43
44task uiJar(type: Jar) {
45    baseName = 'i2ptunnel-ui'
46    from sourceSets.main.output
47    include '**/ui/*.class'
48    manifest {
49        attributes 'Class-Path' : 'i2p.jar mstreaming.jar i2ptunnel.jar'
50    }
51}
52
53artifacts {
54    archives i2ptunnelJar, tempBeansJar, uiJar
55}
56
57war {
58    from 'jsp'
59    exclude 'jsp/web.xml'
60    webXml = file('jsp/web.xml')
61}
62
Note: See TracBrowser for help on using the repository browser.